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
Gtk2::Gdk::Cairo::Context(3) User Contributed Perl Documentation Gtk2::Gdk::Cairo::Context(3)

Gtk2::Gdk::Cairo::Context

    Cairo::Context
    +---- Gtk2::Gdk::Cairo::Context   (Perl subclass)

This 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;

$drawable (Gtk2::Gdk::Drawable)

$rectangle (Gtk2::Gdk::Rectangle)

The 4-argument x,y,width,height is the base Cairo::Context style. This extends to also take a "Gtk2::Gdk::Rectangle".

$region (Gtk2::Gdk::Region)

$drawable (Gtk2::Gdk::Drawable)

Since: gtk+ 2.18

$color (Gtk2::Gdk::Color)

  • $pixbuf (Gtk2::Gdk::Pixbuf)
  • $pixbuf_x (double)
  • $pixbuf_y (double)

  • $pixmap (Gtk2::Gdk::Pixmap)
  • $pixmap_x (double)
  • $pixmap_y (double)

Since: gtk+ 2.10

Gtk2

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.

2022-06-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.