Haiku API Bindings
Picture
Not logged in

Documentation | InterfaceKit | Picture

SYNOPSIS

Perl

use HaikuR1::Picture;

my $picture = HaikuR1::Picture->new();
$view->BeginPicture($picture);

# call drawing operatons on $view

$view->EndPicture();

Python

from HaikuR1.InterfaceKit import Picture

picture = Picture()
view.BeginPicture(picture)

# call drawing operatons on view

view.EndPicture()

DESCRIPTION

Exposes the BPicture object.

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

METHODS

Constructor

Creates a Picture.

Perl

HaikuR1::Picture->new();
HaikuR1::Picture->new($picture);
HaikuR1::Picture->new($archive);

Python

Picture()
Picture(picture)
Picture(archive)

Flattening

Flatten

Unflatten

Flattens the Picture into a data stream, or unflattens it from one.

Perl

$picture->Flatten($stream);
$picture->Unflatten($stream);

Python

picture.Flatten(stream)
picture.Unflatten(stream)

Play

Plays back the recorded drawing operations via callbacks.

Perl

$picture->Play($callbacks);

Python

picture.Play(callbacks)

ARCHIVABLE INTERFACE

Picture inherits the methods and hooks of Archivable.