Gnash
0.8.11dev
|
#include <X11Device.h>
Public Member Functions | |
X11Device () | |
X11Device (int) | |
X11Device (int argc, char *argv[]) | |
virtual | ~X11Device () |
dtype_t | getType () |
size_t | getStride () |
Query the system for all supported configs. More... | |
bool | initDevice (int argc, char *argv[]) |
bool | attachWindow (GnashDevice::native_window_t window) |
const char * | getErrorString (int error) |
Return a string with the error code as text, instead of a numeric value. More... | |
int | getDepth () |
Get the depth of the device. More... | |
size_t | getWidth () |
Get the width of the device. More... | |
size_t | getHeight () |
Get the Height of the device. More... | |
bool | isSingleBuffered () |
Is this device single buffered. More... | |
bool | supportsRenderer (GnashDevice::rtype_t) |
Is the specified renderer supported by this hardware ? More... | |
bool | isBufferDestroyed () |
Are buffers destroyed ? More... | |
int | getID () |
Get the window ID handle. More... | |
int | getRedSize () |
Get the size of the Red pixel. More... | |
int | getGreenSize () |
Get the size of the Green pixel. More... | |
int | getBlueSize () |
Get the size of the Blue pixel. More... | |
bool | isNativeRender () |
Is this renderering natively. More... | |
int | getHandle () |
void | createWindow (const char *name, int x, int y, int width, int height) |
void | eventLoop (size_t passes) |
![]() | |
GnashDevice (int argc, char *argv[]) | |
GnashDevice () | |
virtual | ~GnashDevice () |
virtual std::uint8_t * | getFBMemory () |
Get the memory from the real framebuffer. More... | |
virtual std::uint8_t * | getOffscreenBuffer () |
Get the memory from an offscreen buffer to support Double Buffering. More... | |
virtual size_t | getFBMemSize () |
virtual bool | bindClient (GnashDevice::rtype_t) |
virtual bool | swapBuffers () |
Protected Attributes | |
Display * | _display |
int | _screennum |
Window | _root |
Window | _window |
Colormap | _colormap |
Visual * | _visual |
Screen * | _screen |
int | _depth |
XVisualInfo * | _vinfo |
int | _vid |
Additional Inherited Members | |
![]() | |
typedef long | native_window_t |
gnash::renderer::x11::X11Device::X11Device | ( | ) |
References GNASH_REPORT_FUNCTION, and gnash::LogFile::setVerbosity().
gnash::renderer::x11::X11Device::X11Device | ( | int | vid | ) |
References _, GNASH_REPORT_FUNCTION, initDevice(), and gnash::log_error().
gnash::renderer::x11::X11Device::X11Device | ( | int | argc, |
char * | argv[] | ||
) |
References _, GNASH_REPORT_FUNCTION, initDevice(), and gnash::log_error().
|
virtual |
References _display, _root, _vinfo, _window, and GNASH_REPORT_FUNCTION.
|
virtual |
Attach Native Window to device. This connects a Native Window to the device so surfaces can be created.
Implements gnash::renderer::GnashDevice.
References _window, GNASH_REPORT_FUNCTION, and window.
Referenced by getStride().
void gnash::renderer::x11::X11Device::createWindow | ( | const char * | name, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
References _, _display, _root, _vinfo, _window, GNASH_REPORT_FUNCTION, height, gnash::log_error(), width, x, and y.
Referenced by getHandle(), and main().
void gnash::renderer::x11::X11Device::eventLoop | ( | size_t | passes | ) |
Start an X11 event loop. This is only used by testing. Note that calling this function blocks until the specified number of events have been handled. The first 5 are used up by creating the window.
passes | the number of events to process before returning. |
References _display, height, and width.
Referenced by getHandle(), and main().
|
inlinevirtual |
|
inlinevirtual |
Get the depth of the device.
Implements gnash::renderer::GnashDevice.
References _display, and _screennum.
|
virtual |
Return a string with the error code as text, instead of a numeric value.
Implements gnash::renderer::GnashDevice.
References _, _display, and gnash::log_error().
Referenced by getStride().
|
inlinevirtual |
|
inline |
References _window, createWindow(), eventLoop(), height, name, width, x, and y.
Referenced by main().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Get the size of the Red pixel.
Implements gnash::renderer::GnashDevice.
References _vinfo.
Referenced by getBlueSize(), and getGreenSize().
|
inlinevirtual |
Query the system for all supported configs.
Get the stride of the device
Implements gnash::renderer::GnashDevice.
References attachWindow(), getErrorString(), initDevice(), and window.
|
inlinevirtual |
Get the type of the instatiated device. Since the renderer has a single value for the supported device, this is used to see which device has been loaded.
Implements gnash::renderer::GnashDevice.
References gnash::renderer::GnashDevice::X11.
|
inlinevirtual |
|
virtual |
Initialize GNASH Device layer. This mostly just initializes all the private data.
Implements gnash::renderer::GnashDevice.
References _, _colormap, _depth, _display, _root, _screen, _screennum, _vid, _vinfo, GNASH_REPORT_FUNCTION, gnash::key::i, and gnash::log_error().
Referenced by getStride(), and X11Device().
|
inlinevirtual |
Are buffers destroyed ?
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
Is this renderering natively.
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
Is this device single buffered.
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
Is the specified renderer supported by this hardware ?
Implements gnash::renderer::GnashDevice.
|
protected |
Referenced by initDevice().
|
protected |
Referenced by initDevice().
|
protected |
Referenced by createWindow(), eventLoop(), getDepth(), getErrorString(), initDevice(), and ~X11Device().
|
protected |
Referenced by createWindow(), initDevice(), and ~X11Device().
|
protected |
Referenced by getHeight(), getWidth(), and initDevice().
|
protected |
Referenced by getDepth(), and initDevice().
|
protected |
Referenced by initDevice().
|
protected |
Referenced by createWindow(), getRedSize(), initDevice(), and ~X11Device().
|
protected |
|
protected |
Referenced by attachWindow(), createWindow(), getHandle(), getID(), and ~X11Device().