The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FLTK::AlignGroup - Align layout manager

Description

The AlignGroup overrides all group's children's label alignments to it's own align() value, tiles and resize()s the children to fit in the space not required by the (outsize) labels.

Functions

align

my $flags = $aligngroup->align( );
$aligngroup->align( $flags );

dh

my $h = $aligngroup->dh( );
$aligngroup->dh( $value );

dw

my $w = $aligngroup->dw( );
$aligngroup->dw( $value );

layout

$aligngroup->layout( );

$v = $group_1->vertical( )

n_to_break

my $n = $aligngroup->n_to_break( );

$group_1->n_to_break( $value )

$aligngroup->n_to_break( $value );

new

my $self = $aligngroup->new( $x, $y, $width, $height, $label, $n_to_break, $vertical, $align, $dw, $dh );

Creates a new FLTK::AlignGroup object. This constructor expects integers for $x, $y, $w, $h and accepts an optional string for $label. Other optional arguments include:

  • $n_to_break

    Default value is an empty string.

  • $vertical

    A boolean who's default value is a true value.

  • $align

    FLTK::Flags value which defaults to FLTK::ALIGN_LEFT

  • $dw

  • $dh

Usage

  my $group_1 = FLTK::AlignGroup->new( $x, $y, $w, $h, $label );
  my $group_2 = FLTK::AlignGroup->new( 40, 40, 150, 40);

vertical

my $vert = $aligngroup->vertical( );

$group_1->vertical( $value )

$aligngroup->vertical( $vert );

my $n = $group_1->n_to_break( )

Constructor

Methods

$group_1->layout( )

Author

Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/

License and Legal

Copyright (C) 2008-2010 by Sanko Robinson <sanko@cpan.org>

This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.

When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.

10 POD Errors

The following errors were encountered while parsing the POD:

Around line 90:

You forgot a '=back' before '=head2'

Around line 94:

=back without =over

Around line 105:

You forgot a '=back' before '=head2'

Around line 109:

'=item' outside of any '=over'

Around line 150:

You forgot a '=back' before '=head2'

Around line 161:

=back without =over

Around line 170:

You forgot a '=back' before '=head2'

Around line 174:

'=item' outside of any '=over'

Around line 178:

You forgot a '=back' before '=head2'

Around line 182:

=back without =over