Index

Package: Drag_Contexts

Description

package Gdk.Drag_Contexts is
---------------------------------------------------------------------------- -- Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet -- Copyright (C) 2000-2014, AdaCore -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option) any later -- version. This library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- -- As a special exception under Section 7 of GPL version 3, you are granted -- additional permissions described in the GCC Runtime Library Exception, -- version 3.1, as published by the Free Software Foundation. -- -- You should have received a copy of the GNU General Public License and -- a copy of the GCC Runtime Library Exception along with this program; -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- <http://www.gnu.org/licenses/>. -- -- ----------------------------------------------------------------------------

Packages

Gdk_Drag_Action_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Gdk_Drag_Action_Properties is
      new Generic_Internal_Discrete_Property (Gdk_Drag_Action);

Gdk_Drag_Protocol_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Gdk_Drag_Protocol_Properties is
      new Generic_Internal_Discrete_Property (Gdk_Drag_Protocol);

Classes

Drag_Context_Record

type Drag_Context_Record is new GObject_Record with null record;

Ancestors:

Primitive operations:

Get_Dest_Window
Get_Protocol
Get_Selected_Action
Get_Source_Window
Get_Suggested_Action
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)

Types

Drag_Context

type Drag_Context is access all Drag_Context_Record'Class;

Gdk_Drag_Action

type Gdk_Drag_Action is mod 2 ** Integer'Size;

Gdk_Drag_Protocol

type Gdk_Drag_Protocol is (
      Drag_Proto_None,
      Drag_Proto_Motif,
      Drag_Proto_Xdnd,
      Drag_Proto_Rootwin,
      Drag_Proto_Win32_Dropfiles,
      Drag_Proto_Ole2,
      Drag_Proto_Local);

Property_Gdk_Drag_Action

type Property_Gdk_Drag_Action is new Gdk_Drag_Action_Properties.Property;

Property_Gdk_Drag_Protocol

type Property_Gdk_Drag_Protocol is new Gdk_Drag_Protocol_Properties.Property;

Constants & Global variables

Action_Default (Gdk_Drag_Action)

Action_Default : constant Gdk_Drag_Action := 1;

Action_Copy (Gdk_Drag_Action)

Action_Copy : constant Gdk_Drag_Action := 2;

Action_Move (Gdk_Drag_Action)

Action_Move : constant Gdk_Drag_Action := 4;

Action_Link (Gdk_Drag_Action)

Action_Link : constant Gdk_Drag_Action := 8;

Action_Private (Gdk_Drag_Action)

Action_Private : constant Gdk_Drag_Action := 16;

Action_Ask (Gdk_Drag_Action)

Action_Ask : constant Gdk_Drag_Action := 32;

Subprograms & Entries

Get_Type

function Get_Type return Glib.GType;

Get_Actions

function Get_Actions 
(Self: not null access Drag_Context_Record) return Gdk_Drag_Action;
Determines the bitmask of actions proposed by the source if Gdk.Drag_Contexts.Get_Suggested_Action returns GDK_ACTION_ASK. Since: gtk+ 2.22

Get_Dest_Window

function Get_Dest_Window 
(Self: not null access Drag_Context_Record) return Gdk.Gdk_Window;
Returns the destination windw for the DND operation. Since: gtk+ 3.0

Get_Device

function Get_Device 
(Self: not null access Drag_Context_Record) return Gdk.Device.Gdk_Device;
Returns the Gdk.Device.Gdk_Device associated to the drag context.

Set_Device

procedure Set_Device 
(Self: not null access Drag_Context_Record;
Device: not null access Gdk.Device.Gdk_Device_Record'Class);
Associates a Gdk.Device.Gdk_Device to Context, so all Drag and Drop events for Context are emitted as if they came from this device. "device": a Gdk.Device.Gdk_Device

Get_Protocol

function Get_Protocol 
(Self: not null access Drag_Context_Record) return Gdk_Drag_Protocol;
Returns the drag protocol thats used by this context. Since: gtk+ 3.0

Get_Selected_Action

function Get_Selected_Action 
(Self: not null access Drag_Context_Record) return Gdk_Drag_Action;
Determines the action chosen by the drag destination. Since: gtk+ 2.22

Get_Source_Window

function Get_Source_Window 
(Self: not null access Drag_Context_Record) return Gdk.Gdk_Window;
Returns the Gdk.Gdk_Window where the DND operation started. Since: gtk+ 2.22

Get_Suggested_Action

function Get_Suggested_Action 
(Self: not null access Drag_Context_Record) return Gdk_Drag_Action;
Determines the suggested drag action of the context. Since: gtk+ 2.22