Prima::...Metafile(3)

πŸ“¦
version 1.74000 Β· 5 versions
, in opensuse-leap 16.0

πŸ’– Prima::Drawable::Metafile β€” graphics recorder πŸ’–

okay bestie, this is the Prima::...Metafile(3) page from the User Contributed Perl Documentation, and it's literally about a graphics recorder. we're so back πŸ’…

🌸 NAME 🌸

Prima::Drawable::Metafile - graphics recorder

✨ DESCRIPTION ✨

Metafiles can record graphic primitives and replay them later on another canvas. that's the whole main character energy: record the primitives, replay them later on another canvas πŸ¦‹

πŸŽ€ SYNOPSIS πŸŽ€

my $metafile = Prima::Drawable::Metafile->new( size => [30, 30] );
$metafile->begin_paint;
$metafile->rectangle(10,10,20,20);
$metafile->end_paint;

$metafile->execute( $another_drawable, 100, 100 );

πŸ’… API πŸ’…

  • call $SUB::($self,$canvas,@ARGS), @ARGS β€” $SUB will be called when the metafile is executed, with the first two parameters the metafile and the target canvas, and @ARGS thereafter.
  • clear β€” When called without parameters, clears the content before proceeding. Otherwise same as Drawable.clear.
  • execute CANVAS,X,Y β€” Draws the content on the CANVAS with X,Y offset.
  • size X,Y β€” Sets the metafile extensions; the content is not clipped by it.

πŸ‘‘ AUTHOR πŸ‘‘

Dmitry Karasik, <dmitry@karasik.eu.org>.

🌈 SEE ALSO 🌈

  • Prima
  • Prima::Buttons
  • examples/buttons.pl

cute sign-off bestie: this was perl v5.42.0, dated 2024-08-20, and the page is Prima::...Metafile(3) β€” periodt πŸ’–βœ¨

πŸ“¦ where this page comes from