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

GDK Reference Manual

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

gdk_draw_points ()
voidgdk_draw_points (GdkDrawable *drawable,
GdkGC *gc,GdkPoint *points,gint npoints); 

  Draws a number of points, using the foreground color and other attributes of the GdkGC.

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

  gc : a GdkGC.

  points : an array of GdkPoint structures.

  npoints : the number of points to be drawn.


gdk_draw_line ()
voidgdk_draw_line (GdkDrawable *drawable,
GdkGC *gc,gint x1,gint y1,gint x2,gint y2); 

  Draws a line, using the foreground color and other attributes of the GdkGC.

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

  gc : a GdkGC.

  x1 : the x coordinate of the start point.

  y1 : the y coordinate of the start point.

  x2 : the x coordinate of the end point.

  y2 : the y coordinate of the end point.


gdk_draw_lines ()
voidgdk_draw_lines(GdkDrawable *drawable,
GdkGC *gc,GdkPoint *points,gint npoints); 

  Draws a series of lines connecting the given points. The way in which joins between lines are draw is determined by the GdkCapStyle value in the GdkGC. This can be set with gdk_gc_set_line_attributes().

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

  gc : a GdkGC.

  points : an array of GdkPoint structures specifying the endpoints of the lines.

  npoints : the size of the points array.


gdk_draw_segments ()
voidgdk_draw_segments (GdkDrawable *drawable,
GdkGC *gc,GdkSegment *segs,gint nsegs); 

  Draws a number of unconnected lines.

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

  gc : a GdkGC.

  segs : an array of GdkSegment structures specifying the start and end points of the lines to be drawn,

  nsegs : the number of line segments to draw, i.e. the size of the segs array.

  struct GdkSegment


struct GdkSegment
{
gint16 x1;
gint16 y1;
gint16 x2;
gint16 y2;
}; 

  Specifies the start and end point of a line for use by the gdk_draw_segments() function.

  gint16 x1 the x coordinate of the start point.

  gint16 y1 the y coordinate of the start point.

  gint16 x2 the x coordinate of the end point.

  gint16 y2 the y coordinate of the end point.


gdk_draw_rectangle ()
voidgdk_draw_rectangle(GdkDrawable *drawable,
GdkGC *gc,gint filled,gint x,gint y,gint width,gint height); 

  Draws a rectangular outline or filled rectangle, using the foreground color and other attributes of the GdkGC.

  Note: A rectangle drawn filled is 1 pixel smaller in both dimensions than a rectangle outlined. Calling gdk_draw_rectangle (window, gc, TRUE, 0, 0, 20, 20) results in a filled rectangle 20 pixels wide and 20 pixels high. Calling gdk_draw_rectangle (window, gc, FALSE, 0, 0, 20, 20) results in an outlined rectangle with corners at (0, 0), (0, 20), (20, 20), and (20, 0), which makes it 21 pixels wide and 21 pixels high.

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

  gc : a GdkGC.

  filled : TRUE if the rectangle should be filled.

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

  y : the y coordinate of the top edge of the rectangle.

  width : the width of the rectangle.

  height : the height of the rectangle.


gdk_draw_arc ()
voidgdk_draw_arc(GdkDrawable *drawable,
GdkGC *gc,gint filled,
gint x,gint y,gint width,gint height,gint angle1,gint angle2); 

  Draws an arc or a filled 'pie slice'. The arc is defined by the bounding rectangle of the entire ellipse, and the start and end angles of the part of the ellipse to be drawn.

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

  gc : a GdkGC.

  filled : TRUE if the arc should be filled, producing a 'pie slice'.

  x : the x coordinate of the left edge of the bounding rectangle.

  y : the y coordinate of the top edge of the bounding rectangle.

  width : the width of the bounding rectangle.

  height : the height of the bounding rectangle.

  angle1 : the start angle of the arc, relative to the 3 o'clock position, counter-clockwise, in 1/64ths of a degree.

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

上一页 1 2 3 4 5 6 7 8 9 10 1112 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 下一页


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

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
·Motorola微处理器bootloader分析与应用
·Fedora Core5 NFS服务器搭建过程介绍
·Linux系统:让内存不再泄漏的实用技巧
·新手看招 手把手教你安装VMware虚拟机
·“侵权事件” 红帽称微软企图干扰用户
·删除Linux后 如何找回Windows启动菜单
·菜鸟乐园 Linux中常见文件系统格式介绍
·Linux操作系统下IPTables配置方法详解
·实用技巧 Linux系统的经典使用技巧八则
·Linux系统文件优化及磁盘检查方法介绍
推荐文章
·什么时候应该使用Web Service
·如何监视某个tty?
·出错也不怕—Linux系统紧急情况处理
·Linux 指令篇:档案目录管理--ls
·开放源代码时代即将到来
·用PHP+MySQL构建一个招聘网站(10)
·理解和使用Oracle 8i分析工具-LogM
·JSP的环境引擎--websphere
精彩文章
·xfs文件系统(原创)
·Linux 指令篇:工作行程资讯与管理--
·用户界面原型开发:技巧和技术
·PHP的XML分析函数(一)
·编写Linux实用程序的艺术
·基于heartbeat的NFS HA实现
·如何阅读源代码
·一个网上理财站点的设计(二)
·Linux 指令篇:起始管理--reboot
·LInux 应用程序如何处理当前运行环
·mount使用指南
·用php生成excel文件
·Linux 常用命令(磁盘管理)
·架设 DHCP Server
·简易防火墙建置与流量统计
·J2EE概述
·[术语]GPL通用公共许可证
·内核空间SMP编程
·认识X-Window窗口管理器
·Linux内核网络参数的意义及应用
·Linux下硬盘分区的最佳方案
·JavaBean使用技巧
·基于DNS的多机均衡负载的实现
·python入门1
·Linux 网管 123 --- 第10章. 升级 L
·Oracle安装(linux)小结
Power by linux-cn.com 粤ICP备05006655号