Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Prima::Drawable::SubcaUser(Contributed Perl DocumPrima::Drawable::Subcanvas(3)

NAME
       Prima::Drawable::Subcanvas - paint a hierarchy of widgets to any
       drawable

DESCRIPTION
       Needed for painting a screenshot	on an image, printer, etc.  When
       loaded, it aytomatically	adds two methods to any	Drawable:
       paint_with_widgets and screenshot.

SYNOPSIS
	   use Prima qw(Application Button);
	   my $w = Prima::MainWindow-> create;
	   $w->insert( 'Button'	);
	   $w->screenshot->save('a.bmp');

METHODS
       paint_with_widgets $canvas, $x=0, $y=0
	   Given a $canvas is in paint mode, traverses all widgets as they are
	   seen	on screen, and paints them on the canvas with given "$x,$y"
	   offsets.

       screenshot $canvas, %opt
	   Syntax sugar	over the paint_with_widgets. Creates an	image with the
	   $self's, size, and calls "paint_with_widgets" with it. Returns the
	   screen shot.

AUTHOR
       David Mertens

SEE ALSO
       examples/grip.pl

perl v5.24.1			  2017-02-28	 Prima::Drawable::Subcanvas(3)

NAME | DESCRIPTION | SYNOPSIS | METHODS | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Prima::Drawable::Subcanvas&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help