Go to the documentation of this file.
20 #ifndef __X11_DEVICE_H__
21 #define __X11_DEVICE_H__ 1
31 # include <X11/Xlib.h>
32 # include <X11/Xutil.h>
34 # error "This file needs X11"
135 #endif // end of __X11_DEVICE_H__
static LogFile & getDefaultInstance()
Definition: log.cpp:77
long native_window_t
Definition: GnashDevice.h:43
Display * _display
Definition: X11Device.h:114
std::string name
Definition: LocalConnection_as.cpp:149
@ height
Definition: klash_part.cpp:329
bool isBufferDestroyed()
Are buffers destroyed ?
Definition: X11Device.h:82
bool isSingleBuffered()
Is this device single buffered.
Definition: X11Device.h:78
int _depth
Definition: X11Device.h:121
Screen * _screen
Definition: X11Device.h:120
#define dbglogfile
Definition: gtkext.cpp:48
std::int32_t y
Definition: BitmapData_as.cpp:435
@ i
Definition: GnashKey.h:155
void(* reshape_func)(int, int)
Definition: X11Device.h:127
#define _(String)
Definition: log.h:44
dtype_t
The list of supported device types.
Definition: GnashDevice.h:48
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
int _screennum
Definition: X11Device.h:115
bool initDevice(int argc, char *argv[])
Definition: X11Device.cpp:126
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
Visual * _visual
Definition: X11Device.h:119
void log_error(StringType msg, Args... args)
Definition: log.h:283
void(* init_func)()
Definition: X11Device.h:126
Window _window
Definition: X11Device.h:117
size_t getHeight()
Get the Height of the device.
Definition: X11Device.h:76
Definition: GnashDevice.h:40
XVisualInfo * _vinfo
Definition: X11Device.h:122
bool supportsRenderer(GnashDevice::rtype_t)
Is the specified renderer supported by this hardware ?
Definition: X11Device.h:80
int _vid
Definition: X11Device.h:123
const char * getErrorString(int error)
Return a string with the error code as text, instead of a numeric value.
Definition: X11Device.cpp:192
code
Definition: GnashKey.h:44
int getID()
Get the window ID handle.
Definition: X11Device.h:86
Definition: X11Device.h:46
dtype_t getType()
Definition: X11Device.h:56
const char * FONT
Definition: X11Device.cpp:57
X11Device()
Definition: X11Device.cpp:59
size_t getWidth()
Get the width of the device.
Definition: X11Device.h:75
virtual ~X11Device()
Definition: X11Device.cpp:110
size_t getStride()
Query the system for all supported configs.
Definition: X11Device.h:58
int getBlueSize()
Get the size of the Blue pixel.
Definition: X11Device.h:91
bool attachWindow(GnashDevice::native_window_t window)
Definition: X11Device.cpp:180
void createWindow(const char *name, int x, int y, int width, int height)
Definition: X11Device.cpp:207
int getRedSize()
Get the size of the Red pixel.
Definition: X11Device.h:89
int getGreenSize()
Get the size of the Green pixel.
Definition: X11Device.h:90
int(* key_func)(unsigned key)
Definition: X11Device.h:129
@ X11
Definition: GnashDevice.h:48
void(* draw_func)()
Definition: X11Device.h:128
int getDepth()
Get the depth of the device.
Definition: X11Device.h:71
rtype_t
The list of supported renders that use devices.
Definition: GnashDevice.h:46
bool isNativeRender()
Is this renderering natively.
Definition: X11Device.h:94
@ width
Definition: klash_part.cpp:329
std::int32_t x
Definition: BitmapData_as.cpp:434
int getHandle()
Definition: X11Device.h:96
Window _root
Definition: X11Device.h:116
Colormap _colormap
Definition: X11Device.h:118
void eventLoop(size_t passes)
Definition: X11Device.cpp:253