AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AScrollEvent Struct Reference

Pointing method scroll event. More...

Detailed Description

Pointing method scroll event.

Examples
/github/workspace/aui.views/src/AUI/View/AView.h.

Signals and public fields

glm::vec2 origin
 Where does the event occurred. More...
 
glm::vec2 delta
 The amount of scroll. More...
 
bool kinetic = false
 Whether the event simulated by kinetic scroll feature or not.
 
APointerIndex pointerIndex = APointerIndex::button(AInput::LBUTTON)
 Pointer index for touchscreen; LBUTTON for mouse cursor.
 

Member Data Documentation

◆ delta

glm::vec2 AScrollEvent::delta
mutable

The amount of scroll.

This field is mutable in order to be consumable.

◆ origin

glm::vec2 AScrollEvent::origin

Where does the event occurred.

For mouse, it's the position of the cursor.

For touchscreen, it's the origin point where the scroll gesture started.

#include <AUI/Event/AScrollEvent.h>


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