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

FX::FXCursor Class Reference

Cursor class. More...

#include <FXCursor.h>

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

Public Member Functions

 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 FXbool savePixels (FXStream &store) const
 Save pixel data only.
 
virtual FXbool loadPixels (FXStream &store)
 Load pixel data only.
 
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.
 

Protected Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from FX::FXId
 FXId (FXApp *a)
 

Detailed Description

Cursor class.


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

Copyright © 1997-2022 Jeroen van der Zijp