Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXGIFCursor Class Reference

GIF Cursor class. More...

#include <FXGIFCursor.h>

Inheritance diagram for FX::FXGIFCursor:
FX::FXCursor FX::FXId FX::FXObject

List of all members.

Public Member Functions

 FXGIFCursor (FXApp *a, const void *pix, FXint hx=0, FXint hy=0)
 Construct a cursor from memory stream in Compuserve GIF format.
virtual FXbool savePixels (FXStream &store) const
 Save pixel data only, in GIF format.
virtual FXbool loadPixels (FXStream &store)
 Load pixel data only, in GIF format.
virtual ~FXGIFCursor ()
 Destroy.
- Public Member Functions inherited from FX::FXCursor
 FXCursor (FXApp *a, FXStockCursor curid=CURSOR_ARROW)
 Make stock cursor.
 FXCursor (FXApp *a, const FXuchar *src, const FXuchar *msk, FXint w=32, FXint h=32, FXint hx=0, FXint hy=0)
 Make cursor from source and mask; cursor size should at most 32x32 for portability!
 FXCursor (FXApp *a, const FXColor *pix, FXint w=32, FXint h=32, FXint hx=0, FXint hy=0)
 Make cursor from FXColor pixels; cursor size should be at most 32x32 for portability!
void setOptions (FXuint opts)
 Change options.
FXuint getOptions () const
 To get to the option flags.
void setOwned (FXbool owned)
 Set pixel data ownership flag.
FXbool isOwned () const
 Get pixel data ownership flag.
FXint getWidth () const
 Width of cursor; returns 0 for stock cursors.
FXint getHeight () const
 Height of cursor; returns 0 for stock cursors.
void setHotX (FXint x)
 Set hotspot x; returns 0 for stock cursors.
FXint getHotX () const
 Get hotspot x; returns 0 for stock cursors.
void setHotY (FXint y)
 Set hotspot y; returns 0 for stock cursors.
FXint getHotY () const
 Get hotspot y; returns 0 for stock cursors.
FXbool isColor () const
 Check if there is color in the cursor.
virtual void create ()
 Create cursor.
virtual void detach ()
 Detach cursor.
virtual void destroy ()
 Destroy cursor.
virtual void release ()
 Release pixels buffer if it was owned.
virtual void save (FXStream &store) const
 Save cursor to a stream.
virtual void load (FXStream &store)
 Load cursor from a stream.
virtual ~FXCursor ()
 Destructor.
- Public Member Functions inherited from FX::FXId
FXAppgetApp () const
 Get application.
FXID id () const
 Get XID handle.
void setUserData (FXptr ptr)
 Set user data pointer.
FXptr getUserData () const
 Get user data pointer.
virtual ~FXId ()
 Destructor.
- Public Member Functions inherited from FX::FXObject
const FXchar * getClassName () const
 Get class name of some object.
FXbool isMemberOf (const FXMetaClass *metaclass) const
 Check if object is member of metaclass.
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
 Try handle message safely, catching certain exceptions.
virtual long onDefault (FXObject *, FXSelector, void *)
 Called for unhandled messages.
virtual ~FXObject ()
 Virtual destructor.

Static Public Attributes

static const FXchar fileExt []

Additional Inherited Members

- Protected Attributes inherited from FX::FXCursor
FXColor * data
FXint width
FXint height
FXint hotx
FXint hoty
FXuint options
- Protected Attributes inherited from FX::FXId
FXID xid

Detailed Description

GIF Cursor class.


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.


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

Copyright © 1997-2016 Jeroen van der Zijp