Sanko Robinson > FLTK-0.532009 > FLTK::AlignGroup

Download:
FLTK-0.532009.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.532006   Source  

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.

syntax highlighting: