Drawing Primitives

Drawing Primitives

Synopsis

#include <gdk/gdk.h>

                    GdkDrawable;
cairo_region_t *    gdk_drawable_get_clip_region        (GdkDrawable *drawable);
cairo_region_t *    gdk_drawable_get_visible_region     (GdkDrawable *drawable);

Object Hierarchy

  GObject
   +----GdkDrawable
         +----GdkWindow

Description

Details

GdkDrawable

typedef struct _GdkDrawable GdkDrawable;

An opaque structure representing an object that can be drawn onto.


gdk_drawable_get_clip_region ()

cairo_region_t *    gdk_drawable_get_clip_region        (GdkDrawable *drawable);

Computes the region of a drawable that potentially can be written to by drawing primitives. This region will not take into account the clip region for the GC, and may also not take into account other factors such as if the window is obscured by other windows, but no area outside of this region will be affected by drawing primitives.

drawable :

a GdkDrawable

Returns :

a cairo_region_t. This must be freed with cairo_region_destroy() when you are done.

gdk_drawable_get_visible_region ()

cairo_region_t *    gdk_drawable_get_visible_region     (GdkDrawable *drawable);

Computes the region of a drawable that is potentially visible. This does not necessarily take into account if the window is obscured by other windows, but no area outside of this region is visible.

drawable :

a GdkDrawable

Returns :

a cairo_region_t. This must be freed with cairo_region_destroy() when you are done.