NAME

LibUI::Draw::Path - Button to be Clicked by the User to Trigger an Action

SYNOPSIS

TODO

DESCRIPTION

TODO

Functions

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

new( ... )

my $path = LibUI::Draw::Path->new( $mode );

Creates a new draw path.

Expected parameters include:

fillMode - a LibUI::Draw::FillMode value

free( )

$path->free;

Frees the path's memory.

newFigure( ... )

$path->newFigure( 100, 100 );

Creates a new drawing figure.

Expected parameters include:

x
y

newFigureWithArc( ... )

$path->newFigureWithArc( 100, 100, 30, 90, 20, 0 );

Creates a new drawing figure.

Expected parameters include:

xCenter
yCenter
radius
startAngle
sweep
negative

lineTo( ... )

$path->newFigure( 100, 100 );

Draws a line to a given point.

Expected parameters include:

x
y

arcTo( ... )

$path->arcTo( 100, 100, 30, 90, 20, 0 );

Draws an arc to a given point.

Expected parameters include:

xCenter
yCenter
radius
startAngle
sweep
negative

bezierTo( ... )

$path->bezierTo( 100, 100, 30, 90, 200, 150 );

Draws a bezier curve to a given point.

Expected parameters include:

x1
y1
x2
y2
endX
endY

closeFigure( )

$path->closeFigure( );

Closes the current path.

addRectangle( ... )

$path->addRectangle( 100, 100, 50, 50 );

Adds a rectangle to the path with a given size at a given position.

Expected parameters include:

x
y
width
height

ended( )

my $done = $path->ended( );

Returns a boolean value indicating if the path is finished.

end( )

$path->end( );

Ends the path.

Enumerations

Fill Mode

This enum is defined as LibUI::Draw::FillMode.

Values include:

Winding
Alternate

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>