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::HSeparator - Visually Separates Controls Horizontally

SYNOPSIS

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

DESCRIPTION

A LibUI::HSeparator 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::HSeparator->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>