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

GDK Reference Manual

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

  gdouble y the y coordinate of the mouse relative to the window.

  gdouble pressure the pressure of the button press, intended for input devices such as graphics tablets. It defaults to 0.5.

  gdouble xtilt the horizontal tilt of the input device. Defaults to 0.

  gdouble ytilt the vertical tilt of the input device. Defaults to 0.

  guint state a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType.

  guint button the button which was pressed or released, numbered from 1 to 5. Normally button 1 is the left mouse button, 2 is the middle button, and 3 is the right button. On 2-button mice, the middle button can often be simulated by pressing both mouse buttons together.

  GdkInputSource source the input device where the event came from, usually GDK_SOURCE_MOUSE.

  guint32 deviceid the input device ID, usually GDK_CORE_POINTER but may be different if touch screens or graphics tablets are being used.

  gdouble x_root the x coordinate of the mouse relative to the root of the screen.

  gdouble y_root the y coordinate of the mouse relative to the root of the screen.

  struct GdkEventMotion


struct GdkEventMotion
{
GdkEventType type;
GdkWindow *window;
gint8 send_event;
guint32 time;
gdouble x;
gdouble y;
gdouble pressure;
gdouble xtilt;
gdouble ytilt;
guint state;
gint16 is_hint;
GdkInputSource source;
guint32 deviceid;
gdouble x_root, y_root;
}; 

  GdkEventType type the type of the event.

  GdkWindow *window the window which received the event.

  gint8 send_event TRUE if the event was sent explicitly (e.g. using XSendEvent).

  guint32 time

  gdouble x

  gdouble y

  gdouble pressure

  gdouble xtilt

  gdouble ytilt

  guint state

  gint16 is_hint

  GdkInputSource source

  guint32 deviceid

  gdouble x_root

  gdouble y_root

  struct GdkEventExpose


struct GdkEventExpose
{
GdkEventType type;
GdkWindow *window;
gint8 send_event;
GdkRectangle area;
gint count; /* If non-zero, how many more events follow. */
}; 

  Generated when all or part of a window becomes visible and needs to be redrawn.

  GdkEventType type the type of the event (GDK_EXPOSE).

  GdkWindow *window the window which received the event.

  gint8 send_event TRUE if the event was sent explicitly (e.g. using XSendEvent).

  GdkRectangle area the area that needs to be redrawn.

  gint count the number of contiguous GDK_EXPOSE events following this one. The only use for this is "exposure compression", i.e. handling all contiguous GDK_EXPOSE events in one go, though GDK performs some exposure compression so this is not normally needed.

  struct GdkEventVisibility


struct GdkEventVisibility
{
GdkEventType type;
GdkWindow *window;
gint8 send_event;
GdkVisibilityState state;
}; 

  Generated when the window visibility status has changed.

  GdkEventType type the type of the event (GDK_VISIBILITY_NOTIFY).

  GdkWindow *window the window which received the event.

  gint8 send_event TRUE if the event was sent explicitly (e.g. using XSendEvent).

  GdkVisibilityState state the new visibility state (GDK_VISIBILITY_FULLY_OBSCURED, GDK_VISIBILITY_PARTIAL or GDK_VISIBILITY_UNOBSCURED).

  struct GdkEventCrossing


struct GdkEventCrossing
{
GdkEventType type;
GdkWindow *window;
gint8 send_event;
GdkWindow *subwindow;
guint32 time;
gdouble x;
gdouble y;
gdouble x_root;
gdouble y_root;
GdkCrossingMode mode;
GdkNotifyType detail;
gboolean focus;
guint state;
}; 

  GdkEventType type the type of the event.

  GdkWindow *window the window which received the event.

  gint8 send_event TRUE if the event was sent explicitly (e.g. using XSendEvent).

  GdkWindow *subwindow

  guint32 time the time of the event in milliseconds.

  gdouble x

  gdouble y

  gdouble x_root

  gdouble y_root

  GdkCrossingMode mode

  GdkNotifyType detail

  gboolean focus

  guint state

  struct GdkEventFocus


struct GdkEventFocus
{
GdkEventType type;
GdkWindow *window;
gint8 send_event;
gint16 in;
}; 


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



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

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章