| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
GtkWidget::drag_dest_setvoid drag_dest_set(
GtkDestDefaults
flags
, array
targets
,
GdkDragAction
actions
);
Sets the calling widget as a drag-and-drop destination. flags is one of four GtkDestDefaults values which define how the widget reacts when the drag is over the widget.
The targets parameter defines a list with all
data types which can be dropped over the widget. The parameter is an
array of arrays of size three:
It is not possible to use a "*" mime type in the target. The flags of the targets determine from which widget the drag has to come from:
info allows you to pass a number to the function connected to the "drag-data-received" signal. This is useful when e.g. allowing multiple image types to be dropped, as well as some other non-image types: All image types could be assigned "1" as info parameter, all other types "2" or so. In the drag received function could pass the necessary data to a image open function by checking if the info parameter is "1", without having to compare the mime type. 例 57. Using the info parameter
See also: drag_dest_unset() |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「GtkWidget::drag_dest_set」をGoogle検索
|