1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
Graphics Contexts
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2001-02-12 17:50:13 +00:00
|
|
|
objects to encapsulate drawing properties.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
All drawing operations in GDK take a
|
|
|
|
<firstterm>graphics context</firstterm> (GC) argument.
|
|
|
|
A graphics context encapsulates information about
|
|
|
|
the way things are drawn, such as the foreground
|
|
|
|
color or line width. By using graphics contexts,
|
|
|
|
the number of arguments to each drawing call is
|
|
|
|
greatly reduced, and communication overhead is
|
|
|
|
minimized, since identical arguments do not need
|
|
|
|
to be passed repeatedly.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Most values of a graphics context can be set at
|
|
|
|
creation time by using gdk_gc_new_with_values(),
|
|
|
|
or can be set one-by-one using functions such
|
|
|
|
as gdk_gc_set_foreground(). A few of the values
|
|
|
|
in the GC, such as the dash pattern, can only
|
|
|
|
be set by the latter method.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkGC ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
The #GdkGC structure represents a graphics context.
|
|
|
|
It is an opaque structure with no user-visible
|
|
|
|
elements.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### STRUCT GdkGCValues ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
The #GdkGCValues structure holds a set of values used
|
|
|
|
to create or modify a graphics context.
|
2001-11-28 19:05:58 +00:00
|
|
|
</para>
|
2001-02-12 17:50:13 +00:00
|
|
|
|
2001-12-23 22:55:17 +00:00
|
|
|
@foreground: the foreground color.
|
2001-11-28 19:05:58 +00:00
|
|
|
@background: the background color.
|
|
|
|
@font: the default font.
|
|
|
|
@function: the bitwise operation used when drawing.
|
|
|
|
@fill: the fill style.
|
|
|
|
@tile: the tile pixmap.
|
|
|
|
@stipple: the stipple bitmap.
|
|
|
|
@clip_mask: the clip mask bitmap.
|
|
|
|
@subwindow_mode: the subwindow mode.
|
|
|
|
@ts_x_origin: the x origin of the tile or stipple.
|
|
|
|
@ts_y_origin: the y origin of the tile or stipple.
|
|
|
|
@clip_x_origin: the x origin of the clip mask.
|
|
|
|
@clip_y_origin: the y origin of the clip mask.
|
|
|
|
@graphics_exposures: whether graphics exposures are enabled.
|
|
|
|
@line_width: the line width.
|
|
|
|
@line_style: the way dashed lines are drawn.
|
|
|
|
@cap_style: the way the ends of lines are drawn.
|
|
|
|
@join_style: the way joins between lines are drawn.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GdkGCValuesMask ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
A set of bit flags used to indicate which fields
|
|
|
|
#GdkGCValues structure are set.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-12-23 22:55:17 +00:00
|
|
|
@GDK_GC_FOREGROUND: the @foreground is set.
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_GC_BACKGROUND: the @background is set.
|
|
|
|
@GDK_GC_FONT: the @font is set.
|
|
|
|
@GDK_GC_FUNCTION: the @function is set.
|
|
|
|
@GDK_GC_FILL: the @fill is set.
|
|
|
|
@GDK_GC_TILE: the @tile is set.
|
|
|
|
@GDK_GC_STIPPLE: the @stipple is set.
|
|
|
|
@GDK_GC_CLIP_MASK: the @clip_mask is set.
|
|
|
|
@GDK_GC_SUBWINDOW: the @subwindow_mode is set.
|
|
|
|
@GDK_GC_TS_X_ORIGIN: the @ts_x_origin is set.
|
|
|
|
@GDK_GC_TS_Y_ORIGIN: the @ts_y_origin is set.
|
|
|
|
@GDK_GC_CLIP_X_ORIGIN: the @clip_x_origin is set.
|
|
|
|
@GDK_GC_CLIP_Y_ORIGIN: the @clip_y_origin is set.
|
|
|
|
@GDK_GC_EXPOSURES: the @graphics_exposures is set.
|
|
|
|
@GDK_GC_LINE_WIDTH: the @line_width is set.
|
|
|
|
@GDK_GC_LINE_STYLE: the @line_style is set.
|
|
|
|
@GDK_GC_CAP_STYLE: the @cap_style is set.
|
|
|
|
@GDK_GC_JOIN_STYLE: the @join_style is set.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
1999-08-17 09:39:58 +00:00
|
|
|
<!-- ##### ENUM GdkFunction ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Determines how the bit values for the source pixels are combined with
|
|
|
|
the bit values for destination pixels to produce the final result. The
|
|
|
|
sixteen values here correspond to the 16 different possible 2x2 truth
|
|
|
|
tables. Only a couple of these values are usually useful; for colored
|
|
|
|
images, only %GDK_COPY, %GDK_XOR and %GDK_INVERT are generally
|
|
|
|
useful. For bitmaps, %GDK_AND and %GDK_OR are also useful.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@GDK_COPY:
|
|
|
|
@GDK_INVERT:
|
|
|
|
@GDK_XOR:
|
|
|
|
@GDK_CLEAR:
|
|
|
|
@GDK_AND:
|
|
|
|
@GDK_AND_REVERSE:
|
|
|
|
@GDK_AND_INVERT:
|
|
|
|
@GDK_NOOP:
|
|
|
|
@GDK_OR:
|
|
|
|
@GDK_EQUIV:
|
|
|
|
@GDK_OR_REVERSE:
|
|
|
|
@GDK_COPY_INVERT:
|
|
|
|
@GDK_OR_INVERT:
|
|
|
|
@GDK_NAND:
|
2000-09-07 18:17:06 +00:00
|
|
|
@GDK_NOR:
|
1999-08-16 18:51:52 +00:00
|
|
|
@GDK_SET:
|
|
|
|
|
1999-08-17 09:39:58 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_new ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Create a new graphics context with default values.
|
1999-08-17 09:39:58 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@drawable: a #GdkDrawable. The created GC must always be used
|
2001-02-12 17:50:13 +00:00
|
|
|
with drawables of the same depth as this one.
|
2001-11-28 19:05:58 +00:00
|
|
|
@Returns: the new graphics context.
|
1999-08-17 09:39:58 +00:00
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
|
1999-08-17 09:39:58 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_new_with_values ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Create a new GC with the given initial values.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@drawable: a #GdkDrawable. The created GC must always be used
|
|
|
|
with drawables of the same depth as this one.
|
2001-02-12 17:50:13 +00:00
|
|
|
@values: a structure containing initial values for the GC.
|
|
|
|
@values_mask: a bit mask indicating which fields in @values
|
|
|
|
are set.
|
|
|
|
@Returns: the new graphics context.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2002-04-30 18:07:51 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_get_screen ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@gc:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_ref ##### -->
|
|
|
|
<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
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-12-23 22:55:17 +00:00
|
|
|
@gc:
|
|
|
|
@Returns:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_unref ##### -->
|
|
|
|
<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
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-12-23 22:55:17 +00:00
|
|
|
@gc:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO gdk_gc_destroy ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Identical to gdk_gc_unref(). This function is obsolete
|
|
|
|
and should not be used.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-12-23 22:55:17 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_set_values ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@gc:
|
|
|
|
@values:
|
|
|
|
@values_mask:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_get_values ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Retrieves the current values from a graphics context.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@values: the #GdkGCValues structure in which to store the results.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_foreground ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the foreground color for a graphics context.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@color: the new foreground color.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_background ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the background color for a graphics context.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@color: the new background color.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_set_rgb_fg_color ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@gc:
|
|
|
|
@color:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_rgb_bg_color ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@gc:
|
|
|
|
@color:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_set_font ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the font for a graphics context. (Note that
|
|
|
|
all text-drawing functions in GDK take a @font
|
|
|
|
argument; the value set here is used when that
|
|
|
|
argument is %NULL.)
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@font: the new font.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_function ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Determines how the current pixel values and the
|
|
|
|
pixel values being drawn are combined to produce
|
|
|
|
the final pixel values.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
1999-08-16 18:51:52 +00:00
|
|
|
@function:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_fill ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Set the fill mode for a graphics context.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@fill: the new fill mode.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-02-01 04:27:56 +00:00
|
|
|
<!-- ##### ENUM GdkFill ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Determines how primitives are drawn.
|
2000-02-01 04:27:56 +00:00
|
|
|
</para>
|
|
|
|
|
2001-12-23 22:55:17 +00:00
|
|
|
@GDK_SOLID: draw with the foreground color.
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_TILED: draw with a tiled pixmap.
|
|
|
|
@GDK_STIPPLED: draw using the stipple bitmap. Pixels corresponding
|
|
|
|
to bits in the stipple bitmap that are set will be drawn in the
|
|
|
|
foreground color; pixels corresponding to bits that are
|
2001-12-23 22:55:17 +00:00
|
|
|
not set will be left untouched.
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_OPAQUE_STIPPLED: draw using the stipple bitmap. Pixels corresponding
|
|
|
|
to bits in the stipple bitmap that are set will be drawn in the
|
|
|
|
foreground color; pixels corresponding to bits that are
|
2001-12-23 22:55:17 +00:00
|
|
|
not set will be drawn with the background color.
|
2000-02-01 04:27:56 +00:00
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_set_tile ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Set a tile pixmap for a graphics context.
|
|
|
|
This will only be used if the fill mode
|
|
|
|
is %GDK_TILED.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@tile: the new tile pixmap.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_stipple ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Set the stipple bitmap for a graphics context. The
|
|
|
|
stipple will only be used if the fill mode is
|
|
|
|
%GDK_STIPPLED or %GDK_OPAQUE_STIPPLED.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@stipple: the new stipple bitmap.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_ts_origin ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Set the origin when using tiles or stipples with
|
|
|
|
the GC. The tile or stipple will be aligned such
|
|
|
|
that the upper left corner of the tile or stipple
|
|
|
|
will coincide with this point.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@x: the x-coordinate of the origin.
|
|
|
|
@y: the y-coordinate of the origin.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_clip_origin ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the origin of the clip mask. The coordinates are
|
|
|
|
interpreted relative to the upper-left corner of
|
|
|
|
the destination drawable of the current operation.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@x: the x-coordinate of the origin.
|
|
|
|
@y: the y-coordinate of the origin.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_clip_mask ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the clip mask for a graphics context from a bitmap.
|
|
|
|
The clip mask is interpreted relative to the clip
|
|
|
|
origin. (See gdk_gc_set_clip_origin()).
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: the #GdkGC.
|
|
|
|
@mask: a bitmap.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_clip_rectangle ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the clip mask for a graphics context from a
|
|
|
|
rectangle. The clip mask is interpreted relative to the clip
|
|
|
|
origin. (See gdk_gc_set_clip_origin()).
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@rectangle: the rectangle to clip to.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_clip_region ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the clip mask for a graphics context from a region structure.
|
|
|
|
The clip mask is interpreted relative to the clip origin. (See
|
|
|
|
gdk_gc_set_clip_origin()).
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@region: the #GdkRegion.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_subwindow ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets how drawing with this GC on a window will affect child
|
|
|
|
windows of that window.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@mode: the subwindow mode.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### ENUM GdkSubwindowMode ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Determines how drawing onto a window will affect child
|
|
|
|
windows of that window.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_CLIP_BY_CHILDREN: only draw onto the window itself.
|
|
|
|
@GDK_INCLUDE_INFERIORS: draw onto the window and child windows.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_exposures ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets whether copying non-visible portions of a drawable
|
|
|
|
using this graphics context generate exposure events
|
|
|
|
for the corresponding regions of the destination
|
2001-12-29 00:24:25 +00:00
|
|
|
drawable. (See gdk_draw_drawable()).
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@exposures: if %TRUE, exposure events will be generated.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_set_line_attributes ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets various attributes of how lines are drawn. See
|
2001-11-28 19:05:58 +00:00
|
|
|
the corresponding members of #GdkGCValues for full
|
2001-02-12 17:50:13 +00:00
|
|
|
explanations of the arguments.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
|
|
|
@line_width: the width of lines.
|
|
|
|
@line_style: the dash-style for lines.
|
|
|
|
@cap_style: the manner in which the ends of lines are drawn.
|
|
|
|
@join_style: the in which lines are joined together.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-02-01 04:27:56 +00:00
|
|
|
<!-- ##### ENUM GdkLineStyle ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Determines how lines are drawn.
|
2000-02-01 04:27:56 +00:00
|
|
|
</para>
|
|
|
|
|
2001-12-23 22:55:17 +00:00
|
|
|
@GDK_LINE_SOLID: lines are drawn solid.
|
|
|
|
@GDK_LINE_ON_OFF_DASH: even segments are drawn; odd segments are not drawn.
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_LINE_DOUBLE_DASH: even segments are normally. Odd segments are drawn
|
|
|
|
in the background color if the fill style is %GDK_SOLID, or in the background
|
|
|
|
color masked by the stipple if the fill style is %GDK_STIPPLED.
|
|
|
|
|
2000-02-01 04:27:56 +00:00
|
|
|
<!-- ##### ENUM GdkCapStyle ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Determines how the end of lines are drawn.
|
2001-11-28 19:05:58 +00:00
|
|
|
</para>
|
2001-02-12 17:50:13 +00:00
|
|
|
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_CAP_NOT_LAST: the same as %GDK_CAP_BUTT for lines of non-zero width.
|
2001-12-23 22:55:17 +00:00
|
|
|
for zero width lines, the final point on the line will not be drawn.
|
|
|
|
@GDK_CAP_BUTT: the ends of the lines are drawn squared off and extending
|
|
|
|
to the coordinates of the end point.
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_CAP_ROUND: the ends of the lines are drawn as semicircles with the
|
2001-12-23 22:55:17 +00:00
|
|
|
diameter equal to the line width and centered at the end point.
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_CAP_PROJECTING: the ends of the lines are drawn squared off and extending
|
2001-12-23 22:55:17 +00:00
|
|
|
half the width of the line beyond the end point.
|
2000-02-01 04:27:56 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GdkJoinStyle ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Determines how the joins between segments of a polygon are drawn.
|
2000-02-01 04:27:56 +00:00
|
|
|
</para>
|
|
|
|
|
2001-12-23 22:55:17 +00:00
|
|
|
@GDK_JOIN_MITER: the sides of each line are extended to meet at an angle.
|
|
|
|
@GDK_JOIN_ROUND: the sides of the two lines are joined by a circular arc.
|
2001-11-28 19:05:58 +00:00
|
|
|
@GDK_JOIN_BEVEL: the sides of the two lines are joined by a straight line which
|
2001-12-23 22:55:17 +00:00
|
|
|
makes an equal angle with each line.
|
2000-02-01 04:27:56 +00:00
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_set_dashes ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the way dashed-lines are drawn. Lines will be
|
|
|
|
drawn with alternating on and off segments of the
|
|
|
|
lengths specified in @dash_list. The manner in
|
|
|
|
which the on and off segments are drawn is determined
|
|
|
|
by the @line_style value of the GC. (This can
|
2001-11-28 19:05:58 +00:00
|
|
|
be changed with gdk_gc_set_line_attributes())
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@gc: a #GdkGC.
|
2001-12-23 22:55:17 +00:00
|
|
|
@dash_offset: the
|
2001-02-12 17:50:13 +00:00
|
|
|
@dash_list: an array of dash lengths.
|
|
|
|
@n: the number of elements in @dash_list.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_copy ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Copy the set of values from one graphics context
|
|
|
|
onto another graphics context.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@dst_gc: the destination graphics context.
|
|
|
|
@src_gc: the source graphics context.
|
2000-02-01 04:27:56 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_set_colormap ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@gc:
|
|
|
|
@colormap:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_gc_get_colormap ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@gc:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2001-10-03 18:19:48 +00:00
|
|
|
<!-- ##### FUNCTION gdk_gc_offset ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@gc:
|
|
|
|
@x_offset:
|
|
|
|
@y_offset:
|
|
|
|
|
|
|
|
|