1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
Bitmaps and Pixmaps
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2002-11-23 23:02:10 +00:00
|
|
|
Offscreen drawables
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
Pixmaps are offscreen drawables. They can be drawn upon with the
|
|
|
|
standard drawing primitives, then copied to another drawable (such as
|
|
|
|
a #GdkWindow) with gdk_pixmap_draw(). The depth of a pixmap
|
|
|
|
is the number of bits per pixels. Bitmaps are simply pixmaps
|
|
|
|
with a depth of 1. (That is, they are monochrome bitmaps - each
|
|
|
|
pixel can be either on or off).
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkPixmap ##### -->
|
2002-12-17 02:07:57 +00:00
|
|
|
<para>
|
1999-08-16 18:51:52 +00:00
|
|
|
An opaque structure representing an offscreen drawable.
|
|
|
|
Pointers to structures of type #GdkPixmap, #GdkBitmap,
|
|
|
|
and #GdkWindow, can often be used interchangeably.
|
|
|
|
The type #GdkDrawable refers generically to any of
|
|
|
|
these types.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_new ##### -->
|
|
|
|
<para>
|
|
|
|
Create a new pixmap with a given size and depth.
|
|
|
|
</para>
|
|
|
|
|
2002-12-11 00:46:53 +00:00
|
|
|
@drawable:
|
1999-08-16 18:51:52 +00:00
|
|
|
@width: The width of the new pixmap in pixels.
|
|
|
|
@height: The height of the new pixmap in pixels.
|
|
|
|
@depth: The depth (number of bits per pixel) of the new pixmap.
|
|
|
|
If -1, and @window is not %NULL, the depth of the new
|
|
|
|
pixmap will be equal to that of @window.
|
2001-11-28 19:05:58 +00:00
|
|
|
@Returns: the #GdkPixmap
|
2002-12-11 00:46:53 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@window: a #GdkWindow, used to determine default values for the
|
|
|
|
new pixmap. Can be %NULL if @depth is specified,
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_bitmap_create_from_data ##### -->
|
|
|
|
<para>
|
|
|
|
Creates a new bitmap from data in XBM format.
|
|
|
|
</para>
|
|
|
|
|
2002-12-11 00:46:53 +00:00
|
|
|
@drawable:
|
1999-08-16 18:51:52 +00:00
|
|
|
@data: a pointer to the XBM data.
|
|
|
|
@width: the width of the new pixmap in pixels.
|
|
|
|
@height: the height of the new pixmap in pixels.
|
|
|
|
@Returns: the #GdkBitmap
|
2002-12-11 00:46:53 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@window: a #GdkWindow, used to determine default values for the
|
|
|
|
new pixmap. Can be %NULL, in which case the root window is
|
|
|
|
used.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_create_from_data ##### -->
|
|
|
|
<para>
|
|
|
|
Create a two-color pixmap from data in XBM data.
|
|
|
|
</para>
|
|
|
|
|
2002-12-11 00:46:53 +00:00
|
|
|
@drawable:
|
1999-08-16 18:51:52 +00:00
|
|
|
@data: a pointer to the data.
|
|
|
|
@width: the width of the new pixmap in pixels.
|
|
|
|
@height: the height of the new pixmap in pixels.
|
|
|
|
@depth: the depth (number of bits per pixel) of the new pixmap.
|
|
|
|
@fg: the foreground color.
|
|
|
|
@bg: the background color.
|
|
|
|
@Returns: the #GdkPixmap
|
2002-12-11 00:46:53 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@window: a #GdkWindow, used to determine default values for the
|
|
|
|
new pixmap. Can be %NULL, if the depth is given.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_create_from_xpm ##### -->
|
|
|
|
<para>
|
|
|
|
Create a pixmap from a XPM file.
|
|
|
|
</para>
|
|
|
|
|
2002-12-11 00:46:53 +00:00
|
|
|
@drawable:
|
1999-08-16 18:51:52 +00:00
|
|
|
@mask: a pointer to a place to store a bitmap representing
|
|
|
|
the transparency mask of the XPM file. Can be %NULL,
|
|
|
|
in which case transparency will be ignored.
|
|
|
|
@transparent_color: the color to be used for the pixels
|
|
|
|
that are transparent in the input file. Can be %NULL,
|
|
|
|
in which case a default color will be used.
|
|
|
|
@filename: the filename of a file containing XPM data.
|
|
|
|
@Returns: the #GdkPixmap
|
2002-12-11 00:46:53 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@window: a #GdkWindow, used to determine default values for the
|
|
|
|
new pixmap.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_colormap_create_from_xpm ##### -->
|
|
|
|
<para>
|
|
|
|
Create a pixmap from a XPM file using a particular colormap.
|
|
|
|
</para>
|
|
|
|
|
2002-12-11 00:46:53 +00:00
|
|
|
@drawable:
|
1999-08-16 18:51:52 +00:00
|
|
|
@colormap: the #GdkColormap that the new pixmap will be use.
|
|
|
|
If omitted, the colormap for @window will be used.
|
|
|
|
@mask: a pointer to a place to store a bitmap representing
|
|
|
|
the transparency mask of the XPM file. Can be %NULL,
|
|
|
|
in which case transparency will be ignored.
|
|
|
|
@transparent_color: the color to be used for the pixels
|
|
|
|
that are transparent in the input file. Can be %NULL,
|
|
|
|
in which case a default color will be used.
|
|
|
|
@filename: the filename of a file containing XPM data.
|
|
|
|
@Returns: the #GdkPixmap.
|
2002-12-11 00:46:53 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@window: a #GdkWindow, used to determine default values for the
|
|
|
|
new pixmap. Can be %NULL if @colormap is given.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_create_from_xpm_d ##### -->
|
|
|
|
<para>
|
|
|
|
Create a pixmap from data in XPM format.
|
|
|
|
</para>
|
|
|
|
|
2002-12-11 00:46:53 +00:00
|
|
|
@drawable:
|
1999-08-16 18:51:52 +00:00
|
|
|
@mask: Pointer to a place to store a bitmap representing
|
|
|
|
the transparency mask of the XPM file. Can be %NULL,
|
|
|
|
in which case transparency will be ignored.
|
|
|
|
@transparent_color: This color will be used for the pixels
|
|
|
|
that are transparent in the input file. Can be %NULL
|
|
|
|
in which case a default color will be used.
|
|
|
|
@data: Pointer to a string containing the XPM data.
|
|
|
|
@Returns: the #GdkPixmap
|
2002-12-11 00:46:53 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@window: a #GdkWindow, used to determine default values for the
|
|
|
|
new pixmap.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_colormap_create_from_xpm_d ##### -->
|
|
|
|
<para>
|
|
|
|
Create a pixmap from data in XPM format using a particular
|
|
|
|
colormap.
|
|
|
|
</para>
|
|
|
|
|
2002-12-11 00:46:53 +00:00
|
|
|
@drawable:
|
1999-08-16 18:51:52 +00:00
|
|
|
@colormap: the #GdkColormap that the new pixmap will be use.
|
|
|
|
If omitted, the colormap for @window will be used.
|
|
|
|
@mask: a pointer to a place to store a bitmap representing
|
|
|
|
the transparency mask of the XPM file. Can be %NULL,
|
|
|
|
in which case transparency will be ignored.
|
|
|
|
@transparent_color: the color to be used for the pixels
|
|
|
|
that are transparent in the input file. Can be %NULL,
|
|
|
|
in which case a default color will be used.
|
|
|
|
@data: Pointer to a string containing the XPM data.
|
|
|
|
@Returns: the #GdkPixmap.
|
2002-12-11 00:46:53 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@window: a #GdkWindow, used to determine default values for the
|
|
|
|
new pixmap. Can be %NULL if @colormap is given.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_pixmap_ref ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
Deprecate.
* gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
* gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
GTK_DISABLE_DEPRECATED.
* gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
* gdk/tmpl/colors.sgml, gdk/tmpl/pixmaps.sgml, gdk/tmpl/dnd.sgml,
gdk/tmpl/gcs.sgml: Document ref and unref functions as deprecated.
2001-11-30 22:55:28 +00:00
|
|
|
Deprecated equivalent of g_object_ref().
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@Returns: @pixmap
|
2001-12-23 22:55:17 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@pixmap: a #GdkPixmap
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_pixmap_unref ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
Deprecate.
* gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
* gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
GTK_DISABLE_DEPRECATED.
* gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
* gdk/tmpl/colors.sgml, gdk/tmpl/pixmaps.sgml, gdk/tmpl/dnd.sgml,
gdk/tmpl/gcs.sgml: Document ref and unref functions as deprecated.
2001-11-30 22:55:28 +00:00
|
|
|
Deprecated equivalent of g_object_unref().
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-12-23 22:55:17 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
1999-08-16 18:51:52 +00:00
|
|
|
@pixmap: a #GdkPixmap
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkBitmap ##### -->
|
|
|
|
<para>
|
|
|
|
An opaque structure representing an offscreen drawable of depth
|
2001-11-28 19:05:58 +00:00
|
|
|
1. Pointers to structures of type #GdkPixmap, #GdkBitmap, and
|
1999-08-16 18:51:52 +00:00
|
|
|
#GdkWindow, can often be used interchangeably. The type #GdkDrawable
|
|
|
|
refers generically to any of these types.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@user_data:
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_bitmap_ref ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
Deprecate.
* gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
* gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
GTK_DISABLE_DEPRECATED.
* gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
* gdk/tmpl/colors.sgml, gdk/tmpl/pixmaps.sgml, gdk/tmpl/dnd.sgml,
gdk/tmpl/gcs.sgml: Document ref and unref functions as deprecated.
2001-11-30 22:55:28 +00:00
|
|
|
Deprecated equivalent of g_object_ref().
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@Returns: @pixmap
|
2001-12-23 22:55:17 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
2001-11-28 19:05:58 +00:00
|
|
|
@pixmap: a #GdkBitmap
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_bitmap_unref ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
Deprecate.
* gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
* gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
GTK_DISABLE_DEPRECATED.
* gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
* gdk/tmpl/colors.sgml, gdk/tmpl/pixmaps.sgml, gdk/tmpl/dnd.sgml,
gdk/tmpl/gcs.sgml: Document ref and unref functions as deprecated.
2001-11-30 22:55:28 +00:00
|
|
|
Deprecated equivalent of g_object_unref().
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-12-23 22:55:17 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
2001-11-28 19:05:58 +00:00
|
|
|
@pixmap: a #GdkBitmap
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|