Gtk2::GC(3pm)

Gtk2::GC3pm

Overview

These functions provide access to a shared pool of Gtk2::Gdk::GC objects. When a new Gtk2::Gdk::GC is needed, Gtk2::Gdk::GC::get is called with the required depth, colormap and Gtk2::Gdk::GCValues. If a Gtk2::Gdk::GC with the required properties already exists then that is returned. If not, a new Gtk2::Gdk::GC is created.

[From: <http://developer.gnome.org/doc/API/2.0/gtk/gtk-Graphics-Contexts.html>]

Hierarchy

  Glib::Object
  +----Gtk2::Gdk::GC
       +----Gtk2::GC

Methods

gc = Gtk2::GC->get ($depth, $colormap, $values)

•

$depth (integer)

•

$colormap (Gtk2::Gdk::Colormap)

•

$values (Gtk2::Gdk::GCValues) Values to match

$values is a hashref with keys and values as per "Gtk2::Gdk::GC->new" (see Gtk2::Gdk::GC).

Compatibility

Before version 1.200 of the Gtk2 perl module, it was necessary to call "Gtk2::GC::release()" on GCs obtained from "Gtk2::GC::get()". As of version 1.200, this is no longer necessary; a GC will be released when the last perl reference goes away. Old-style code continues to work, but "Gtk2::GC::release()" is deprecated.

Releases

7 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 9
  7. 10

From libgtk2-perl-doc 2:1.24992-1 in Debian 10 (Buster). Parsed by carta from the page's man source.