Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
BCursor Class Reference

BCursor describes a view-wide or application-wide cursor. More...

Inherits BArchivable.

Public Member Functions

 BCursor (BCursorID id)
 Initializes a new cursor object from a predefined cursor id.
 
 BCursor (BMessage *data)
 Initializes a new cursor object from a message archive.
 
 BCursor (const BBitmap *bitmap, const BPoint &hotspot)
 Initializes a new cursor object from a bitmap object and a point object.
 
 BCursor (const BCursor &other)
 Initializes a new cursor object from another cursor object.
 
 BCursor (const void *cursorData)
 Initializes a new cursor object.
 
virtual ~BCursor ()
 Destroy the cursor and free its memory.
 
virtual status_t Archive (BMessage *archive, bool deep=true) const
 Archive the cursor. Not implemented.
 
status_t InitCheck () const
 Returns the initialization status.
 
bool operator!= (const BCursor &other) const
 Compare a cursor object to another and return if they are not equal.
 
BCursoroperator= (const BCursor &other)
 Set the cursor to another cursor object.
 
bool operator== (const BCursor &other) const
 Compare a cursor object to another and return if they are equal.
 

Static Public Member Functions

static BArchivableInstantiate (BMessage *archive)
 Instantiate the cursor from a message. Not implemented.
 

Detailed Description

BCursor describes a view-wide or application-wide cursor.

Note
As BeOS only supports 16x16 monochrome cursors, to see a nice shadowed one we will need to extend this.
Since
BeOS R5

Constructor & Destructor Documentation

◆ BCursor() [1/5]

BCursor::BCursor ( const void *  cursorData)

Initializes a new cursor object.

If the cursorData parameter is not NULL then the cursor is initialized with the cursor data.

Parameters
cursorDataThe cursor data.
Since
BeOS R5

◆ BCursor() [2/5]

BCursor::BCursor ( const BCursor other)

Initializes a new cursor object from another cursor object.

Parameters
otherThe cursor object to initialize from.
Since
BeOS R5

◆ BCursor() [3/5]

BCursor::BCursor ( BCursorID  id)

Initializes a new cursor object from a predefined cursor id.

Parameters
idThe predefined id to initialize to.
Since
BeOS R5

◆ BCursor() [4/5]

BCursor::BCursor ( BMessage data)

Initializes a new cursor object from a message archive.

Parameters
dataThe message data to initialize from.
Since
BeOS R5

◆ BCursor() [5/5]

BCursor::BCursor ( const BBitmap bitmap,
const BPoint hotspot 
)

Initializes a new cursor object from a bitmap object and a point object.

Parameters
bitmapThe bitmap object to initialize from.
hotspotThe cursor hotspot.
Since
Haiku R1

◆ ~BCursor()

BCursor::~BCursor ( )
virtual

Destroy the cursor and free its memory.

Since
BeOS R5

Member Function Documentation

◆ Archive()

status_t BCursor::Archive ( BMessage into,
bool  deep = true 
) const
virtual

Archive the cursor. Not implemented.

Since
BeOS R5

Reimplemented from BArchivable.

◆ InitCheck()

status_t BCursor::InitCheck ( ) const

Returns the initialization status.

Returns
B_OK if the object was properly initialized or an error code otherwise.
Since
Haiku R1

◆ Instantiate()

BArchivable * BCursor::Instantiate ( BMessage archive)
static

Instantiate the cursor from a message. Not implemented.

Since
BeOS R5

◆ operator!=()

bool BCursor::operator!= ( const BCursor other) const

Compare a cursor object to another and return if they are not equal.

Parameters
otherThe cursor object to compare to.
Returns
true if the cursor objects are not equal, false if the cursor objects are equal.
Since
BeOS R5

◆ operator=()

BCursor & BCursor::operator= ( const BCursor other)

Set the cursor to another cursor object.

Parameters
otherThe cursor object to copy from.
Returns
the new cursor object.
Since
BeOS R5

◆ operator==()

bool BCursor::operator== ( const BCursor other) const

Compare a cursor object to another and return if they are equal.

Parameters
otherThe cursor object to compare to.
Returns
true if the cursor objects are equal, false if the cursor objects are not equal.
Since
BeOS R5