mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 18:00:09 +00:00
7447ef0fc2
In particular, rename - libraries to lib*-3.0.so - pc files to *-3.0.pc - include paths to /usr/include/gtk-3.0/* - module paths to /usr/lib/gtk-3.0/* - rc files names to gtk-3.0/gtkrc - commandline utilities to *-3.0 - adjust documentation Also change the install location for unix-print headers to /usr/include/gtk-3.0/unix-print/gtk.
133 lines
3.2 KiB
Plaintext
133 lines
3.2 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
Bitmaps and Pixmaps
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
Offscreen drawables
|
|
|
|
<!-- ##### 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>
|
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
<!-- ##### SECTION Image ##### -->
|
|
|
|
|
|
<!-- ##### STRUCT GdkPixmap ##### -->
|
|
<para>
|
|
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>
|
|
|
|
@drawable: A #GdkDrawable, used to determine default values
|
|
for the new pixmap. Can be %NULL if @depth is specified,
|
|
@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 @drawable is not %NULL, the depth of the new
|
|
pixmap will be equal to that of @drawable.
|
|
@Returns: the #GdkPixmap
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_bitmap_create_from_data ##### -->
|
|
<para>
|
|
Creates a new bitmap from data in XBM format.
|
|
</para>
|
|
|
|
@drawable: a #GdkDrawable, used to determine default values
|
|
for the new pixmap. Can be %NULL, in which case the root
|
|
window is used.
|
|
@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
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_create_from_data ##### -->
|
|
<para>
|
|
Create a two-color pixmap from data in XBM data.
|
|
</para>
|
|
|
|
@drawable: a #GdkDrawable, used to determine default values
|
|
for the new pixmap. Can be %NULL, if the depth is given.
|
|
@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
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_create_from_xpm ##### -->
|
|
|
|
|
|
@drawable:
|
|
@mask:
|
|
@transparent_color:
|
|
@filename:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_colormap_create_from_xpm ##### -->
|
|
|
|
|
|
@drawable:
|
|
@colormap:
|
|
@mask:
|
|
@transparent_color:
|
|
@filename:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_create_from_xpm_d ##### -->
|
|
|
|
|
|
@drawable:
|
|
@mask:
|
|
@transparent_color:
|
|
@data:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_colormap_create_from_xpm_d ##### -->
|
|
|
|
|
|
@drawable:
|
|
@colormap:
|
|
@mask:
|
|
@transparent_color:
|
|
@data:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### TYPEDEF GdkBitmap ##### -->
|
|
<para>
|
|
An opaque structure representing an offscreen drawable of depth
|
|
1. 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>
|
|
|
|
|