21 Jan 2020 03:51:59 UTC
- Distribution: Fl
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (86 / 0 / 0)
- KwaliteeBus factor: 1
- License: artistic_2
- Perl: v5.8.1
- Activity24 month
- Download (122.46KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Fl::Widget - Base Class for All Widgets
You are not meant to create Fl::Widget objects directly, however you can subclass it.
All "property" accessing methods, such as
argument()are implemented as trivial inline functions and thus are as fast and small as accessing fields in a structure. Unless otherwise noted, the property setting methods such as
label(s)are also trivial inline functions, even if they change the widget's appearance. It is up to the user code to call
Fl::Widget exposes the following methods...
Activates the widget.
Changing this value will send
FL_ACTIVATEto the widget if
my $in_focus = $widget->active();
Returns whether the widget is active.
Recursive version of
active()that checks if the widget or any of its parents are active.
my $pos = $widget->align( );
Gets the label alignment.
Sets the label alignment.
This controls how the label is displayed next to or inside the widget. The default value is
FL_ALIGN_CENTER, which centers the lable inside the widget.
See Fl::Enumerations for more values.