The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

LibUI::HorizontalSeparator - Visually Separates Controls Horizontally

SYNOPSIS

    use LibUI ':all';
    use LibUI::HBox;
    use LibUI::Window;
    use LibUI::MultilineEntry;
    use LibUI::HorizontalSeparator;
    Init( { Size => 1024 } ) && die;
    my $window = LibUI::Window->new( 'Left and Right', 320, 100, 0 );
    my $box    = LibUI::HBox->new();
    my $left   = LibUI::MultilineEntry->new();
    my $right  = LibUI::MultilineEntry->new();
    $box->append( $left,                             1 );
    $box->append( LibUI::HorizontalSeparator->new(), 0 );
    $box->append( $right,                            1 );
    $window->setChild($box);
    $window->onClosing(
        sub {
            Quit();
            return 1;
        },
        undef
    );
    $window->show;
    Main();

DESCRIPTION

A LibUI::HorizontalSeparator object represents a control to visually separate controls horizontally.

Functions

Not a lot here but... well, it's just a line.

new( )

    my $sep = LibUI::HorizontalSeparator->new( );

Creates a new horizontal separator.

See Also

LibUI::VerticalSeparator

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>