PlankDragManager

PlankDragManager — Handles all of the drag'n'drop events for a dock.

Synopsis

#define             PLANK_TYPE_DRAG_MANAGER
void                plank_drag_manager_initialize       (PlankDragManager *self);
gboolean            plank_drag_manager_drop_is_accepted_by
                                                        (PlankDragManager *self,
                                                         PlankItemsDockItem *item);
void                plank_drag_manager_ensure_proxy     (PlankDragManager *self);
PlankDragManager *  plank_drag_manager_new              (PlankDockController *controller);
gboolean            plank_drag_manager_get_InternalDragActive
                                                        (PlankDragManager *self);
gboolean            plank_drag_manager_get_HoveredAcceptsDrop
                                                        (PlankDragManager *self);
PlankItemsDockItem * plank_drag_manager_get_DragItem    (PlankDragManager *self);
gboolean            plank_drag_manager_get_DragIsDesktopFile
                                                        (PlankDragManager *self);
gboolean            plank_drag_manager_get_ExternalDragActive
                                                        (PlankDragManager *self);
gboolean            plank_drag_manager_get_RepositionMode
                                                        (PlankDragManager *self);
struct              PlankDragManager;
struct              PlankDragManagerClass;

Object Hierarchy

  GObject
   +----PlankDragManager

Properties

  "DragIsDesktopFile"        gboolean              : Read
  "DragItem"                 PlankItemsDockItem*   : Read
  "ExternalDragActive"       gboolean              : Read
  "HoveredAcceptsDrop"       gboolean              : Read
  "InternalDragActive"       gboolean              : Read
  "RepositionMode"           gboolean              : Read
  "controller"               PlankDockController*  : Write / Construct Only

Description

Details

PLANK_TYPE_DRAG_MANAGER

#define PLANK_TYPE_DRAG_MANAGER (plank_drag_manager_get_type ())

The type for PlankDragManager.


plank_drag_manager_initialize ()

void                plank_drag_manager_initialize       (PlankDragManager *self);

self :

the PlankDragManager instance

plank_drag_manager_drop_is_accepted_by ()

gboolean            plank_drag_manager_drop_is_accepted_by
                                                        (PlankDragManager *self,
                                                         PlankItemsDockItem *item);

self :

the PlankDragManager instance

item :

 

plank_drag_manager_ensure_proxy ()

void                plank_drag_manager_ensure_proxy     (PlankDragManager *self);

self :

the PlankDragManager instance

plank_drag_manager_new ()

PlankDragManager *  plank_drag_manager_new              (PlankDockController *controller);

controller :

 

plank_drag_manager_get_InternalDragActive ()

gboolean            plank_drag_manager_get_InternalDragActive
                                                        (PlankDragManager *self);

Get and return the current value of the "InternalDragActive" property.

self :

the PlankDragManager instance to query

Returns :

the value of the "InternalDragActive" property

plank_drag_manager_get_HoveredAcceptsDrop ()

gboolean            plank_drag_manager_get_HoveredAcceptsDrop
                                                        (PlankDragManager *self);

Get and return the current value of the "HoveredAcceptsDrop" property.

self :

the PlankDragManager instance to query

Returns :

the value of the "HoveredAcceptsDrop" property

plank_drag_manager_get_DragItem ()

PlankItemsDockItem * plank_drag_manager_get_DragItem    (PlankDragManager *self);

Get and return the current value of the "DragItem" property.

self :

the PlankDragManager instance to query

Returns :

the value of the "DragItem" property

plank_drag_manager_get_DragIsDesktopFile ()

gboolean            plank_drag_manager_get_DragIsDesktopFile
                                                        (PlankDragManager *self);

Get and return the current value of the "DragIsDesktopFile" property.

self :

the PlankDragManager instance to query

Returns :

the value of the "DragIsDesktopFile" property

plank_drag_manager_get_ExternalDragActive ()

gboolean            plank_drag_manager_get_ExternalDragActive
                                                        (PlankDragManager *self);

Get and return the current value of the "ExternalDragActive" property.

self :

the PlankDragManager instance to query

Returns :

the value of the "ExternalDragActive" property

plank_drag_manager_get_RepositionMode ()

gboolean            plank_drag_manager_get_RepositionMode
                                                        (PlankDragManager *self);

Get and return the current value of the "RepositionMode" property.

self :

the PlankDragManager instance to query

Returns :

the value of the "RepositionMode" property

struct PlankDragManager

struct PlankDragManager;

Handles all of the drag'n'drop events for a dock.


struct PlankDragManagerClass

struct PlankDragManagerClass {
	GObjectClass parent_class;
};

The class structure for PLANK_TYPE_DRAG_MANAGER. All the fields in this structure are private and should never be accessed directly.

GObjectClass parent_class;

the parent class structure

Property Details

The "DragIsDesktopFile" property

  "DragIsDesktopFile"        gboolean              : Read

DragIsDesktopFile.

Default value: FALSE


The "DragItem" property

  "DragItem"                 PlankItemsDockItem*   : Read

DragItem.


The "ExternalDragActive" property

  "ExternalDragActive"       gboolean              : Read

ExternalDragActive.

Default value: FALSE


The "HoveredAcceptsDrop" property

  "HoveredAcceptsDrop"       gboolean              : Read

HoveredAcceptsDrop.

Default value: FALSE


The "InternalDragActive" property

  "InternalDragActive"       gboolean              : Read

InternalDragActive.

Default value: FALSE


The "RepositionMode" property

  "RepositionMode"           gboolean              : Read

RepositionMode.

Default value: FALSE


The "controller" property

  "controller"               PlankDockController*  : Write / Construct Only

controller.