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

GDK Reference Manual

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

  angle2 : the end angle of the arc, relative to angle1, in 1/64ths of a degree.


gdk_draw_polygon ()
voidgdk_draw_polygon(GdkDrawable *drawable,
GdkGC *gc,gint filled,GdkPoint *points,gint npoints); 

  Draws an outlined or filled polygon.

  drawable : a GdkDrawable (a GdkWindow or a GdkPixmap).

  gc : a GdkGC.

  filled : TRUE if the polygon should be filled. The polygon is closed automatically, connecting the last point to the first point if necessary.

  points : an array of GdkPoint structures specifying the points making up the polygon.

  npoints : the number of points.


gdk_draw_string ()
voidgdk_draw_string (GdkDrawable *drawable,
GdkFont *font,GdkGC *gc,gint x,gint y,const gchar *string); 

  Draws a string of characters in the given font or fontset.

  drawable : a GdkDrawable (a GdkWindow or a GdkPixmap).

  font : a GdkFont.

  gc : a GdkGC.

  x : the x coordinate of the left edge of the text.

  y : the y coordinate of the baseline of the text.

  string : the string of characters to draw.


gdk_draw_text ()
voidgdk_draw_text (GdkDrawable *drawable,
GdkFont *font,GdkGC *gc,gint x,gint y,const gchar *text,gint text_length); 

  Draws a number of characters in the given font or fontset.

  drawable : a GdkDrawable (a GdkWindow or a GdkPixmap).

  font : a GdkFont.

  gc : a GdkGC.

  x : the x coordinate of the left edge of the text.

  y : the y coordinate of the baseline of the text.

  text : the characters to draw.

  text_length : the number of characters of text to draw.


gdk_draw_text_wc ()
voidgdk_draw_text_wc(GdkDrawable *drawable,
GdkFont *font,GdkGC *gc,
gint x,gint y,const GdkWChar *text,gint text_length); 

  Draws a number of wide characters using the given font of fontset. If the font is a 1-byte font, the string is converted into 1-byte characters (discarding the high bytes) before output.

  drawable : a GdkDrawable (a GdkWindow or a GdkPixmap).

  font : a GdkFont.

  gc : a GdkGC.

  x : the x coordinate of the left edge of the text.

  y : the y coordinate of the baseline of the text.

  text : the wide characters to draw.

  text_length : the number of characters to draw.


gdk_draw_pixmap ()
voidgdk_draw_pixmap (GdkDrawable *drawable,
GdkGC *gc,GdkDrawable *src,gint xsrc,
gint ysrc,gint xdest,gint ydest,gint width,gint height); 

  Draws a pixmap, or a part of a pixmap, onto another drawable.

  drawable : a GdkDrawable (a GdkWindow or a GdkPixmap).

  gc : a GdkGC.

  src : the source GdkPixmap to draw.

  xsrc : the left edge of the source rectangle within src.

  ysrc : the top of the source rectangle within src.

  xdest : the x coordinate of the destination within drawable.

  ydest : the y coordinate of the destination within drawable.

  width : the width of the area to be copied, or -1 to make the area extend to the right edge of the source pixmap.

  height : the height of the area to be copied, or -1 to make the area extend to the bottom edge of the source pixmap.


gdk_draw_image ()
voidgdk_draw_image(GdkDrawable *drawable,
GdkGC *gc,GdkImage *image,gint xsrc,
gint ysrc,gint xdest,gint ydest,gint width,gint height); 

  Draws a GdkImage onto a drawable. The depth of the GdkImage must match the depth of the GdkDrawable.

  drawable : a GdkDrawable (a GdkWindow or a GdkPixmap).

  gc : a GdkGC.

  image : the GdkImage to draw.

  xsrc : the left edge of the source rectangle within image.

  ysrc : the top of the source rectangle within image.

  xdest : the x coordinate of the destination within drawable.

  ydest : the y coordinate of the destination within drawable.

  width : the width of the area to be copied, or -1 to make the area extend to the right edge of image.

  height : the height of the area to be copied, or -1 to make the area extend to the bottom edge of image.

  Bitmaps and Pixmaps

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



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

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