FX::FXGIFCursor Class Reference

#include <FXGIFCursor.h>

Inheritance diagram for FX::FXGIFCursor:

Inheritance graph
[legend]

List of all members.


Detailed Description

GIF Cursor class.

Public Member Functions

 FXGIFCursor (FXApp *a, const void *pix, FXint hx=0, FXint hy=0)
virtual bool savePixels (FXStream &store) const
virtual bool loadPixels (FXStream &store)
virtual ~FXGIFCursor ()
FXint getWidth () const
FXint getHeight () const
void setHotX (FXint x)
FXint getHotX () const
void setHotY (FXint y)
FXint getHotY () const
bool isColor () const
virtual void create ()
virtual void detach ()
virtual void destroy ()
virtual void release ()
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
FXAppgetApp () const
FXEventLoopgetEventLoop () 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 Attributes

static const FXchar * fileExt

Protected Attributes

FXColor * data
FXint width
FXint height
FXint hotx
FXint hoty
FXuint options
FXID xid

Constructor & Destructor Documentation

FX::FXGIFCursor::FXGIFCursor ( FXApp a,
const void *  pix,
FXint  hx = 0,
FXint  hy = 0 
)

Construct a cursor from memory stream in Compuserve GIF format. Hot spot may be specified using hx and hy parameters, since the GIF format does not specify a hot spot. The image must be smaller than 32x32 pixels.

virtual FX::FXGIFCursor::~FXGIFCursor (  )  [inline, virtual]

Destroy.


Member Function Documentation

virtual bool FX::FXGIFCursor::savePixels ( FXStream store  )  const [virtual]

Save pixel data only, in GIF format.

Reimplemented from FX::FXCursor.

virtual bool FX::FXGIFCursor::loadPixels ( FXStream store  )  [virtual]

Load pixel data only, in GIF format.

Reimplemented from FX::FXCursor.

FXint FX::FXCursor::getWidth (  )  const [inline, inherited]

Width of cursor; returns 0 for stock cursors.

FXint FX::FXCursor::getHeight (  )  const [inline, inherited]

Height of cursor; returns 0 for stock cursors.

void FX::FXCursor::setHotX ( FXint  x  )  [inline, inherited]

Set hotspot x; returns 0 for stock cursors.

FXint FX::FXCursor::getHotX (  )  const [inline, inherited]

Get hotspot x; returns 0 for stock cursors.

void FX::FXCursor::setHotY ( FXint  y  )  [inline, inherited]

Set hotspot y; returns 0 for stock cursors.

FXint FX::FXCursor::getHotY (  )  const [inline, inherited]

Get hotspot y; returns 0 for stock cursors.

bool FX::FXCursor::isColor (  )  const [inherited]

Check if there is color in the cursor.

virtual void FX::FXCursor::create (  )  [virtual, inherited]

Create cursor.

Reimplemented from FX::FXId.

virtual void FX::FXCursor::detach (  )  [virtual, inherited]

Detach cursor.

Reimplemented from FX::FXId.

virtual void FX::FXCursor::destroy (  )  [virtual, inherited]

Destroy cursor.

Reimplemented from FX::FXId.

virtual void FX::FXCursor::release (  )  [virtual, inherited]

Release pixels buffer if it was owned.

virtual void FX::FXCursor::save ( FXStream store  )  const [virtual, inherited]

Save cursor to a stream.

Reimplemented from FX::FXId.

virtual void FX::FXCursor::load ( FXStream store  )  [virtual, inherited]

Load cursor from a stream.

Reimplemented from FX::FXId.

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).


The documentation for this class was generated from the following file:

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 21:59:42 2008 for TnFOX by doxygen v1.5.6