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

NAME

6       Gtk2::Gdk::Pixmap
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Gdk::Drawable
11              +----Gtk2::Gdk::Pixmap
12

METHODS

14       pixmap = Gtk2::Gdk::Pixmap->new ($drawable, $width, $height, $depth)
15
16           * $drawable (Gtk2::Gdk::Drawable or undef)
17           * $width (integer)
18           * $height (integer)
19           * $depth (integer)
20
21       (pixmap, mask) = Gtk2::Gdk::Pixmap->colormap_create_from_xpm ($draw‐
22       able, $colormap, $transparent_color, $filename)
23
24           * $drawable (Gtk2::Gdk::Drawable or undef) may be undef if $col‐
25           ormap is given
26           * $colormap (Gtk2::Gdk::Colormap or undef) GdkColormap to use for
27           the new image; may be undef if $drawable is given.
28           * $transparent_color (Gtk2::Gdk::Color or undef) color of pixels
29           that are transparent in the input file.  if undef, a default is
30           used.
31           * $filename (localized file name)
32
33       ($pixmap, $mask) = Gtk2::Gdk::Pixmap->colormap_create_from_xpm_d
34       ($drawable, $colormap, $transparent_color, @xpm_data)
35
36           * $drawable (Gtk2::Gdk::Drawable or undef) may be undef if $col‐
37           ormap is given
38           * $colormap (Gtk2::Gdk::Colormap or undef) GdkColormap to use for
39           the new image; may be undef if $drawable is given.
40           * $transparent_color (Gtk2::Gdk::Color or undef) color of pixels
41           that are transparent in the input file.  if undef, a default is
42           used.
43           * ... (list) of strings, xpm data
44
45           Create a pixmap from the provided xpm data, using a specific col‐
46           ormap.  See "create_from_xpm_d".
47
48       pixmap = Gtk2::Gdk::Pixmap->create_from_data ($drawable, $data, $width,
49       $height, $depth, $fg, $bg)
50
51           * $drawable (Gtk2::Gdk::Drawable)
52           * $data (string)
53           * $width (integer)
54           * $height (integer)
55           * $depth (integer)
56           * $fg (Gtk2::Gdk::Color)
57           * $bg (Gtk2::Gdk::Color)
58
59       (pixmap, mask) = Gtk2::Gdk::Pixmap->create_from_xpm ($drawable, $trans‐
60       parent_color, $filename)
61
62           * $drawable (Gtk2::Gdk::Drawable)
63           * $transparent_color (Gtk2::Gdk::Color or undef)
64           * $filename (localized file name)
65
66       ($pixmap, $mask) = Gtk2::Gdk::Pixmap->create_from_xpm_d ($drawable,
67       $transparent_color, @xpm_data)
68
69           * $drawable (Gtk2::Gdk::Drawable) used to determine the colormap
70           and visual of the image.
71           * $transparent_color (Gtk2::Gdk::Color or undef) color of pixels
72           that are transparent in the input file.  if undef, a default is
73           used.
74           * ... (list) of strings, xpm data
75
76           Create a pixmap from the provided xpm data, usually included in the
77           program as an inline image.  See "new_from_xpm_data" in
78           Gtk2::Gdk::Pixbuf for a description of the format of this data.
79
80       pixmap = Gtk2::Gdk::Pixmap->foreign_new ($anid)
81
82           * $anid (Gtk2::Gdk::NativeWindow)
83
84       pixmap = Gtk2::Gdk::Pixmap->foreign_new_for_display ($display, $anid)
85
86           * $display (Gtk2::Gdk::Display)
87           * $anid (Gtk2::Gdk::NativeWindow)
88
89       pixmap = Gtk2::Gdk::Pixmap->foreign_new_for_screen ($screen, $anid,
90       $width, $height, $depth)
91
92           * $screen (Gtk2::Gdk::Screen)
93           * $anid (Gtk2::Gdk::NativeWindow)
94           * $width (integer)
95           * $height (integer)
96           * $depth (integer)
97
98       pixmap = Gtk2::Gdk::Pixmap->lookup ($anid)
99
100           * $anid (Gtk2::Gdk::NativeWindow)
101
102       pixmap = Gtk2::Gdk::Pixmap->lookup_for_display ($display, $anid)
103
104           * $display (Gtk2::Gdk::Display)
105           * $anid (Gtk2::Gdk::NativeWindow)
106

SEE ALSO

108       Gtk2, Glib::Object, Gtk2::Gdk::Drawable
109
111       Copyright (C) 2003-2007 by the gtk2-perl team.
112
113       This software is licensed under the LGPL.  See Gtk2 for a full notice.
114
115
116
117perl v5.8.8                       2007-03-18              Gtk2::Gdk::Pixmap(3)
Impressum