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

SEE ALSO

128       Gtk2, Glib::Object, Gtk2::Gdk::Drawable
129
131       Copyright (C) 2003-2008 by the gtk2-perl team.
132
133       This software is licensed under the LGPL.  See Gtk2 for a full notice.
134
135
136
137perl v5.12.0                      2010-05-02              Gtk2::Gdk::Pixmap(3)
Impressum