|
http://www.sim.no http://www.coin3d.org |
The class provides both a set of pre-defined cursor shapes, aswell as the option to use custom bitmap graphics.
Instances of this class is usually made for passing in to the SoXtComponent::setComponentCursor() and SoXtComponent::setWidgetCursor() methods.
Public Types | |
| CUSTOM_BITMAP = -1 | |
| DEFAULT = 0 | |
| BUSY | |
| CROSSHAIR | |
| UPARROW | |
| enum | Shape { CUSTOM_BITMAP = -1, DEFAULT = 0, BUSY, CROSSHAIR, UPARROW } |
Public Member Functions | |
| SoXtCursor (void) | |
| SoXtCursor (const Shape shape) | |
| SoXtCursor (const CustomCursor *cc) | |
| SoXtCursor (const SoXtCursor &cursor) | |
| ~SoXtCursor () | |
| SoXtCursor & | operator= (const SoXtCursor &c) |
| Shape | getShape (void) const |
| void | setShape (const Shape shape) |
| const CustomCursor & | getCustomCursor (void) const |
Static Public Member Functions | |
| static void | initClass (void) |
| static const SoXtCursor & | getZoomCursor (void) |
| static const SoXtCursor & | getPanCursor (void) |
| static const SoXtCursor & | getRotateCursor (void) |
| static const SoXtCursor & | getBlankCursor (void) |
Classes | |
| class | CustomCursor |
| The SoXtCursor::CustomCursor class is used to specify bitmap data for SoXtCursor custom cursors. More... | |
| enum SoXtCursor::Shape |
For enumerating built-in shape types, that can be used without having to specify cursor graphics. These are mapped to pre-defined cursor shapes from the underlying toolkit.
| SoXtCursor::SoXtCursor | ( | void | ) |
Default constructor. Creates a default cursor.
| SoXtCursor::SoXtCursor | ( | const Shape | shape | ) |
Constructor with Shape argument, for setting up the cursor with a pre-defined shape from the underlying native toolkit.
| SoXtCursor::SoXtCursor | ( | const CustomCursor * | ccarg | ) |
Constructs a new custom bitmap cursor from cc.
Note that only a shallow copy will be made of the CustomCursor bitmap and mask references, so don't deallocate the memory they use until the SoXtCursor has been destructed.
As for the format of the cursor bitmap data, see documentation of SoXtCursor::CustomCursor.
| SoXtCursor::SoXtCursor | ( | const SoXtCursor & | cursor | ) |
Constructor.
| SoXtCursor::~SoXtCursor | ( | ) |
Destructor
| SoXtCursor & SoXtCursor::operator= | ( | const SoXtCursor & | c | ) |
Equal operator.
| SoXtCursor::Shape SoXtCursor::getShape | ( | void | ) | const |
Returns the shape type.
If the cursor has been set by the application programmer to a bitmap cursor, SoXtCursor::CUSTOM_BITMAP is returned.
| void SoXtCursor::setShape | ( | const Shape | shapearg | ) |
Sets the cursor to a predefined shape.
| const SoXtCursor::CustomCursor & SoXtCursor::getCustomCursor | ( | void | ) | const |
Returns a reference to the current custom bitmap cursor.
Do not call this method unless SoXtCursor::getShape() returns SoXtCursor::CUSTOM_BITMAP.
| const SoXtCursor & SoXtCursor::getZoomCursor | ( | void | ) | [static] |
Returns a "zoom" indicator cursor.
| const SoXtCursor & SoXtCursor::getPanCursor | ( | void | ) | [static] |
Returns a cursor with "pan" graphics (ie for translation in the camera normal plane).
| const SoXtCursor & SoXtCursor::getRotateCursor | ( | void | ) | [static] |
Returns a "rotate" indicator cursor.
| const SoXtCursor & SoXtCursor::getBlankCursor | ( | void | ) | [static] |
Because all toolkits don't easily support setting up a blank cursor from pre-defined shapes or API functions, we also provide a simple completely transparent cursor.
Copyright © 1998-2005 by Systems in Motion AS. All rights reserved.
Generated on Tue Dec 2 23:15:45 2008 for SoXt by Doxygen. 1.4.7