1Gtk2::GC(3)           User Contributed Perl Documentation          Gtk2::GC(3)
2
3
4

NAME

6       Gtk2::GC
7

DESCRIPTION

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

HIERARCHY

19         Glib::Object
20         +----Gtk2::Gdk::GC
21              +----Gtk2::GC
22

METHODS

24   gc = Gtk2::GC->get ($depth, $colormap, $values)
25       •   $depth (integer)
26
27       •   $colormap (Gtk2::Gdk::Colormap)
28
29       •   $values (Gtk2::Gdk::GCValues) Values to match
30
31       $values is a hashref with keys and values as per "Gtk2::Gdk::GC->new"
32       (see Gtk2::Gdk::GC).
33
34   Compatibility
35       Before version 1.200 of the Gtk2 perl module, it was necessary to call
36       "Gtk2::GC::release()" on GCs obtained from "Gtk2::GC::get()".  As of
37       version 1.200, this is no longer necessary; a GC will be released when
38       the last perl reference goes away.  Old-style code continues to work,
39       but "Gtk2::GC::release()" is deprecated.
40

SEE ALSO

42       Gtk2
43
45       Copyright (C) 2003-2011 by the gtk2-perl team.
46
47       This software is licensed under the LGPL.  See Gtk2 for a full notice.
48
49
50
51perl v5.34.0                      2022-01-21                       Gtk2::GC(3)
Impressum