Prima::...bcanvas(3)
β¨ NAME β¨
okay so this is the Prima::...bcanvas(3) page, and the main character is Prima::Drawable::Subcanvas β itβs literally for painting a hierarchy of widgets to any drawable. no cap. π
π DESCRIPTION π
The whole point? Itβs needed for painting a screenshot on an image, printer, etc. iconic behavior, honestly.
It adds two methods to the Prima::Drawable namespace: paint_with_widgets and screenshot. thatβs the whole vibe. periodt. π«Ά
πΈ 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 that $canvas is in the paint mode, this method traverses all widgets exactly as they are seen on the screen, and paints them on the canvas with the given $x,$y offsets. itβs giving βtake the whole widget situation and put it over there.β β¨
πΈ screenshot $canvas, %opt
Syntax sugar over paint_with_widgets. literally the shortcut bestie. π
It creates an image with the $self's, size, calls paint_with_widgets with it, and returns the screenshot. obsessed. π
π AUTHOR π
David Mertens
π¦ SEE ALSO π¦
examples/grip.pl
mwah π β this page is from perl v5.42.0, dated 2024-08-20. slay and goodbye. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms