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)
pictureA Picture to copy.
archiveA Message, contains an archived version of the Picture.
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)
streamA DataIO, the stream that contains (or will contain) the flattened Picture data.
Play
Plays back the recorded drawing operations via callbacks.
Perl
$picture->Play($callbacks);
Python
picture.Play(callbacks)
callbacksA Picture Player Callback object.
ARCHIVABLE INTERFACE
Picture inherits the methods and hooks of Archivable.