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 (const void *cursorData)
 Initializes a new cursor object. More...
 
 BCursor (const BCursor &other)
 Initializes a new cursor object from another cursor object. More...
 
 BCursor (BCursorID id)
 Initializes a new cursor object from a predefined cursor id. More...
 
 BCursor (BMessage *data)
 Initializes a new cursor object from a message archive. More...
 
virtual ~BCursor ()
 Destroy the cursor and free its memory. More...
 
virtual status_t Archive (BMessage *archive, bool deep=true) const
 Archive the cursor. Not implemented. More...
 
bool operator!= (const BCursor &other) const
 Compare a cursor object to another and return if they are not equal. More...
 
BCursoroperator= (const BCursor &other)
 Set the cursor to another cursor object. More...
 
bool operator== (const BCursor &other) const
 Compare a cursor object to another and return if they are equal. More...
 

Static Public Member Functions

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

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/4]

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/4]

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/4]

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/4]

BCursor::BCursor ( BMessage data)

Initializes a new cursor object from a message archive.

Parameters
dataThe message data to initialize from.
Since
BeOS R5

◆ ~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.

◆ 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