Documentation | InterfaceKit | RadioButton
SYNOPSIS
Perl
use HaikuR1::RadioButton; my $radio = HaikuR1::RadioButton->new( frame => $frame, name => $name, label => $label, message => $message, resizingMode => $resizingMode, flags => $flags, ); $window->AddChild($radio);
Python
from HaikuR1.InterfaceKit import RadioButton RadioButton = RadioButton( frame = frame, name = name, label = label, message = message, resizingMode = resizingMode, flags = flags, ) window.AddChild(RadioButton)
DESCRIPTION
Exposes the BRadioButton
object.
For more information on RadioButton, see the Be Book class description, the Be Book overview, and the Haiku Book class description.
METHODS
Constructor
Creates a radio.
Perl
HaikuR1::RadioButton->new( frame => $frame, name => $name, label => $label, message => $message, resizingMode => $resizingMode, flags => $flags, ); HaikuR1::RadioButton->new($archive);
Python
RadioButton( frame = frame, name = name, label = label, message = message, resizingMode = resizingMode, flags = flags, ) RadioButton(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 RadioButton's internal name.
label
A string, the text that will be displayed on the radio.
message
A Message that will be sent when the RadioButton 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 radio.
ARCHIVABLE INTERFACE
RadioButton
inherits the methods and hooks of Archivable.
HANDLER INTERFACE
RadioButton
inherits the methods and hooks of Handler.
VIEW INTERFACE
RadioButton
inherits the methods and hooks of View.
CONTROL INTERFACE
RadioButton
inherits the methods and hooks of Control.
SCRIPTING SUITE
RadioButton inherits the following suites: