#include <FXVisual.h>
Public Member Functions | |
FXVisual (FXApp *a, FXuint flgs, FXuint d=32) | |
FXVisualType | getType () const |
void * | getInfo () const |
void * | getVisual () const |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
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 |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXVisual () |
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 |
Protected Member Functions | |
void * | setupgc (FXbool) |
void | setuptruecolor () |
void | setupdirectcolor () |
void | setuppseudocolor () |
void | setupstaticcolor () |
void | setupgrayscale () |
void | setupstaticgray () |
void | setuppixmapmono () |
void | setupcolormap () |
Protected Attributes | |
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 | FXApp |
class | FXEventLoop |
class | FXWindow |
class | FXImage |
class | FXIcon |
class | FXBitmap |
class | FXDCWindow |
class | FXGLCanvas |
class | FXGLContext |
FX::FXVisual::FXVisual | ( | FXApp * | a, | |
FXuint | flgs, | |||
FXuint | d = 32 | |||
) |
Construct default visual.
virtual FX::FXVisual::~FXVisual | ( | ) | [virtual] |
Destructor.
FXVisualType FX::FXVisual::getType | ( | ) | const [inline] |
Get visual type.
void* FX::FXVisual::getInfo | ( | ) | const [inline] |
Get visual info.
void* FX::FXVisual::getVisual | ( | ) | const [inline] |
Get visual or pixel format.
virtual void FX::FXVisual::create | ( | ) | [virtual] |
virtual void FX::FXVisual::detach | ( | ) | [virtual] |
virtual void FX::FXVisual::destroy | ( | ) | [virtual] |
FXuint FX::FXVisual::getFlags | ( | ) | const [inline] |
Get flags (see FXVisualOptions).
FXuint FX::FXVisual::getDepth | ( | ) | const [inline] |
Get depth, i.e. number of significant bits in color representation.
FXuint FX::FXVisual::getNumColors | ( | ) | const [inline] |
Get number of colors.
FXuint FX::FXVisual::getNumRed | ( | ) | const [inline] |
Get number of reds.
FXuint FX::FXVisual::getNumGreen | ( | ) | const [inline] |
Get number of greens.
FXuint FX::FXVisual::getNumBlue | ( | ) | const [inline] |
Get number of blues.
FXPixel FX::FXVisual::getPixel | ( | FXColor | clr | ) |
Get device pixel value for color.
FXColor FX::FXVisual::getColor | ( | FXPixel | pix | ) |
Get color value for device pixel value.
void FX::FXVisual::setMaxColors | ( | FXuint | maxcols | ) |
Set maximum number of colors to allocate.
FXuint FX::FXVisual::getMaxColors | ( | ) | const [inline] |
Get maximum number of colors.
virtual void FX::FXVisual::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXVisual::load | ( | FXStream & | store | ) | [virtual] |
Load visual information from a stream.
Reimplemented from FX::FXId.
Reimplemented in FX::FXGLVisual.
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).