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. | |
BCursor & | operator= (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 BArchivable * | Instantiate (BMessage *archive) |
Instantiate the cursor from a message. Not implemented. | |
BCursor describes a view-wide or application-wide cursor.
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.
cursorData | The cursor data. |
BCursor::BCursor | ( | const BCursor & | other | ) |
Initializes a new cursor object from another cursor object.
other | The cursor object to initialize from. |
BCursor::BCursor | ( | BCursorID | id | ) |
Initializes a new cursor object from a predefined cursor id.
id | The predefined id to initialize to. |
BCursor::BCursor | ( | BMessage * | data | ) |
Initializes a new cursor object from a message archive.
data | The message data to initialize from. |
Initializes a new cursor object from a bitmap object and a point object.
bitmap | The bitmap object to initialize from. |
hotspot | The cursor hotspot. |
|
virtual |
Destroy the cursor and free its memory.
status_t BCursor::InitCheck | ( | ) | const |
Returns the initialization status.
B_OK
if the object was properly initialized or an error code otherwise.
|
static |
Instantiate the cursor from a message. Not implemented.
bool BCursor::operator!= | ( | const BCursor & | other | ) | const |
Compare a cursor object to another and return if they are not equal.
other | The cursor object to compare to. |
true
if the cursor objects are not equal, false
if the cursor objects are equal.Set the cursor to another cursor object.
other | The cursor object to copy from. |
bool BCursor::operator== | ( | const BCursor & | other | ) | const |
Compare a cursor object to another and return if they are equal.
other | The cursor object to compare to. |
true
if the cursor objects are equal, false
if the cursor objects are not equal.