OpendTect  6.6
Public Types | Public Member Functions | Public Attributes | List of all members
MouseCursor Class Reference

Definition of a mouse cursor, can be either a predefined shape (from the enum, or a file.) More...

Public Types

enum  Shape {
  Arrow , UpArrow , Cross , Wait ,
  Ibeam , SizeVer , SizeHor , SizeBDiag ,
  SizeFDiag , SizeAll , Blank , SplitV ,
  SplitH , PointingHand , Forbidden , WhatsThis ,
  Busy , OpenHand , ClosedHand , Last = ClosedHand ,
  Bitmap = 24 , NotSet , GreenArrow , Rotator ,
  Pencil
}
 

Public Member Functions

 MouseCursor ()
 
 MouseCursor (const char *fnm)
 
 MouseCursor (Shape s)
 
virtual ~MouseCursor ()
 
bool operator!= (const MouseCursor &) const
 
bool operator== (const MouseCursor &) const
 

Public Attributes

BufferString filename_
 Only used if shape_==Bitmap. More...
 
int hotx_
 
int hoty_
 
OD::RGBImageimage_
 Only used if shape_==Bitmap && filename_ is empty. More...
 
Shape shape_
 

Detailed Description

Definition of a mouse cursor, can be either a predefined shape (from the enum, or a file.)

<>

Member Enumeration Documentation

◆ Shape

This enum type defines the various cursors that can be used. Arrow is the default for widgets in a normal state.

Enumerator
Arrow 

standard arrow cursor

UpArrow 

upwards arrow

Cross 

crosshair

Wait 

hourglass/watch

Ibeam 

ibeam/text entry

SizeVer 

vertical resize

SizeHor 

horizontal resize

SizeBDiag 

diagonal resize ()

SizeFDiag 

diagonal resize (/)

SizeAll 

all directions resize

Blank 

blank/invisible cursor

SplitV 

vertical splitting

SplitH 

horizontal splitting

PointingHand 

a pointing hand

Forbidden 

a slashed circle

WhatsThis 

an arrow with a question mark

Busy 

hourglass/watch

OpenHand 

an open hand

ClosedHand 

a closed hand

Last 
Bitmap 
NotSet 
GreenArrow 

Custom cursor.

Rotator 

Custom cursor.

Pencil 

Custom cursor.

Constructor & Destructor Documentation

◆ ~MouseCursor()

virtual MouseCursor::~MouseCursor ( )
virtual

◆ MouseCursor() [1/3]

MouseCursor::MouseCursor ( )

◆ MouseCursor() [2/3]

MouseCursor::MouseCursor ( Shape  s)

◆ MouseCursor() [3/3]

MouseCursor::MouseCursor ( const char *  fnm)

Member Function Documentation

◆ operator!=()

bool MouseCursor::operator!= ( const MouseCursor ) const

◆ operator==()

bool MouseCursor::operator== ( const MouseCursor ) const

Member Data Documentation

◆ filename_

BufferString MouseCursor::filename_

Only used if shape_==Bitmap.

◆ hotx_

int MouseCursor::hotx_

◆ hoty_

int MouseCursor::hoty_

◆ image_

OD::RGBImage* MouseCursor::image_

Only used if shape_==Bitmap && filename_ is empty.

◆ shape_

Shape MouseCursor::shape_

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022