GDK Reference ManualDetails struct GdkGC
The GdkGC structure represents a graphics context. It is an opaque structure with no user-visible elements. struct GdkGCValues
The GdkGCValues structure holds a set of values used to create or modify a graphics context. GdkColor foreground; the foreground color. GdkColor background; the background color. GdkFont *font; the default font.. GdkFunction function; the bitwise operation used when drawing. GdkFill fill; the fill style. GdkPixmap *tile; the tile pixmap. GdkPixmap *stipple; the stipple bitmap. GdkPixmap *clip_mask; the clip mask bitmap. GdkSubwindowMode subwindow_mode; the subwindow mode. gint ts_x_origin; the x origin of the tile or stipple. gint ts_y_origin; the y origin of the tile or stipple. gint clip_x_origin; the x origin of the clip mask. gint clip_y_origin; the y origin of the clip mask. gint graphics_exposures; whether graphics exposures are enabled. gint line_width; the line width GdkLineStyle line_style; the way dashed lines are drawn GdkCapStyle cap_style; the way the ends of lines are drawn GdkJoinStyle join_style; the way joins between lines are drawn enum GdkGCValuesMask
A set of bit flags used to indicate which fields GdkGCValues structure are set. enum GdkFunction
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.
Create a new graphics context with default values. window : a GdkDrawable. The created GC must always be used with drawables of the same depth as this one. Returns : the new graphics context.
Create a new GC with the given initial values. window : a GdkDrawable. The created GC must always be used with drawables of the same depth as this one. 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.
Increase the reference count on a graphics context. 上一篇:GTK v1.2 Tutorial(英文) 下一篇:Java入门(12) 事件与错误处理 更多相关文章
|
推荐文章
精彩文章
|