LibreOffice
LibreOffice 24.2 SDK API Reference
Public Attributes | List of all members
DragGestureEvent Struct Referencepublished

A DragGestureEvent is passed to the method XDragGestureListener::dragGestureRecognized() when a particular XDragGestureRecognizer detects that a platform dependent drag initiating gesture has occurred on the component that it is tracking. More...

import"DragGestureEvent.idl";

Inheritance diagram for DragGestureEvent:
EventObject

Public Attributes

byte DragAction
 The action selected by the user. More...
 
long DragOriginX
 The x coordinate where the drag originated in component coordinates. More...
 
long DragOriginY
 The y coordinate where the drag originated in component coordinates. More...
 
XDragSource DragSource
 The DragSource associated with this drag action. More...
 
any Event
 The last event comprising the gesture. More...
 
- Public Attributes inherited from EventObject
com::sun::star::uno::XInterface Source
 refers to the object that fired the event. More...
 

Detailed Description

A DragGestureEvent is passed to the method XDragGestureListener::dragGestureRecognized() when a particular XDragGestureRecognizer detects that a platform dependent drag initiating gesture has occurred on the component that it is tracking.

Member Data Documentation

◆ DragAction

byte DragAction

The action selected by the user.

Different constants may be combined using a logical OR.

It's further possible to combine the ACTION_DEFAULT with one of the other actions defined in com::sun::star::datatransfer::dnd::DNDConstants. This means the user did not press any key during the Drag and Drop operation and the action that was combined with ACTION_DEFAULT is the system default action.

See also
com::sun::star::datatransfer::dnd::DNDConstants

◆ DragOriginX

long DragOriginX

The x coordinate where the drag originated in component coordinates.

◆ DragOriginY

long DragOriginY

The y coordinate where the drag originated in component coordinates.

◆ DragSource

XDragSource DragSource

The DragSource associated with this drag action.

◆ Event

any Event

The last event comprising the gesture.

The initial trigger event will presumably be a com::sun::star::awt::MouseEvent event. If it is not, the implementation should either react accordingly or presume that the left mouse button was clicked.


The documentation for this struct was generated from the following file: