SoXtCursor Class Reference
[ScaleViz]

ScaleViz Encapsulates the construction and definition of an X Windows cursor. More...

#include <Inventor/Xt/SoXtCursor.h>

List of all members.

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)

Detailed Description

ScaleViz Encapsulates the construction and definition of an X Windows cursor.

This class can be used with the setCursor method of SoWinMPGLWidget.


Constructor & Destructor Documentation

SoXtCursor::SoXtCursor (  ) 

Constructor.

SoXtCursor::~SoXtCursor (  ) 

Destructor.


Member Function Documentation

int SoXtCursor::create ( void   ) 

Creates the cursor.

int SoXtCursor::define ( Display ,
Window  ,
int  cursorId 
)

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.


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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/