.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Gtk2::Gdk::Cairo::Context 3pm" .TH Gtk2::Gdk::Cairo::Context 3pm "2019-09-16" "perl v5.28.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Gtk2::Gdk::Cairo::Context .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 2 \& Cairo::Context \& +\-\-\-\- Gtk2::Gdk::Cairo::Context (Perl subclass) .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This is some inter-operation between Cairo (see Cairo) and Gdk things. .PP A \f(CW\*(C`Gtk2::Gdk::Cairo::Context\*(C'\fR lets Cairo draw on a Gdk drawable (window or pixmap). It's a Perl-level subclass of \f(CW\*(C`Cairo::Context\*(C'\fR and the various functions below can be used as methods on it. .PP The methods can also be used on other \f(CW\*(C`Cairo::Context\*(C'\fR as plain functions. For example \f(CW\*(C`set_source_pixbuf\*(C'\fR can setup to draw from a \&\f(CW\*(C`Gtk2::Gdk::Pixbuf\*(C'\fR to any Cairo context, .PP .Vb 3 \& my $cr = Cairo::Context\->create ($surface); \& Gtk2::Gdk::Cairo::Context::set_source_pixbuf ($cr, $pixbuf, $x,$y); \& $cr\->paint; .Ve .SH "METHODS" .IX Header "METHODS" .SS "gdkcr = Gtk2::Gdk::Cairo::Context\->\fBcreate\fP ($drawable)" .IX Subsection "gdkcr = Gtk2::Gdk::Cairo::Context->create ($drawable)" .IP "\(bu" 4 \&\f(CW$drawable\fR (Gtk2::Gdk::Drawable) .ie n .SS "$gdkcr\->\fBrectangle\fP ($rectangle)" .el .SS "\f(CW$gdkcr\fP\->\fBrectangle\fP ($rectangle)" .IX Subsection "$gdkcr->rectangle ($rectangle)" .ie n .SS "$gdkcr\->\fBrectangle\fP ($x, $y, $width, $height)" .el .SS "\f(CW$gdkcr\fP\->\fBrectangle\fP ($x, \f(CW$y\fP, \f(CW$width\fP, \f(CW$height\fP)" .IX Subsection "$gdkcr->rectangle ($x, $y, $width, $height)" .ie n .SS "Gtk2::Gdk::Cairo::Context::rectangle ($anycr, $rectangle)" .el .SS "Gtk2::Gdk::Cairo::Context::rectangle ($anycr, \f(CW$rectangle\fP)" .IX Subsection "Gtk2::Gdk::Cairo::Context::rectangle ($anycr, $rectangle)" .IP "\(bu" 4 \&\f(CW$rectangle\fR (Gtk2::Gdk::Rectangle) .PP The 4\-argument x,y,width,height is the base Cairo::Context style. This extends to also take a \f(CW\*(C`Gtk2::Gdk::Rectangle\*(C'\fR. .ie n .SS "$gdkcr\->\fBregion\fP ($region)" .el .SS "\f(CW$gdkcr\fP\->\fBregion\fP ($region)" .IX Subsection "$gdkcr->region ($region)" .ie n .SS "Gtk2::Gdk::Cairo::Context::region ($anycr, $region)" .el .SS "Gtk2::Gdk::Cairo::Context::region ($anycr, \f(CW$region\fP)" .IX Subsection "Gtk2::Gdk::Cairo::Context::region ($anycr, $region)" .IP "\(bu" 4 \&\f(CW$region\fR (Gtk2::Gdk::Region) .ie n .SS "$gdkcr\->\fBreset_clip\fP ($drawable)" .el .SS "\f(CW$gdkcr\fP\->\fBreset_clip\fP ($drawable)" .IX Subsection "$gdkcr->reset_clip ($drawable)" .ie n .SS "Gtk2::Gdk::Cairo::Context::reset_clip ($anycr, $drawable)" .el .SS "Gtk2::Gdk::Cairo::Context::reset_clip ($anycr, \f(CW$drawable\fP)" .IX Subsection "Gtk2::Gdk::Cairo::Context::reset_clip ($anycr, $drawable)" .IP "\(bu" 4 \&\f(CW$drawable\fR (Gtk2::Gdk::Drawable) .PP Since: gtk+ 2.18 .ie n .SS "$gdkcr\->\fBset_source_color\fP ($color)" .el .SS "\f(CW$gdkcr\fP\->\fBset_source_color\fP ($color)" .IX Subsection "$gdkcr->set_source_color ($color)" .ie n .SS "Gtk2::Gdk::Cairo::Context::set_source_color ($anycr, $color)" .el .SS "Gtk2::Gdk::Cairo::Context::set_source_color ($anycr, \f(CW$color\fP)" .IX Subsection "Gtk2::Gdk::Cairo::Context::set_source_color ($anycr, $color)" .IP "\(bu" 4 \&\f(CW$color\fR (Gtk2::Gdk::Color) .ie n .SS "$gdkcr\->\fBset_source_pixbuf\fP ($pixbuf, $pixbuf_x, $pixbuf_y)" .el .SS "\f(CW$gdkcr\fP\->\fBset_source_pixbuf\fP ($pixbuf, \f(CW$pixbuf_x\fP, \f(CW$pixbuf_y\fP)" .IX Subsection "$gdkcr->set_source_pixbuf ($pixbuf, $pixbuf_x, $pixbuf_y)" .ie n .SS "Gtk2::Gdk::Cairo::Context::set_source_pixbuf ($anycr, $pixbuf, $pixbuf_x, $pixbuf_y)" .el .SS "Gtk2::Gdk::Cairo::Context::set_source_pixbuf ($anycr, \f(CW$pixbuf\fP, \f(CW$pixbuf_x\fP, \f(CW$pixbuf_y\fP)" .IX Subsection "Gtk2::Gdk::Cairo::Context::set_source_pixbuf ($anycr, $pixbuf, $pixbuf_x, $pixbuf_y)" .IP "\(bu" 4 \&\f(CW$pixbuf\fR (Gtk2::Gdk::Pixbuf) .IP "\(bu" 4 \&\f(CW$pixbuf_x\fR (double) .IP "\(bu" 4 \&\f(CW$pixbuf_y\fR (double) .ie n .SS "$gdkcr\->\fBset_source_pixmap\fP ($pixmap, $pixmap_x, $pixmap_y)" .el .SS "\f(CW$gdkcr\fP\->\fBset_source_pixmap\fP ($pixmap, \f(CW$pixmap_x\fP, \f(CW$pixmap_y\fP)" .IX Subsection "$gdkcr->set_source_pixmap ($pixmap, $pixmap_x, $pixmap_y)" .ie n .SS "Gtk2::Gdk::Cairo::Context::set_source_pixmap ($anycr, $pixmap, $pixmap_x, $pixmap_y)" .el .SS "Gtk2::Gdk::Cairo::Context::set_source_pixmap ($anycr, \f(CW$pixmap\fP, \f(CW$pixmap_x\fP, \f(CW$pixmap_y\fP)" .IX Subsection "Gtk2::Gdk::Cairo::Context::set_source_pixmap ($anycr, $pixmap, $pixmap_x, $pixmap_y)" .IP "\(bu" 4 \&\f(CW$pixmap\fR (Gtk2::Gdk::Pixmap) .IP "\(bu" 4 \&\f(CW$pixmap_x\fR (double) .IP "\(bu" 4 \&\f(CW$pixmap_y\fR (double) .PP Since: gtk+ 2.10 .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2 .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2003\-2011 by the gtk2\-perl team. .PP This software is licensed under the \s-1LGPL.\s0 See Gtk2 for a full notice.