Gtk2::Gdk::Pixmap(3pm)

Gtk2::Gdk::Pixmap3pm

Wrapper for gdkpixmap

Hierarchy

  Glib::Object
  +----Gtk2::Gdk::Drawable
       +----Gtk2::Gdk::Pixmap

Methods

pixmap = Gtk2::Gdk::Pixmap->new ($drawable, $width, $height, $depth)

•

$drawable (Gtk2::Gdk::Drawable or undef)

•

$width (integer)

•

$height (integer)

•

$depth (integer)

(pixmap, mask) = Gtk2::Gdk::Pixmap->colormap_create_from_xpm ($drawable, $colormap, $transparent_color, $filename)

•

$drawable (Gtk2::Gdk::Drawable or undef) may be undef if $colormap is given

•

$colormap (Gtk2::Gdk::Colormap or undef) GdkColormap to use for the new image; may be undef if $drawable is given.

•

$transparent_color (Gtk2::Gdk::Color or undef) color of pixels that are transparent in the input file. if undef, a default is used.

•

$filename (localized file name)

($pixmap, $mask) = Gtk2::Gdk::Pixmap->colormap_create_from_xpm_d ($drawable, $colormap, $transparent_color, @xpm_data)

•

$drawable (Gtk2::Gdk::Drawable or undef) may be undef if $colormap is given

•

$colormap (Gtk2::Gdk::Colormap or undef) GdkColormap to use for the new image; may be undef if $drawable is given.

•

$transparent_color (Gtk2::Gdk::Color or undef) color of pixels that are transparent in the input file. if undef, a default is used.

•

... (list) of strings, xpm data

Create a pixmap from the provided xpm data, using a specific colormap. See "create_from_xpm_d".

pixmap = Gtk2::Gdk::Pixmap->create_from_data ($drawable, $data, $width, $height, $depth, $fg, $bg)

•

$drawable (Gtk2::Gdk::Drawable)

•

$data (string)

•

$width (integer)

•

$height (integer)

•

$depth (integer)

•

$fg (Gtk2::Gdk::Color)

•

$bg (Gtk2::Gdk::Color)

(pixmap, mask) = Gtk2::Gdk::Pixmap->create_from_xpm ($drawable, $transparent_color, $filename)

•

$drawable (Gtk2::Gdk::Drawable)

•

$transparent_color (Gtk2::Gdk::Color or undef)

•

$filename (localized file name)

($pixmap, $mask) = Gtk2::Gdk::Pixmap->create_from_xpm_d ($drawable, $transparent_color, @xpm_data)

•

$drawable (Gtk2::Gdk::Drawable) used to determine the colormap and visual of the image.

•

$transparent_color (Gtk2::Gdk::Color or undef) color of pixels that are transparent in the input file. if undef, a default is used.

•

... (list) of strings, xpm data

Create a pixmap from the provided xpm data, usually included in the program as an inline image. See "new_from_xpm_data" in Gtk2::Gdk::Pixbuf for a description of the format of this data.

pixmap = Gtk2::Gdk::Pixmap->foreign_new ($anid)

•

$anid (Gtk2::Gdk::NativeWindow)

pixmap = Gtk2::Gdk::Pixmap->foreign_new_for_display ($display, $anid)

•

$display (Gtk2::Gdk::Display)

•

$anid (Gtk2::Gdk::NativeWindow)

Since: gtk+ 2.2

pixmap = Gtk2::Gdk::Pixmap->foreign_new_for_screen ($screen, $anid, $width, $height, $depth)

•

$screen (Gtk2::Gdk::Screen)

•

$anid (Gtk2::Gdk::NativeWindow)

•

$width (integer)

•

$height (integer)

•

$depth (integer)

Since: gtk+ 2.10

pixmap = Gtk2::Gdk::Pixmap->lookup ($anid)

•

$anid (Gtk2::Gdk::NativeWindow)

pixmap = Gtk2::Gdk::Pixmap->lookup_for_display ($display, $anid)

•

$display (Gtk2::Gdk::Display)

•

$anid (Gtk2::Gdk::NativeWindow)

Since: gtk+ 2.2

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.