GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Prima::Drawable::Subcanvas(3) User Contributed Perl Documentation Prima::Drawable::Subcanvas(3)

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

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.

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

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.

David Mertens

examples/grip.pl
2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.