![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXCursor.h>
Public Member Functions | |
FXCursor (FXApp *a, FXStockCursor curid=CURSOR_ARROW) | |
FXCursor (FXApp *a, const FXuchar *src, const FXuchar *msk, FXint w=32, FXint h=32, FXint hx=0, FXint hy=0) | |
FXCursor (FXApp *a, const FXColor *pix, FXint w=32, FXint h=32, FXint hx=0, FXint hy=0) | |
void | setOptions (FXuint opts) |
FXuint | getOptions () const |
void | setOwned (FXbool owned) |
FXbool | isOwned () const |
FXint | getWidth () const |
FXint | getHeight () const |
void | setHotX (FXint x) |
FXint | getHotX () const |
void | setHotY (FXint y) |
FXint | getHotY () const |
FXbool | isColor () const |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
virtual void | release () |
virtual FXbool | savePixels (FXStream &store) const |
virtual FXbool | loadPixels (FXStream &store) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXCursor () |
See also:
FX::FXCursor::FXCursor | ( | FXApp * | a, | |
FXStockCursor | curid = CURSOR_ARROW | |||
) |
Make stock cursor.
FX::FXCursor::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!
FX::FXCursor::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!
virtual FX::FXCursor::~FXCursor | ( | ) | [virtual] |
Destructor.
void FX::FXCursor::setOptions | ( | FXuint | opts | ) |
Change options.
FXuint FX::FXCursor::getOptions | ( | ) | const [inline] |
To get to the option flags.
void FX::FXCursor::setOwned | ( | FXbool | owned | ) |
Set pixel data ownership flag.
FXbool FX::FXCursor::isOwned | ( | ) | const |
Get pixel data ownership flag.
FXint FX::FXCursor::getWidth | ( | ) | const [inline] |
Width of cursor; returns 0 for stock cursors.
FXint FX::FXCursor::getHeight | ( | ) | const [inline] |
Height of cursor; returns 0 for stock cursors.
void FX::FXCursor::setHotX | ( | FXint | x | ) | [inline] |
Set hotspot x; returns 0 for stock cursors.
FXint FX::FXCursor::getHotX | ( | ) | const [inline] |
Get hotspot x; returns 0 for stock cursors.
void FX::FXCursor::setHotY | ( | FXint | y | ) | [inline] |
Set hotspot y; returns 0 for stock cursors.
FXint FX::FXCursor::getHotY | ( | ) | const [inline] |
Get hotspot y; returns 0 for stock cursors.
FXbool FX::FXCursor::isColor | ( | ) | const |
Check if there is color in the cursor.
virtual void FX::FXCursor::create | ( | ) | [virtual] |
virtual void FX::FXCursor::detach | ( | ) | [virtual] |
virtual void FX::FXCursor::destroy | ( | ) | [virtual] |
virtual void FX::FXCursor::release | ( | ) | [virtual] |
Release pixels buffer if it was owned.
virtual void FX::FXCursor::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXCursor::load | ( | FXStream & | store | ) | [virtual] |
![]() |