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)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
(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)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
(pixmap, mask) = Gtk2::Gdk::Pixmap->create_from_xpm ($drawable, $transparent_color, $filename)
•
|
|
|---|---|
•
|
|
•
|
|
($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)
•
|
|
|---|---|
•
|
|
Since: gtk+ 2.2
pixmap = Gtk2::Gdk::Pixmap->foreign_new_for_screen ($screen, $anid, $width, $height, $depth)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
Since: gtk+ 2.10
pixmap = Gtk2::Gdk::Pixmap->lookup ($anid)
- •
-
$anid(Gtk2::Gdk::NativeWindow)
pixmap = Gtk2::Gdk::Pixmap->lookup_for_display ($display, $anid)
•
|
|
|---|---|
•
|
|
Since: gtk+ 2.2
Releases
7 releases since Debian 3.1 (Sarge); the text changed 6 times.