Encapsulates the construction and definition of an X Windows cursor. More...
#include <Inventor/Xt/SoXtCursor.h>
Public Member Functions | |
SoXtCursor () | |
~SoXtCursor () | |
int | create (void) |
int | setBitmapShapeFile (char *fileName) |
int | setBitmapMaskFile (char *fileName) |
int | setForegroundColor (int red, int green, int blue) |
int | setBackgroundColor (int red, int green, int blue) |
int | setFontCursor (int ID) |
int | setHotSpot (int x, int y) |
int | setPixmap (char *bits, unsigned int w, unsigned int h, int x_hot, int y_hot) |
int | define (Display *, Window, int cursorId) |
This class can be used with the setCursor method of SoWinMPGLWidget.
SoXtCursor::SoXtCursor | ( | ) |
Constructor.
SoXtCursor::~SoXtCursor | ( | ) |
Destructor.
int SoXtCursor::create | ( | void | ) |
Creates the cursor.
Enables the cursor within the specified window.
int SoXtCursor::setBackgroundColor | ( | int | red, | |
int | green, | |||
int | blue | |||
) |
Sets the background color of the cursor (i.e., color of the mask bitmap).
int SoXtCursor::setBitmapMaskFile | ( | char * | fileName | ) |
Sets a bitmap file for the mask of the cursor.
By default the mask is the same bitmap as the shape bitmap.
int SoXtCursor::setBitmapShapeFile | ( | char * | fileName | ) |
Sets a bitmap file for the shape of the cursor.
int SoXtCursor::setFontCursor | ( | int | ID | ) |
Sets the font cursor id.
int SoXtCursor::setForegroundColor | ( | int | red, | |
int | green, | |||
int | blue | |||
) |
Sets the foreground color of the cursor (i.e., color of the shape bitmap).
int SoXtCursor::setHotSpot | ( | int | x, | |
int | y | |||
) |
Sets the hot spot coordinates within the bitmap.
int SoXtCursor::setPixmap | ( | char * | bits, | |
unsigned int | w, | |||
unsigned int | h, | |||
int | x_hot, | |||
int | y_hot | |||
) |
Sets the pixmap to define the cursor shape.