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

GDK Reference Manual

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

  An enumeration describing the way in which a device axis (valuator) maps onto the predefined valuator types that GTK+ understands.

  GDK_AXIS_IGNORE the axis is ignored.

  GDK_AXIS_X the axis is used as the x axis.

  GDK_AXIS_Y the axis is used as the y axis.

  GDK_AXIS_PRESSURE the axis is used for pressure information.

  GDK_AXIS_XTILT the axis is used for x tilt information.

  GDK_AXIS_YTILT the axis is used for x tilt information.

  GDK_AXIS_LAST a constant equal to the numerically highest axis value.


gdk_input_set_key ()
voidgdk_input_set_key (guint32 deviceid,
guint index, guint keyval,GdkModifierType modifiers); 

  Sets the key event generated when a macro button is pressed.

  deviceid : the device to configure.

  index : the index of the macro button.

  keyval : the key value for the GdkKeypressEvent to generate. (a value of 0 means no event will be generated.)

  modifiers : the modifier field for the generated GdkKeyPressEvent.


gdk_input_window_get_pointer ()
voidgdk_input_window_get_pointer(GdkWindow *window,
guint32 deviceid,gdouble *x,gdouble *y,gdouble *pressure,
gdouble *xtilt,gdouble *ytilt,GdkModifierType *mask); 

  Returns information about the current position of the pointer within a window, including extended device information. Any of the return parameters may be NULL, in which case, they will be ignored.

  window : a GdkWindow.

  deviceid : a device ID.

  x : location to store current x postion.

  y : location to store current y postion.

  pressure : location to store current pressure.

  xtilt : location to store current tilt in the x direction.

  ytilt : location to store current tilt in the y direction.

  mask : location to store the current modifier state.


gdk_input_motion_events ()
GdkTimeCoord* gdk_input_motion_events (GdkWindow *window,
guint32 deviceid,guint32 start,guint32 stop,gint *nevents_return); 

  Retrieves the motion history for a given device/window pair.

  window : a GdkWindow.

  deviceid : the device for which to retrieve motion history.

  start : the start time.

  stop : the stop time.

  nevents_return : location to store the number of events returned.

  Returns : a newly allocated array containing all the events from start to stop. This array should be freed with g_free() when you are finished using it.

  struct GdkTimeCoord


struct GdkTimeCoord
{
guint32 time;
gdouble x;
gdouble y;
gdouble pressure;
gdouble xtilt;
gdouble ytilt;
}; 

  The GdkTimeCoord structure stores a single event in a motion history. It contains the following fields:

  guint32 time The timestamp for this event.

  gdouble x the x position.

  gdouble y the y position.

  gdouble pressure the pressure.

  gdouble xtilt the tilt in the x direction.

  gdouble ytilt the tilt in the y direction.

Key Values

Name

  Key Values -- functions for manipulating keyboard codes.

Synopsis


#include <gdk/gdk.h>
gchar*gdk_keyval_name (guint keyval);
guint gdk_keyval_from_name(const gchar *keyval_name);
gbooleangdk_keyval_is_upper (guint keyval);
gbooleangdk_keyval_is_lower (guint keyval);
guint gdk_keyval_to_upper (guint keyval);
guint gdk_keyval_to_lower (guint keyval); 

Description

  Key values are the codes which are sent whenever a key is pressed or released. They appear in the keyval field of the GdkEventKey structure, which is passed to signal handlers for the "key-press-event" and "key-release-event" signals. The complete list of key values can be found in the <gdk/gdkkeysyms.h> header file.

  Key values can be converted into a string representation using gdk_keyval_name(). The reverse function, converting a string to a key value, is provided by gdk_keyval_from_name().

  The case of key values can be determined using gdk_keyval_is_upper() and gdk_keyval_is_lower(). Key values can be converted to upper or lower case using gdk_keyval_to_upper() and gdk_keyval_to_lower().

Details



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

上一页 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 47 48 49 50 51 52 5354 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号