1Gtk2::GC(3) User Contributed Perl Documentation Gtk2::GC(3)
2
3
4
6 Gtk2::GC
7
9 These functions provide access to a shared pool of Gtk2::Gdk::GC
10 objects. When a new Gtk2::Gdk::GC is needed, Gtk2::Gdk::GC::get is
11 called with the required depth, colormap and Gtk2::Gdk::GCValues. If a
12 Gtk2::Gdk::GC with the required properties already exists then that is
13 returned. If not, a new Gtk2::Gdk::GC is created.
14
15 [From:
16 http://developer.gnome.org/doc/API/2.0/gtk/gtk-Graphics-Contexts.html
17 <http://developer.gnome.org/doc/API/2.0/gtk/gtk-Graphics-
18 Contexts.html>]
19
21 Glib::Object
22 +----Gtk2::Gdk::GC
23 +----Gtk2::GC
24
26 gc = Gtk2::GC->get ($depth, $colormap, $values)
27 · $depth (integer)
28
29 · $colormap (Gtk2::Gdk::Colormap)
30
31 · $values (Gtk2::Gdk::GCValues) Values to match
32
33 $values is a hashref with keys and values as per
34 "Gtk2::Gdk::GC->new" (see Gtk2::Gdk::GC).
35
36 Compatibility
37 Before version 1.200 of the Gtk2 perl module, it was necessary to call
38 "Gtk2::GC::release()" on GCs obtained from "Gtk2::GC::get()". As of
39 version 1.200, this is no longer necessary; a GC will be released when
40 the last perl reference goes away. Old-style code continues to work,
41 but "Gtk2::GC::release()" is deprecated.
42
44 Gtk2
45
47 Copyright (C) 2003-2008 by the gtk2-perl team.
48
49 This software is licensed under the LGPL. See Gtk2 for a full notice.
50
51
52
53perl v5.12.0 2010-05-02 Gtk2::GC(3)