NAME
LibUI::Control - Base Class for GUI Controls
SYNOPSIS
use LibUI;
use LibUI::Window;
DESCRIPTION
A LibUI::Control object represents the superclass for all GUI objects.
Functions
All subclasses of LibUI::Control have access to these methods.
uiControlDestroy( ... )
uiControlDestroy( $c );
Dispose and free all allocated resources.
uiControlHandle( ... )
my $handle = uiControlHandle( $c );
Returns the control's OS-level handle.
uiControlParent( ... )
my $parent = uiControlParent( $c );
Returns the parent control or undef
if detached.
uiControlSetParent( ... )
uiControlSetParent( $c, $parent );
Sets the control's parent. Pass undef
to detach.
uiControlToplevel( ... )
if ( uiControlToplevel( $c ) ) {
...;
}
Returns whether or not the control is a top level control.
uiControlVisible( ... )
if ( uiControlVisible( $c ) ) {
...;
}
Returns whether or not the control is visible.
uiControlShow( ... )
uiControlShow( $c );
Shows the control.
uiControlHide( ... )
uiControlHide( $c );
Hides the control. Hidden controls do not take up space within the layout.
uiControlEnabled( ... )
if ( uiControlEnabled( $c ) ) {
...;
}
Returns whether or not the control is enabled.
uiControlEnable( ... )
uiControlEnable( $c );
Enables the control.
uiControlDisable( ... )
uiControlDisable( $c );
Disables the control.
uiAllocControl( ... )
my $control = uiAllocControl( $size, $OSsig, $type, $typename );
Helper to allocate new controls.
uiFreeControl( ... )
uiFreeControl( $c );
Frees the control.
uiControlVerifySetParent( ... )
uiControlVerifySetParent( $c, $parent );
Makes sure the control's parent can be set to $parent
and crashes the application on failure.
LICENSE
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Sanko Robinson <sanko@cpan.org>