LibUI::Control - Base Class for GUI Controls
use LibUI; use LibUI::Window;
A LibUI::Control object represents the superclass for all GUI objects.
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.
undef
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.
$parent
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Sanko Robinson <sanko@cpan.org>
To install LibUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LibUI
CPAN shell
perl -MCPAN -e shell install LibUI
For more information on module installation, please visit the detailed CPAN module installation guide.