Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->Linux技术 ->系统管理 ->正文

GDK Reference Manual

来源:Linux-cn.com 作者:Webmaster 时间:2007-05-05 点击: [收藏] [投稿]

  y : the y-coordinate of the origin.


gdk_gc_set_clip_origin ()
voidgdk_gc_set_clip_origin(GdkGC *gc,gint x,gint y); 

  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.

  gc : a GdkGC.

  x : the x-coordinate of the origin.

  y : the y-coordinate of the origin.


gdk_gc_set_clip_mask ()
voidgdk_gc_set_clip_mask(GdkGC *gc,GdkBitmap *mask); 

  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()).

  gc : the GdkGC.

  mask : a bitmap.


gdk_gc_set_clip_rectangle ()
voidgdk_gc_set_clip_rectangle (GdkGC *gc,GdkRectangle *rectangle); 

  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()).

  gc : a GdkGC.

  rectangle : the rectangle to clip to.


gdk_gc_set_clip_region ()
voidgdk_gc_set_clip_region(GdkGC *gc,GdkRegion *region); 

  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()).

  gc : a GdkGC.

  region : the GdkRegion.


gdk_gc_set_subwindow ()
voidgdk_gc_set_subwindow(GdkGC *gc,GdkSubwindowMode mode); 

  Sets how drawing with this GC on a window will affect child windows of that window.

  gc : a GdkGC.

  mode : the subwindow mode.

  enum GdkSubwindowMode


typedef enum
{
GDK_CLIP_BY_CHILDREN= 0,
GDK_INCLUDE_INFERIORS = 1
} GdkSubwindowMode; 

  Determines how drawing onto a window will affect child windows of that window.

  GDK_CLIP_BY_CHILDREN only draw onto the window itself.

  GDK_INCLUDE_INFERIORS Draw onto the window and child windows.


gdk_gc_set_exposures ()
voidgdk_gc_set_exposures(GdkGC *gc,gint exposures); 

  Sets whether copying non-visible portions of a drawable using this graphics context generate exposure events for the corresponding regions of the destination drawable. (See gdk_draw_pixmap()).

  gc : a GdkGC.

  exposures : if TRUE, exposure events will be generated.


gdk_gc_set_line_attributes ()
voidgdk_gc_set_line_attributes(GdkGC *gc,
gint line_width,GdkLineStyle line_style,
GdkCapStyle cap_style,GdkJoinStyle join_style); 

  Sets various attributes of how lines are drawn. See the corresponding members of GdkGCValues for full explanations of the arguments.

  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.

  enum GdkLineStyle


typedef enum
{
GDK_LINE_SOLID,
GDK_LINE_ON_OFF_DASH,
GDK_LINE_DOUBLE_DASH
} GdkLineStyle; 

  Determines how lines are drawn.

  GDK_LINE_SOLID lines are drawn solid.

  GDK_LINE_ON_OFF_DASH even segments are drawn; odd segments are not drawn.

  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.

  enum GdkCapStyle


typedef enum
{
GDK_CAP_NOT_LAST,
GDK_CAP_BUTT,
GDK_CAP_ROUND,
GDK_CAP_PROJECTING
} GdkCapStyle; 

  Determines how the end of lines are drawn.

  GDK_CAP_NOT_LAST the same as GDK_CAP_BUTT for lines of non-zero width. for zero width lines, the final point on the line will not be drawn.

 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:GTK v1.2 Tutorial(英文)   下一篇:Java入门(12) 事件与错误处理

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号