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

GDK Reference Manual

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

  requestor : the window on which the data is stored

  data : location to store a pointer to the retrieved data. If the retrieval failed, NULL we be stored here, otherwise, it will be non-NULL and the returned data should be freed with g_free() when you are finished using it. The length of the allocated memory is one more than the the length of the returned data, and the final byte will always be zero, to ensure null-termination of strings.

  prop_type : location to store the type of the property.

  prop_format : location to store the format of the property.

  Returns : the length of the retrieved data.


gdk_selection_send_notify ()
voidgdk_selection_send_notify (guint32 requestor,
GdkAtom selection,GdkAtom target,GdkAtom property,guint32 time); 

  Send a response to SelectionRequest event.

  requestor : window to which to deliver response.

  selection : selection that was requested.

  target : target that was selected.

  property : property in which the selection owner stored the data, or GDK_NONE to indicate that the request was rejected.

  time : timestamp.

Drag and Drop

Name

  Drag and Drop -- functions for controlling drag and drop handling.

Synopsis


#include <gdk/gdk.h>
GdkAtom gdk_drag_get_selection(GdkDragContext *context);
voidgdk_drag_abort(GdkDragContext *context,guint32 time);
voidgdk_drop_reply(GdkDragContext *context,gboolean ok,guint32 time);
GdkDragContext* gdk_drag_context_new(void);
voidgdk_drag_drop (GdkDragContext *context,guint32 time);
voidgdk_drag_find_window(GdkDragContext *context,GdkWindow *drag_window,
gint x_root,gint y_root,GdkWindow **dest_window,GdkDragProtocol *protocol);
voidgdk_drag_context_ref(GdkDragContext *context);
GdkDragContext* gdk_drag_begin(GdkWindow *window,GList *targets);
gbooleangdk_drag_motion (GdkDragContext *context,GdkWindow *dest_window,
GdkDragProtocol protocol,gint x_root,gint y_root,
GdkDragAction suggested_action,GdkDragAction possible_actions,guint32 time);
voidgdk_drop_finish (GdkDragContext *context,gboolean success,guint32 time);
guint32 gdk_drag_get_protocol (guint32 xid,GdkDragProtocol *protocol);
enumGdkDragProtocol;
voidgdk_drag_context_unref(GdkDragContext *context);
structGdkDragContext;
enumGdkDragAction;
voidgdk_drag_status (GdkDragContext *context,
GdkDragAction action,guint32 time); 

Description

  These functions provide a low level interface for drag and drop. GDK supports both the Xdnd and Motif drag and drop protocols transparently.

  GTK+ provides a higher level abstraction based on top of these functions, and so they are not normally needed in GTK+ applications. See the Drag and Drop section of the GTK+ documentation for more information.

Details


gdk_drag_get_selection ()
GdkAtom gdk_drag_get_selection(GdkDragContext *context); 

  context :

  Returns :


gdk_drag_abort ()
voidgdk_drag_abort(GdkDragContext *context,guint32 time); 

  context :

  time :


gdk_drop_reply ()
voidgdk_drop_reply(GdkDragContext *context,gboolean ok,guint32 time); 

  context :

  ok :

  time :


gdk_drag_context_new ()
GdkDragContext* gdk_drag_context_new(void); 

  Returns :


gdk_drag_drop ()
voidgdk_drag_drop (GdkDragContext *context,guint32 time); 

  context :

  time :


gdk_drag_find_window ()
voidgdk_drag_find_window(GdkDragContext *context,GdkWindow *drag_window,
gint x_root,gint y_root,GdkWindow **dest_window,GdkDragProtocol *protocol); 

  context :

  drag_window :

  x_root :

  y_root :

  dest_window :

  protocol :


gdk_drag_context_ref ()
voidgdk_drag_context_ref(GdkDragContext *context); 


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



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

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