|
NAMEGtk2::Gdk::Cairo::ContextHIERARCHYCairo::Context +---- Gtk2::Gdk::Cairo::Context (Perl subclass) DESCRIPTIONThis is some inter-operation between Cairo (see Cairo) and Gdk things.A "Gtk2::Gdk::Cairo::Context" lets Cairo draw on a Gdk drawable (window or pixmap). It's a Perl-level subclass of "Cairo::Context" and the various functions below can be used as methods on it. The methods can also be used on other "Cairo::Context" as plain functions. For example "set_source_pixbuf" can setup to draw from a "Gtk2::Gdk::Pixbuf" to any Cairo context, my $cr = Cairo::Context->create ($surface); Gtk2::Gdk::Cairo::Context::set_source_pixbuf ($cr, $pixbuf, $x,$y); $cr->paint; METHODSgdkcr = Gtk2::Gdk::Cairo::Context->create ($drawable)
$gdkcr->rectangle ($rectangle)$gdkcr->rectangle ($x, $y, $width, $height)Gtk2::Gdk::Cairo::Context::rectangle ($anycr, $rectangle)
The 4-argument x,y,width,height is the base Cairo::Context style. This extends to also take a "Gtk2::Gdk::Rectangle". $gdkcr->region ($region)Gtk2::Gdk::Cairo::Context::region ($anycr, $region)
$gdkcr->reset_clip ($drawable)Gtk2::Gdk::Cairo::Context::reset_clip ($anycr, $drawable)
Since: gtk+ 2.18 $gdkcr->set_source_color ($color)Gtk2::Gdk::Cairo::Context::set_source_color ($anycr, $color)
$gdkcr->set_source_pixbuf ($pixbuf, $pixbuf_x, $pixbuf_y)Gtk2::Gdk::Cairo::Context::set_source_pixbuf ($anycr, $pixbuf, $pixbuf_x, $pixbuf_y)
$gdkcr->set_source_pixmap ($pixmap, $pixmap_x, $pixmap_y)Gtk2::Gdk::Cairo::Context::set_source_pixmap ($anycr, $pixmap, $pixmap_x, $pixmap_y)
Since: gtk+ 2.10 SEE ALSOGtk2COPYRIGHTCopyright (C) 2003-2011 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Visit the GSP FreeBSD Man Page Interface. |