GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Gtk2::Gdk::DragContext(3) User Contributed Perl Documentation Gtk2::Gdk::DragContext(3)

Gtk2::Gdk::DragContext - wrapper for GdkDragContext

  Glib::Object
  +----Gtk2::Gdk::DragContext

dragcontext = Gtk2::Gdk::DragContext->new

$context->abort ($time_)

$time_ (unsigned)

scalar = $dc->action

scalar = $dc->actions

dragaction = $context->get_actions

Since: gtk+ 2.22

dragcontext = Gtk2::Gdk::DragContext->begin ($window, ...)

  • $window (Gtk2::Gdk::Window)
  • ... (list) of Gtk2::Gdk::Atom's

scalar = $dc->dest_window

boolean = $context->drag_drop_succeeded

Since: gtk+ 2.6

$context->drop ($time_)

$time_ (unsigned)

$context->drop_finish ($success, $time_=GDK_CURRENT_TIME)

  • $success (boolean)
  • $time_ (unsigned)

$context->drop_reply ($ok, $time_=GDK_CURRENT_TIME)

  • $ok (boolean)
  • $time_ (unsigned)

(dest_window, protocol) = $context->find_window ($drag_window, $x_root, $y_root)

  • $drag_window (Gtk2::Gdk::Window)
  • $x_root (integer)
  • $y_root (integer)

(dest_window, protocol) = $context->find_window_for_screen ($drag_window, $screen, $x_root, $y_root)

  • $drag_window (Gtk2::Gdk::Window)
  • $screen (Gtk2::Gdk::Screen)
  • $x_root (integer)
  • $y_root (integer)

Since: gtk+ 2.2

$context->finish ($success, $del, $time_)

  • $success (boolean)
  • $del (boolean)
  • $time_ (unsigned)

$context->set_icon_name ($icon_name, $hot_x, $hot_y)

  • $icon_name (string)
  • $hot_x (integer)
  • $hot_y (integer)

Since: gtk+ 2.8

$context->set_icon_pixbuf ($pixbuf, $hot_x, $hot_y)

  • $pixbuf (Gtk2::Gdk::Pixbuf)
  • $hot_x (integer)
  • $hot_y (integer)

$context->set_icon_pixmap ($colormap, $pixmap, $mask, $hot_x, $hot_y)

  • $colormap (Gtk2::Gdk::Colormap)
  • $pixmap (Gtk2::Gdk::Pixmap)
  • $mask (Gtk2::Gdk::Bitmap or undef)
  • $hot_x (integer)
  • $hot_y (integer)

$context->set_icon_stock ($stock_id, $hot_x, $hot_y)

  • $stock_id (string)
  • $hot_x (integer)
  • $hot_y (integer)

$context->set_icon_widget ($widget, $hot_x, $hot_y)

  • $widget (Gtk2::Widget)
  • $hot_x (integer)
  • $hot_y (integer)

scalar = $dc->is_source

Since: gtk+ 2.22

boolean = $context->motion ($dest_window, $protocol, $x_root, $y_root, $suggested_action, $possible_actions, $time_)

  • $dest_window (Gtk2::Gdk::Window)
  • $protocol (Gtk2::Gdk::DragProtocol)
  • $x_root (integer)
  • $y_root (integer)
  • $suggested_action (Gtk2::Gdk::DragAction)
  • $possible_actions (Gtk2::Gdk::DragAction)
  • $time_ (unsigned)

scalar = $dc->protocol

(ret, protocol) = Gtk2::Gdk::DragContext->get_protocol_for_display ($display, $xid)

  • $display (Gtk2::Gdk::Display)
  • $xid (unsigned)

Since: gtk+ 2.2

(ret, protocol) = Gtk2::Gdk::DragContext->get_protocol ($xid)

$xid (unsigned)

dragaction = $context->get_selected_action

Since: gtk+ 2.22

scalar = $dc->source_window

Since: gtk+ 2.22

scalar = $dc->start_time

$context->status ($action, $time_=GDK_CURRENT_TIME)

  • $action (Gtk2::Gdk::DragAction)
  • $time_ (unsigned)

scalar = $dc->suggested_action

dragaction = $context->get_suggested_action

Since: gtk+ 2.22

Returns a list of Gtk2::Gdk::Atom's, the targets.

  • 'default' / 'GDK_ACTION_DEFAULT'
  • 'copy' / 'GDK_ACTION_COPY'
  • 'move' / 'GDK_ACTION_MOVE'
  • 'link' / 'GDK_ACTION_LINK'
  • 'private' / 'GDK_ACTION_PRIVATE'
  • 'ask' / 'GDK_ACTION_ASK'

  • 'motif' / 'GDK_DRAG_PROTO_MOTIF'
  • 'xdnd' / 'GDK_DRAG_PROTO_XDND'
  • 'rootwin' / 'GDK_DRAG_PROTO_ROOTWIN'
  • 'none' / 'GDK_DRAG_PROTO_NONE'
  • 'win32-dropfiles' / 'GDK_DRAG_PROTO_WIN32_DROPFILES'
  • 'ole2' / 'GDK_DRAG_PROTO_OLE2'
  • 'local' / 'GDK_DRAG_PROTO_LOCAL'

Gtk2, Glib::Object

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.

2025-07-19 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.