Haiku API Bindings
Cursor
Not logged in

Documentation | ApplicationKit | Cursor

SYNOPSIS

Perl

Python

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);

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

Python

HaikuR1::Cursor->new($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

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

Python

use HaikuR1::Cursor qw(:cursors)

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

Python

use HaikuR1::Cursor qw(:ids)