SoQtCursor(3)
SoQtCursor(3) π
okay bestie, welcome to the SoQt manual page for SoQtCursor β the little class that handles cursors for GUI components. no cap, itβs giving βmouse pointer glow-upβ energy. β¨
NAME π
SoQtCursor β The SoQtCursor class is used to set cursors for GUI components.
SYNOPSIS π
Classes
class CustomCursorβ TheSoQtCursor::CustomCursorclass is used to specify bitmap data forSoQtCursorcustom cursors.
Public Types
enum Shape { CUSTOM_BITMAP = -1, DEFAULT = 0, BUSY, CROSSHAIR, UPARROW }
Public Member Functions
SoQtCursor (void)
SoQtCursor (const Shape shape)
SoQtCursor (const CustomCursor *cc)
SoQtCursor (const SoQtCursor &cursor)
~SoQtCursor ()
SoQtCursor & operator= (const SoQtCursor &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 SoQtCursor & getZoomCursor (void)
static const SoQtCursor & getPanCursor (void)
static const SoQtCursor & getRotateCursor (void)
static const SoQtCursor & getBlankCursor (void)
Detailed Description πΈ
The SoQtCursor class is used to set cursors for GUI components.
It provides both a set of predefined cursor shapes and the option to use custom bitmap graphics. π¨
Instances of this class are usually made for passing in to the SoQtComponent::setComponentCursor() and SoQtComponent::setWidgetCursor() methods. π«Ά
Member Enumeration Documentation π¦
enum SoQtCursor::Shape
For enumerating built-in shape types that can be used without having to specify cursor graphics. These are mapped to predefined cursor shapes from the underlying toolkit.
CUSTOM_BITMAPβ Cursor is specified with our own bitmap graphics. The bitmap data must be passed to the constructor.DEFAULTβ Using the native Window systemβs default cursor.BUSYβ A busy cursor.CROSSHAIRβ Two thin lines in a cross.UPARROWβ Thick, upward-pointing arrow.
Constructor & Destructor Documentation π§
SoQtCursor::SoQtCursor (void )
Default constructor. Creates a default cursor.
SoQtCursor::SoQtCursor (const Shape shape)
Constructor with Shape argument, for setting up the cursor with a predefined shape from the underlying native toolkit.
SoQtCursor::SoQtCursor (const CustomCursor * ccarg)
Constructs a new custom bitmap cursor from cc.
Note that only a shallow copy will be made of theCustomCursorbitmap and mask references, so donβt deallocate the memory they use until theSoQtCursorhas been destructed. π«Ά
As for the format of the cursor bitmap data, see documentation of SoQtCursor::CustomCursor.
SoQtCursor::SoQtCursor (const SoQtCursor & cursor)
Constructor.
SoQtCursor::~SoQtCursor ()
Destructor
Member Function Documentation π
SoQtCursor & SoQtCursor::operator= (const SoQtCursor & c)
Assignment operator.
SoQtCursor::Shape SoQtCursor::getShape (void ) const
Returns the shape type.
If the cursor has been set by the application programmer to a bitmap cursor, SoQtCursor::CUSTOM_BITMAP is returned.
void SoQtCursor::setShape (const Shape shapearg)
Sets the cursor to a predefined shape.
const SoQtCursor::CustomCursor & SoQtCursor::getCustomCursor (void ) const
Returns a reference to the current custom bitmap cursor.
Do not call this method unlessSoQtCursor::getShape()returnsSoQtCursor::CUSTOM_BITMAP. π
const SoQtCursor & SoQtCursor::getZoomCursor (void ) [static]
Returns a "zoom" indicator cursor.
const SoQtCursor & SoQtCursor::getPanCursor (void ) [static]
Returns a cursor with "pan" graphics (i.e. for translation in the camera normal plane).
const SoQtCursor & SoQtCursor::getRotateCursor (void ) [static]
Returns a "rotate" indicator cursor.
const SoQtCursor & SoQtCursor::getBlankCursor (void ) [static]
Because not all toolkits do easily support setting up a blank cursor from predefined shapes or API functions, we also provide a simple completely transparent cursor.
Author βοΈ
Generated automatically by Doxygen for SoQt from the source code.
okay thatβs the whole page, bestie β from SoQt version 1.6.2, dated Sat Jan 6 2024 12:20:55, and itβs the SoQtCursor(3) manual. mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms