~ubuntu-branches/debian/experimental/gtk+2.0/experimental

« back to all changes in this revision

Viewing changes to docs/reference/gdk/tmpl/pixmaps.sgml

  • Committer: Package Import Robot
  • Author(s): Josselin Mouette
  • Date: 2011-09-02 17:17:47 UTC
  • mto: (72.4.15 sid)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: package-import@ubuntu.com-20110902171747-i8dr3czswn2sk7tu
Tags: upstream-2.24.6
ImportĀ upstreamĀ versionĀ 2.24.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
@width: the width of the new pixmap in pixels.
72
72
@height: the height of the new pixmap in pixels.
73
73
@Returns: the #GdkBitmap
74
 
 
75
74
@Deprecated: 2.22: You can create a Cairo image surface using
76
75
cairo_image_surface_create_for_data() instead. Specify
77
76
%CAIRO_FORMAT_A1 as the format to get a bitmap. Keep in mind that
81
80
gdk_cairo_create(), cairo_set_source_surface() and cairo_paint()
82
81
to draw the image surface to the bitmap.
83
82
 
 
83
 
84
84
<!-- ##### FUNCTION gdk_pixmap_create_from_data ##### -->
85
85
<para>
86
86
Create a two-color pixmap from data in XBM data.
95
95
@fg: the foreground color.
96
96
@bg: the background color.
97
97
@Returns: the #GdkPixmap
98
 
 
99
98
@Deprecated: 2.22: If you must replicate the functionality of this
100
99
function, create a pixmap using gdk_pixmap_new(), cairo_paint() it
101
100
with the background color and then create a Cairo image surface as
102
101
pointed out in the docs to gdk_bitmap_create_from_data() and use
103
102
this surface with cairo_mask_surface() to paint the foreground color.
104
103
 
 
104
 
105
105
<!-- ##### FUNCTION gdk_pixmap_create_from_xpm ##### -->
106
106
 
107
107
 
144
144
@Returns: 
145
145
 
146
146
 
 
147
<!-- ##### FUNCTION gdk_pixmap_get_size ##### -->
 
148
<para>
 
149
 
 
150
</para>
 
151
 
 
152
@pixmap: 
 
153
@width: 
 
154
@height: 
 
155
 
 
156
 
147
157
<!-- ##### MACRO gdk_pixmap_ref ##### -->
148
158
<para>
149
159
Deprecated equivalent of g_object_ref().