NAME

Tickit::Widget::HBox - distribute child widgets in a horizontal row

SYNOPSIS

use Tickit;
use Tickit::Widget::HBox;
use Tickit::Widget::Static;

my $tickit = Tickit->new;

my $hbox = Tickit::Widget::HBox->new;

foreach my $position (qw( left centre right )) {
   $hbox->add(
      Tickit::Widget::Static->new(
         text   => $position,
         align  => $position,
         valign => "middle",
      ),
      expand => 1
   );
}

$tickit->set_root_widget( $hbox );

$tickit->run;

DESCRIPTION

This container widget distributes its children in a horizontal row.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>