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

GDK Reference Manual

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

gdk_window_set_group ()
voidgdk_window_set_group(GdkWindow *window,GdkWindow *leader); 

  window :

  leader :


gdk_window_set_decorations ()
voidgdk_window_set_decorations(GdkWindow *window,
GdkWMDecoration decorations); 

  window :

  decorations :

  enum GdkWMDecoration


typedef enum
{
GDK_DECOR_ALL= 1 << 0,
GDK_DECOR_BORDER= 1 << 1,
GDK_DECOR_RESIZEH= 1 << 2,
GDK_DECOR_TITLE= 1 << 3,
GDK_DECOR_MENU= 1 << 4,
GDK_DECOR_MINIMIZE= 1 << 5,
GDK_DECOR_MAXIMIZE= 1 << 6
} GdkWMDecoration; 

gdk_window_set_functions ()
voidgdk_window_set_functions(GdkWindow *window,GdkWMFunction functions); 

  window :

  functions :

  enum GdkWMFunction


typedef enum
{
GDK_FUNC_ALL= 1 << 0,
GDK_FUNC_RESIZE= 1 << 1,
GDK_FUNC_MOVE= 1 << 2,
GDK_FUNC_MINIMIZE= 1 << 3,
GDK_FUNC_MAXIMIZE= 1 << 4,
GDK_FUNC_CLOSE= 1 << 5
} GdkWMFunction; 

gdk_window_get_toplevels ()
GList*gdk_window_get_toplevels(void); 

  Returns :

  struct GdkDrawable


struct GdkDrawable
{
gpointer user_data;
}; 

gdk_drawable_set_data ()
voidgdk_drawable_set_data (GdkDrawable *drawable,
const gchar *key,gpointer data,GDestroyNotify destroy_func); 

  drawable :

  key :

  data :

  destroy_func :

Events

Name

  Events -- functions for handling events from the window system.

Synopsis


#include <gdk/gdk.h>
enumGdkEventType;
enumGdkEventMask;
#define GDK_CURRENT_TIME
#define GDK_PRIORITY_EVENTS
gbooleangdk_events_pending(void);
GdkEvent* gdk_event_peek(void);
GdkEvent* gdk_event_get (void);
GdkEvent* gdk_event_get_graphics_expose (GdkWindow *window);
voidgdk_event_put (GdkEvent *event);
GdkEvent* gdk_event_copy(GdkEvent *event);
voidgdk_event_free(GdkEvent *event);
guint32 gdk_event_get_time(GdkEvent *event);
voidgdk_event_handler_set (GdkEventFunc func,
gpointer data,GDestroyNotify notify);
void(*GdkEventFunc) (GdkEvent *event,gpointer data);
gbooleangdk_event_send_client_message (GdkEvent *event,guint32 xid);
voidgdk_event_send_clientmessage_toall
(GdkEvent *event);
voidgdk_add_client_message_filter (GdkAtom message_type,
GdkFilterFunc func,gpointer data);
gintgdk_get_show_events (void);
voidgdk_set_show_events (gint show_events); 

Description

  This section describes functions dealing with events from the window system.

  In GTK+ applications the events are handled automatically in gtk_main_do_event() and passed on to the appropriate widgets, so these functions are rarely needed. Though some of the fields in the Event Structures are useful.

Details

  enum GdkEventType


typedef enum
{
GDK_NOTHING= -1,
GDK_DELETE= 0,
GDK_DESTROY= 1,
GDK_EXPOSE= 2,
GDK_MOTION_NOTIFY= 3,
GDK_BUTTON_PRESS= 4,
GDK_2BUTTON_PRESS= 5,
GDK_3BUTTON_PRESS= 6,
GDK_BUTTON_RELEASE= 7,
GDK_KEY_PRESS= 8,
GDK_KEY_RELEASE= 9,
GDK_ENTER_NOTIFY= 10,
GDK_LEAVE_NOTIFY= 11,
GDK_FOCUS_CHANGE= 12,
GDK_CONFIGURE= 13,
GDK_MAP= 14,
GDK_UNMAP= 15,
GDK_PROPERTY_NOTIFY= 16,
GDK_SELECTION_CLEAR= 17,
GDK_SELECTION_REQUEST = 18,
GDK_SELECTION_NOTIFY= 19,
GDK_PROXIMITY_IN= 20,
GDK_PROXIMITY_OUT= 21,
GDK_DRAG_ENTER= 22,
GDK_DRAG_LEAVE= 23,
GDK_DRAG_MOTION = 24,
GDK_DRAG_STATUS = 25,
GDK_DROP_START= 26,
GDK_DROP_FINISHED = 27,
GDK_CLIENT_EVENT= 28,
GDK_VISIBILITY_NOTIFY = 29,
GDK_NO_EXPOSE= 30
} GdkEventType; 

  Specifies the type of the event.

  Do not confuse these events with the signals that GTK+ widgets emit. Although many of these events result in corresponding signals being emitted, the events are often transformed or filtered along the way.

  GDK_NOTHING a special code to indicate a null event.

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

上一页 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 3738 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号