mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
31df9723e5
* gtk/gtklabel.c: Fix docs. (#66383) * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. (#66278, #66280) * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin), gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208) * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy): Don't emit a g_warning() about being deprecated. (#66208) * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs. * gtk/gtkcontainer.c: Doc fixes. * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes. * gtk/gtkstyle.c (gtk_style_attach): Add docs. * gdk-pixbuf.h (gdk_pixbuf_ref, gdk_pixbuf_unref, gdk_pixbuf_animation_ref, gdk_pixbuf_animation_unref): Deprecate. (#66208) * gtk/tmpl/gtklabel.sgml: Remove redundant docs. (#66383) * gtk/tree_widget.sgml: Typo fix. (#66256) * gdk-pixbuf/Makefile.am (SCAN_OPTIONS): Add --deprecated-guards. * gtk/tmpl/gtktext.sgml, gtk/tmpl/gtktree.sgml, gtk/tmpl/gtktreeitem.sgml: Updates.
109 lines
3.1 KiB
C
109 lines
3.1 KiB
C
#ifndef __GDK_IMAGE_H__
|
|
#define __GDK_IMAGE_H__
|
|
|
|
#include <gdk/gdktypes.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* Types of images.
|
|
* Normal: Normal X image type. These are slow as they involve passing
|
|
* the entire image through the X connection each time a draw
|
|
* request is required. On Win32, a bitmap.
|
|
* Shared: Shared memory X image type. These are fast as the X server
|
|
* and the program actually use the same piece of memory. They
|
|
* should be used with care though as there is the possibility
|
|
* for both the X server and the program to be reading/writing
|
|
* the image simultaneously and producing undesired results.
|
|
* On Win32, also a bitmap.
|
|
*/
|
|
typedef enum
|
|
{
|
|
GDK_IMAGE_NORMAL,
|
|
GDK_IMAGE_SHARED,
|
|
GDK_IMAGE_FASTEST
|
|
} GdkImageType;
|
|
|
|
typedef struct _GdkImageClass GdkImageClass;
|
|
|
|
#define GDK_TYPE_IMAGE (gdk_image_get_type ())
|
|
#define GDK_IMAGE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_IMAGE, GdkImage))
|
|
#define GDK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_IMAGE, GdkImageClass))
|
|
#define GDK_IS_IMAGE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_IMAGE))
|
|
#define GDK_IS_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_IMAGE))
|
|
#define GDK_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_IMAGE, GdkImageClass))
|
|
|
|
struct _GdkImage
|
|
{
|
|
GObject parent_instance;
|
|
|
|
GdkImageType type;
|
|
GdkVisual *visual; /* visual used to create the image */
|
|
GdkByteOrder byte_order;
|
|
gint width;
|
|
gint height;
|
|
guint16 depth;
|
|
guint16 bpp; /* bytes per pixel */
|
|
guint16 bpl; /* bytes per line */
|
|
guint16 bits_per_pixel; /* bits per pixel */
|
|
gpointer mem;
|
|
|
|
GdkColormap *colormap;
|
|
|
|
gpointer windowing_data;
|
|
};
|
|
|
|
struct _GdkImageClass
|
|
{
|
|
GObjectClass parent_class;
|
|
};
|
|
|
|
GType gdk_image_get_type (void) G_GNUC_CONST;
|
|
|
|
GdkImage* gdk_image_new (GdkImageType type,
|
|
GdkVisual *visual,
|
|
gint width,
|
|
gint height);
|
|
|
|
#ifndef GDK_DISABLE_DEPRECATED
|
|
GdkImage* gdk_image_get (GdkDrawable *drawable,
|
|
gint x,
|
|
gint y,
|
|
gint width,
|
|
gint height);
|
|
|
|
GdkImage * gdk_image_ref (GdkImage *image);
|
|
void gdk_image_unref (GdkImage *image);
|
|
#endif
|
|
|
|
void gdk_image_put_pixel (GdkImage *image,
|
|
gint x,
|
|
gint y,
|
|
guint32 pixel);
|
|
guint32 gdk_image_get_pixel (GdkImage *image,
|
|
gint x,
|
|
gint y);
|
|
|
|
void gdk_image_set_colormap (GdkImage *image,
|
|
GdkColormap *colormap);
|
|
GdkColormap* gdk_image_get_colormap (GdkImage *image);
|
|
|
|
|
|
#ifdef GDK_ENABLE_BROKEN
|
|
GdkImage* gdk_image_new_bitmap (GdkVisual *visual,
|
|
gpointer data,
|
|
gint width,
|
|
gint height);
|
|
#endif /* GDK_ENABLE_BROKEN */
|
|
|
|
#ifndef GDK_DISABLE_DEPRECATED
|
|
#define gdk_image_destroy gdk_image_unref
|
|
#endif /* GDK_DISABLE_DEPRECATED */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __GDK_IMAGE_H__ */
|