|
Ultralight C++ API 2.0.0
|
#include <Ultralight/ScrollEvent.h>
Scroll event representing a change in scroll state.
Positive deltas scroll up (or left), like a mouse wheel turned away from the user. Pages that read the legacy wheelDelta properties see 120 for every 100 pixels (or every page) of delta.
Public Types | |
| enum | Type { kType_ScrollByPixel , kType_ScrollByPage } |
| The scroll event granularity type. More... | |
Public Attributes | |
| Type | type |
| Scroll granularity type. | |
| int | delta_x |
| Horizontal scroll amount, in the unit named by type (logical pixels, or pages). | |
| int | delta_y |
| Vertical scroll amount, in the unit named by type (logical pixels, or pages). | |
| int | x = -1 |
| The x-position of the cursor when the event occurred, in logical pixels relative to the View. | |
| int | y = -1 |
| The y-position of the cursor when the event occurred, in logical pixels relative to the View. | |
| enum Type |
| int delta_x |
Horizontal scroll amount, in the unit named by type (logical pixels, or pages).
| int delta_y |
Vertical scroll amount, in the unit named by type (logical pixels, or pages).
| Type type |
Scroll granularity type.
| int x = -1 |
The x-position of the cursor when the event occurred, in logical pixels relative to the View.
Leave negative to dispatch at the last known cursor position instead; if either coordinate is negative, both are ignored.
| int y = -1 |