#include <FXGLVisual.h>
Public Member Functions | |
FXGLVisual (FXApp *a, FXuint flags) | |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
FXint | getRedSize () const |
FXint | getGreenSize () const |
FXint | getBlueSize () const |
FXint | getAlphaSize () const |
FXint | getDepthSize () const |
FXint | getStencilSize () const |
FXint | getAccumRedSize () const |
FXint | getAccumGreenSize () const |
FXint | getAccumBlueSize () const |
FXint | getAccumAlphaSize () const |
void | setRedSize (FXint rs) |
void | setGreenSize (FXint gs) |
void | setBlueSize (FXint bs) |
void | setAlphaSize (FXint as) |
void | setDepthSize (FXint ds) |
void | setStencilSize (FXint ss) |
void | setAccumRedSize (FXint rs) |
void | setAccumGreenSize (FXint gs) |
void | setAccumBlueSize (FXint bs) |
void | setAccumAlphaSize (FXint as) |
FXint | getActualRedSize () const |
FXint | getActualGreenSize () const |
FXint | getActualBlueSize () const |
FXint | getActualAlphaSize () const |
FXint | getActualDepthSize () const |
FXint | getActualStencilSize () const |
FXint | getActualAccumRedSize () const |
FXint | getActualAccumGreenSize () const |
FXint | getActualAccumBlueSize () const |
FXint | getActualAccumAlphaSize () const |
FXbool | isDoubleBuffer () const |
FXbool | isStereo () const |
FXbool | isAccelerated () const |
FXbool | isBufferSwapCopy () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXGLVisual () |
FXVisualType | getType () const |
void * | getInfo () const |
void * | getVisual () const |
FXuint | getFlags () const |
FXuint | getDepth () const |
FXuint | getNumColors () const |
FXuint | getNumRed () const |
FXuint | getNumGreen () const |
FXuint | getNumBlue () const |
FXPixel | getPixel (FXColor clr) |
FXColor | getColor (FXPixel pix) |
void | setMaxColors (FXuint maxcols) |
FXuint | getMaxColors () const |
FXApp * | getApp () const |
FXEventLoop * | getEventLoop () const |
FXID | id () const |
void | setUserData (void *ptr) |
void * | getUserData () const |
virtual long | onDefault (FXObject *, FXSelector, void *) |
const FXchar * | getClassName () const |
bool | isMemberOf (const FXMetaClass *metaclass) const |
virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
QTransString | tr (const char *text, const char *hint=0) |
virtual void * | getPythonObject () const |
virtual void | decouplePythonObject () const |
Static Public Member Functions | |
static FXbool | supported (FXApp *application, int &major, int &minor) |
Protected Member Functions | |
void * | setupgc (FXbool) |
void | setuptruecolor () |
void | setupdirectcolor () |
void | setuppseudocolor () |
void | setupstaticcolor () |
void | setupgrayscale () |
void | setupstaticgray () |
void | setuppixmapmono () |
void | setupcolormap () |
Protected Attributes | |
FXint | redSize |
FXint | greenSize |
FXint | blueSize |
FXint | alphaSize |
FXint | depthSize |
FXint | stencilSize |
FXint | accumRedSize |
FXint | accumGreenSize |
FXint | accumBlueSize |
FXint | accumAlphaSize |
FXuint | flags |
FXuint | hint |
FXuint | depth |
FXuint | numred |
FXuint | numgreen |
FXuint | numblue |
FXuint | numcolors |
FXuint | maxcolors |
FXVisualType | type |
void * | info |
void * | visual |
FXID | colormap |
FXbool | freemap |
void * | gc |
void * | scrollgc |
FXPixel | rpix [16][256] |
FXPixel | gpix [16][256] |
FXPixel | bpix [16][256] |
FXPixel | lut [256] |
FXID | xid |
Friends | |
class | FXWindow |
class | FXImage |
class | FXIcon |
class | FXBitmap |
class | FXDCWindow |
class | FXGLCanvas |
FX::FXGLVisual::FXGLVisual | ( | FXApp * | a, | |
FXuint | flags | |||
) |
Construct default visual.
virtual FX::FXGLVisual::~FXGLVisual | ( | ) | [virtual] |
Destructor.
static FXbool FX::FXGLVisual::supported | ( | FXApp * | application, | |
int & | major, | |||
int & | minor | |||
) | [static] |
Test if OpenGL is possible, and what level is supported. Because of remote display capability, the display server may support a different level of OpenGL than the client; it may even support no OpenGL at all! This function returns the lesser of the client support level and the display server support level.
virtual void FX::FXGLVisual::create | ( | ) | [virtual] |
virtual void FX::FXGLVisual::detach | ( | ) | [virtual] |
virtual void FX::FXGLVisual::destroy | ( | ) | [virtual] |
FXint FX::FXGLVisual::getRedSize | ( | ) | const [inline] |
Get sizes for bit-planes.
void FX::FXGLVisual::setRedSize | ( | FXint | rs | ) | [inline] |
Set sizes for bit-planes.
FXint FX::FXGLVisual::getActualRedSize | ( | ) | const |
Get ACTUAL sizes for bit-planes.
FXbool FX::FXGLVisual::isDoubleBuffer | ( | ) | const |
Is it double buffered?
FXbool FX::FXGLVisual::isStereo | ( | ) | const |
Is it stereo?
FXbool FX::FXGLVisual::isAccelerated | ( | ) | const |
Is it hardware-accelerated?
FXbool FX::FXGLVisual::isBufferSwapCopy | ( | ) | const |
Does it swap by copying instead of flipping buffers.
virtual void FX::FXGLVisual::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXGLVisual::load | ( | FXStream & | store | ) | [virtual] |
FXVisualType FX::FXVisual::getType | ( | ) | const [inline, inherited] |
Get visual type.
void* FX::FXVisual::getInfo | ( | ) | const [inline, inherited] |
Get visual info.
void* FX::FXVisual::getVisual | ( | ) | const [inline, inherited] |
Get visual or pixel format.
FXuint FX::FXVisual::getFlags | ( | ) | const [inline, inherited] |
Get flags (see FXVisualOptions).
FXuint FX::FXVisual::getDepth | ( | ) | const [inline, inherited] |
Get depth, i.e. number of significant bits in color representation.
FXuint FX::FXVisual::getNumColors | ( | ) | const [inline, inherited] |
Get number of colors.
FXuint FX::FXVisual::getNumRed | ( | ) | const [inline, inherited] |
Get number of reds.
FXuint FX::FXVisual::getNumGreen | ( | ) | const [inline, inherited] |
Get number of greens.
FXuint FX::FXVisual::getNumBlue | ( | ) | const [inline, inherited] |
Get number of blues.
FXPixel FX::FXVisual::getPixel | ( | FXColor | clr | ) | [inherited] |
Get device pixel value for color.
FXColor FX::FXVisual::getColor | ( | FXPixel | pix | ) | [inherited] |
Get color value for device pixel value.
void FX::FXVisual::setMaxColors | ( | FXuint | maxcols | ) | [inherited] |
Set maximum number of colors to allocate.
FXuint FX::FXVisual::getMaxColors | ( | ) | const [inline, inherited] |
Get maximum number of colors.
FXApp* FX::FXId::getApp | ( | ) | const [inline, inherited] |
Get application.
FXEventLoop* FX::FXId::getEventLoop | ( | ) | const [inline, inherited] |
Get event loop which owns this.
FXID FX::FXId::id | ( | ) | const [inline, inherited] |
Get XID handle.
void FX::FXId::setUserData | ( | void * | ptr | ) | [inline, inherited] |
Set user data pointer.
void* FX::FXId::getUserData | ( | ) | const [inline, inherited] |
Get user data pointer.
virtual long FX::FXObject::onDefault | ( | FXObject * | , | |
FXSelector | , | |||
void * | ||||
) | [virtual, inherited] |
Called for unhandled messages.
Reimplemented in FX::FXDelegator, FX::FXGLViewer, FX::FXMDIChild, and FX::FXMDIClient.
const FXchar* FX::FXObject::getClassName | ( | ) | const [inherited] |
Get class name of some object.
bool FX::FXObject::isMemberOf | ( | const FXMetaClass * | metaclass | ) | const [inherited] |
Check if object is member of metaclass.
virtual long FX::FXObject::tryHandle | ( | FXObject * | sender, | |
FXSelector | sel, | |||
void * | ptr | |||
) | [virtual, inherited] |
Try handle message safely.
QTransString FX::FXObject::tr | ( | const char * | text, | |
const char * | hint = 0 | |||
) | [inherited] |
Returns a human translated version of the text to the locale language (warning: uses a virtual method call, so can't use before construction)
virtual void* FX::FXObject::getPythonObject | ( | ) | const [inline, virtual, inherited] |
Returns the python object representing this instance (if created in python).
virtual void FX::FXObject::decouplePythonObject | ( | ) | const [inline, virtual, inherited] |
Causes decoupling of python object from this object (deletes self).