Prima::Drawable 1.20 review
DownloadPrima::Drawable is a 2-D graphic interface. SYNOPSIS if ( $object-> isa('Prima::Drawable')) { $object-> begin_paint;
|
|
Prima::Drawable is a 2-D graphic interface.
SYNOPSIS
if ( $object-> isa('Prima::Drawable')) {
$object-> begin_paint;
$object-> color( cl::Black);
$object-> line( 100, 100, 200, 200);
$object-> ellipse( 100, 100, 200, 200);
$object-> end_paint;
}
Prima::Drawable is a descendant of Prima::Component. It provides access to the object-bound graphic context and canvas through its methods and properties. The Prima::Drawable descendants Prima::Widget, Prima::Image, Prima::DeviceBitmap and Prima::Printer are backed by system-dependent routines that allow drawing and painting on the system objects.
Requirements:
Perl
Prima::Drawable 1.20 keywords