GDK Reference Manualgc : a GdkGC. Returns : gc.
Decrease the reference count on a graphics context. If the resulting reference count is zero, the graphics context will be destroyed. gc : a GdkGC.
Identical to gdk_gc_unref(). This function is obsolete and should not be used. gc : a GdkGC.
Retrieves the current values from a graphics context. gc : a GdkGC. values : the GdkGCValues structure in which to store the results.
Sets the foreground color for a graphics context. gc : a GdkGC. color : the new foreground color.
Sets the background color for a graphics context. gc : a GdkGC. color : the new background color.
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.) gc : a GdkGC. font : the new font.
Determines how the current pixel values and the pixel values being drawn are combined to produce the final pixel values. gc : a GdkGC. function :
Set the fill mode for a graphics context. gc : a GdkGC. fill : the new fill mode. enum GdkFill
Determines how primitives are drawn. GDK_SOLID draw with the foreground color. 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 not set will be left untouched. 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 not set will be drawn with the background color.
Set a tile pixmap for a graphics context. This will only be used if the fill mode is GDK_TILED. gc : a GdkGC. tile : the new tile pixmap.
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. gc : a GdkGC. stipple : the new stipple bitmap.
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. gc : a GdkGC. x : the x-coordinate of the origin. 上一篇:GTK v1.2 Tutorial(英文) 下一篇:Java入门(12) 事件与错误处理 更多相关文章
|
推荐文章
精彩文章
|