GraphDragEvent
touchgfx/widgets/graph/AbstractDataGraph.hpp
An object of this type is passed with each callback that is sent when the graph is dragged. The object contains the data index that was pressed and the details of the drag event, e.g. old and new screen coordinates.
Public Functions
GraphDragEvent(int16_t i, const DragEvent & event) | |
Initializes a new instance of the GraphDragEvent class. | |
Public Attributes
const DragEvent & | dragEvent |
The DragEvent that caused the callback to be executed. | |
int16_t | index |
The index of the item where the drag has ended. | |
Public Functions Documentation
GraphDragEvent
GraphDragEvent | ( | int16_t | i , | ||
const DragEvent & | event | ||||
) |
Initializes a new instance of the GraphDragEvent class.
Parameters:
i | The index of the item where the drag has ended. |
event | The DragEvent that caused the callback to be executed. |
See also:
Public Attributes Documentation
dragEvent
const DragEvent & dragEvent
The DragEvent that caused the callback to be executed.
index
int16_t index
The index of the item where the drag has ended.