Haiku API Bindings
Cursor
Not logged in

Documentation | ApplicationKit | Cursor

SYNOPSIS

Perl

use HaikuR1::Cursor qw(B_CURSOR_SYSTEM_DEFAULT B_CURSOR_I_BEAM B_CURSOR_ID_HELP);

my $cursor1 = HaikuR1::Cursor->new($raw_data);
my $cursor2 = HaikuR1::Cursor->new($copy_from);
my $cursor1 = HaikuR1::Cursor->new(B_CURSOR_ID_HELP);

Python

from HaikuR1.Cursor import B_CURSOR_SYSTEM_DEFAULT B_CURSOR_I_BEAM B_CURSOR_ID_HELP

cursor1 = Cursor(raw_data)
cursor2 = Cursor(copy_from)
cursor1 = Cursor(B_CURSOR_ID_HELP)

DESCRIPTION

Exposes the BCursor object.

For more information on Cursor, see the Be Book class description, the Be Book overview, and the Haiku Book class description.

METHODS

Constructor

Creates a Cursor.

Perl

HaikuR1::Cursor->new($cursor);

Python

Cursor(cursor)

Note

The archiving of Cursors is not implemented in the C code, so the archive version is not useful at this time.

The raw data format is:

copy

Copies the contents of another object into this object.

Perl

$cursor->copy($copy_from);

Python

cursor.copy(copy_from)

ARCHIVABLE INTERFACE

Cursor inherits the methods and hooks of Archivable.

OPERATORS

==

Returns true if the cursor objects refer to the same underlying cursor data.

!=

Returns true if the cursor objects do not refer to the same underlying cursor data.

CONSTANTS

Pre-defined Cursors

Perl

use HaikuR1::Cursor qw(:cursors)

Python

Python does not support export tags.

Python

Since these two items are not instantiated on the C++ side until the Application is created, they are initially set to None. If you wish to use them, you must wait to import them until after you have created your Application object.

Cursor IDs

Perl

use HaikuR1::Cursor qw(:ids)

Python

Python does not support export tags.