tbx
0.7.6
|
Event information for Drag ended event. More...
#include <draggable.h>
Public Member Functions | |
DragEndedEvent (IdBlock &id_block, PollBlock &data) | |
Construct the event from the information returned by the toolbox. More... | |
bool | toolbox_ids () const |
Returns true if toolbox ids are returned at end of drag. | |
Object | object () const |
Returns toolbox object at end of drag if toolbox_ids is true. More... | |
Component | component () const |
Return toolbox component at end of drag if toolbox_ids is true. More... | |
WindowHandle | window_handle () const |
Returns WIMP Window handle if toolbox_ids if false. | |
IconHandle | icon_handle () const |
Return WIMP icon handle if toolbox_ids is false. | |
int | x () const |
x coordinate of drag finish | |
int | y () const |
y coordinate of drag finish | |
PointerInfo | where () const |
Return drag information as PointerInfo class. | |
![]() | |
EventInfo (const IdBlock &id_block, PollBlock &data) | |
Contruct the event information from the id_block and data update by the toolbox. | |
const IdBlock & | id_block () const |
IdBlock for the current event. More... | |
Additional Inherited Members | |
![]() | |
PollBlock & | _data |
raw data from the event | |
Event information for Drag ended event.
A bit set on the draggable object determines if the result will be toolbox object/component or Window/Icon WIMP handles.
Even when the toolbox object/component is requested, WIMP handles will be returned if the toolbox items can not be determined.
Construct the event from the information returned by the toolbox.
id_block | Block containing objects/components for the event |
data | Additional data for the event. |
|
inline |
Return toolbox component at end of drag if toolbox_ids is true.
Component null is returned if object can't be determined or drag did not end on a component
|
inline |
Returns toolbox object at end of drag if toolbox_ids is true.
Object null is returned if object can not be determined