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

GDK Reference Manual

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

  context :


gdk_drag_begin ()
GdkDragContext* gdk_drag_begin(GdkWindow *window,GList *targets); 

  window :

  targets :


gdk_drag_motion ()
gbooleangdk_drag_motion (GdkDragContext *context,GdkWindow *dest_window,
GdkDragProtocol protocol,gint x_root,gint y_root,
GdkDragAction suggested_action,GdkDragAction possible_actions,guint32 time); 

  context :

  dest_window :

  protocol :

  x_root :

  y_root :

  suggested_action :

  possible_actions :

  time :


gdk_drop_finish ()
voidgdk_drop_finish (GdkDragContext *context,gboolean success,guint32 time); 

  context :

  success :

  time :

gdk_drag_get_protocol () guint32 gdk_drag_get_protocol (guint32 xid,GdkDragProtocol *protocol);

  xid :

  protocol :

  Returns :

  enum GdkDragProtocol


typedef enum {
GDK_DRAG_PROTO_MOTIF,
GDK_DRAG_PROTO_XDND,
GDK_DRAG_PROTO_ROOTWIN,/* A root window with nobody claiming
* drags */
GDK_DRAG_PROTO_NONE/* Not a valid drag window */
} GdkDragProtocol; 

  


gdk_drag_context_unref ()
voidgdk_drag_context_unref(GdkDragContext *context); 

  context :

  struct GdkDragContext


struct GdkDragContext {
GdkDragProtocol protocol;
gboolean is_source;
GdkWindow *source_window;
GdkWindow *dest_window;
GList *targets;
GdkDragAction actions;
GdkDragAction suggested_action;
GdkDragAction action; 
guint32 start_time;
}; 

  enum GdkDragAction


typedef enum {
GDK_ACTION_DEFAULT = 1 << 0,
GDK_ACTION_COPY= 1 << 1,
GDK_ACTION_MOVE= 1 << 2,
GDK_ACTION_LINK= 1 << 3,
GDK_ACTION_PRIVATE = 1 << 4,
GDK_ACTION_ASK = 1 << 5
} GdkDragAction; 

  


gdk_drag_status ()
voidgdk_drag_status (GdkDragContext *context,
GdkDragAction action,guint32 time); 

  context :

  action :

  time :

Properties and Atoms

Name

  Properties and Atoms -- functions to manipulate properties on windows.

Synopsis


#include <gdk/gdk.h>
typedef GdkAtom;
#define GDK_NONE
gintgdk_text_property_to_text_list(GdkAtom encoding,
gint format,guchar *text,gint length,gchar ***list);
voidgdk_free_text_list(gchar **list);
gintgdk_string_to_compound_text (gchar *str,
GdkAtom *encoding,gint *format,guchar **ctext,gint *length);
voidgdk_free_compound_text(guchar *ctext);
GdkAtom gdk_atom_intern (const gchar *atom_name,gint only_if_exists);
gchar*gdk_atom_name (GdkAtom atom);
gintgdk_property_get(GdkWindow *window,GdkAtom property,GdkAtom type,
gulong offset,gulong length,gint pdelete,GdkAtom *actual_property_type,
gint *actual_format,gint *actual_length,guchar **data);
voidgdk_property_change (GdkWindow *window,GdkAtom property,
GdkAtom type,gint format,GdkPropMode mode,guchar *data,gint nelements);
enumGdkPropMode;
voidgdk_property_delete (GdkWindow *window,GdkAtom property); 

Description

  Each window under X can have any number of associated properties attached to it. Properties are arbitrary chunks of data identified by atoms. (An atom is a numeric index into a string table on the X server. They are used to transfer strings efficiently between clients without having to transfer the entire string.) A property has an associated type, which is also identified using an atom.

  A property has an associated format, an integer describing how many bits are in each unit of data inside the property. It must be 8, 16, or 32. When data is transfered between the server and client, if they are of different endianesses it will be byteswapped as necessary according to the format of the property. Note that on the client side, properties of format 32 will be stored with one unit per long, even if a long integer has more than 32 bits on the platform. (This decision was apparently made for Xlib to maintain compatibility with programs that assumed longs were 32 bits, at the expense of programs that knew better.)

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

上一页 1 2 3 4 5 6 7 8 9 10 11 12 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 4748 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号