1Gtk2::Gdk::Pixmap(3) User Contributed Perl Documentation Gtk2::Gdk::Pixmap(3)
2
3
4
6 Gtk2::Gdk::Pixmap - wrapper for GdkPixmap
7
9 Glib::Object
10 +----Gtk2::Gdk::Drawable
11 +----Gtk2::Gdk::Pixmap
12
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 $colormap
26 is given
27
28 • $colormap (Gtk2::Gdk::Colormap or undef) GdkColormap to use for the
29 new image; may be undef if $drawable is given.
30
31 • $transparent_color (Gtk2::Gdk::Color or undef) color of pixels that
32 are transparent in the input file. if undef, a default is used.
33
34 • $filename (localized file name)
35
36 ($pixmap, $mask) = Gtk2::Gdk::Pixmap->colormap_create_from_xpm_d
37 ($drawable, $colormap, $transparent_color, @xpm_data)
38 • $drawable (Gtk2::Gdk::Drawable or undef) may be undef if $colormap
39 is given
40
41 • $colormap (Gtk2::Gdk::Colormap or undef) GdkColormap to use for the
42 new image; may be undef if $drawable is given.
43
44 • $transparent_color (Gtk2::Gdk::Color or undef) color of pixels that
45 are transparent in the input file. if undef, a default is used.
46
47 • ... (list) of strings, xpm data
48
49 Create a pixmap from the provided xpm data, using a specific colormap.
50 See "create_from_xpm_d".
51
52 pixmap = Gtk2::Gdk::Pixmap->create_from_data ($drawable, $data, $width,
53 $height, $depth, $fg, $bg)
54 • $drawable (Gtk2::Gdk::Drawable)
55
56 • $data (string)
57
58 • $width (integer)
59
60 • $height (integer)
61
62 • $depth (integer)
63
64 • $fg (Gtk2::Gdk::Color)
65
66 • $bg (Gtk2::Gdk::Color)
67
68 (pixmap, mask) = Gtk2::Gdk::Pixmap->create_from_xpm ($drawable,
69 $transparent_color, $filename)
70 • $drawable (Gtk2::Gdk::Drawable)
71
72 • $transparent_color (Gtk2::Gdk::Color or undef)
73
74 • $filename (localized file name)
75
76 ($pixmap, $mask) = Gtk2::Gdk::Pixmap->create_from_xpm_d ($drawable,
77 $transparent_color, @xpm_data)
78 • $drawable (Gtk2::Gdk::Drawable) used to determine the colormap and
79 visual of the image.
80
81 • $transparent_color (Gtk2::Gdk::Color or undef) color of pixels that
82 are transparent in the input file. if undef, a default is used.
83
84 • ... (list) of strings, xpm data
85
86 Create a pixmap from the provided xpm data, usually included in the
87 program as an inline image. See "new_from_xpm_data" in
88 Gtk2::Gdk::Pixbuf for a description of the format of this data.
89
90 pixmap = Gtk2::Gdk::Pixmap->foreign_new ($anid)
91 • $anid (Gtk2::Gdk::NativeWindow)
92
93 pixmap = Gtk2::Gdk::Pixmap->foreign_new_for_display ($display, $anid)
94 • $display (Gtk2::Gdk::Display)
95
96 • $anid (Gtk2::Gdk::NativeWindow)
97
98 Since: gtk+ 2.2
99
100 pixmap = Gtk2::Gdk::Pixmap->foreign_new_for_screen ($screen, $anid, $width,
101 $height, $depth)
102 • $screen (Gtk2::Gdk::Screen)
103
104 • $anid (Gtk2::Gdk::NativeWindow)
105
106 • $width (integer)
107
108 • $height (integer)
109
110 • $depth (integer)
111
112 Since: gtk+ 2.10
113
114 pixmap = Gtk2::Gdk::Pixmap->lookup ($anid)
115 • $anid (Gtk2::Gdk::NativeWindow)
116
117 pixmap = Gtk2::Gdk::Pixmap->lookup_for_display ($display, $anid)
118 • $display (Gtk2::Gdk::Display)
119
120 • $anid (Gtk2::Gdk::NativeWindow)
121
122 Since: gtk+ 2.2
123
125 Gtk2, Glib::Object, Gtk2::Gdk::Drawable
126
128 Copyright (C) 2003-2011 by the gtk2-perl team.
129
130 This software is licensed under the LGPL. See Gtk2 for a full notice.
131
132
133
134perl v5.34.0 2022-01-21 Gtk2::Gdk::Pixmap(3)