Documentation | InterfaceKit | CheckBox
SYNOPSIS
Perl
use HaikuR1::CheckBox; my $checkbox = HaikuR1::CheckBox->new( frame => $frame, name => $name, label => $label, message => $message, resizingMode => $resizingMode, flags => $flags, ); $window->AddChild($checkbox);
Python
from HaikuR1.InterfaceKit import CheckBox CheckBox = CheckBox( frame = frame, name = name, label = label, message = message, resizingMode = resizingMode, flags = flags, ) window.AddChild(CheckBox)
DESCRIPTION
Exposes the BCheckBox
object.
For more information on CheckBox, see the Be Book class description, the Be Book overview, and the Haiku Book class description.
METHODS
Constructor
Creates a checkbox.
Perl
HaikuR1::CheckBox->new( frame => $frame, name => $name, label => $label, message => $message, resizingMode => $resizingMode, flags => $flags, ); HaikuR1::CheckBox->new($archive);
Python
CheckBox( frame = frame, name = name, label = label, message = message, resizingMode = resizingMode, flags = flags, ) CheckBox(archive)
frame
A Rect that indicates where on the parent Window the View should be. You should not specify a frame on a View that will be added to a parent which uses a Layout.
name
A string, the CheckBox's internal name.
label
A string, the text that will be displayed on the checkbox.
message
A Message that will be sent when the CheckBox is Invoked.
resizingMode
An integer, the resizing mode. (See the resizing mode constants.) Should only be specified when there is a frame. Defaults to
B_FOLLOW_NONE
.flags
An integer, view flags. (See the view flag constants.)
archive
A Message, contains an archived version of the checkbox.
ARCHIVABLE INTERFACE
CheckBox
inherits the methods and hooks of Archivable.
HANDLER INTERFACE
CheckBox
inherits the methods and hooks of Handler.
VIEW INTERFACE
CheckBox
inherits the methods and hooks of View.
CONTROL INTERFACE
CheckBox
inherits the methods and hooks of Control.
SCRIPTING SUITE
CheckBox inherits the following suites: