Loading...
Searching...
No Matches
ScrollEvent.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * This file is a part of Ultralight. *
3 * *
4 * See <https://ultralig.ht> for licensing and more. *
5 * *
6 * (C) 2024 Ultralight, Inc. *
7 **************************************************************************************************/
8#pragma once
10
11namespace ultralight {
12
13///
14/// Scroll event representing a change in scroll state.
15///
16/// @see View::FireScrollEvent
17///
19 public:
20 ///
21 /// The scroll event granularity type
22 ///
23 enum Type {
24 kType_ScrollByPixel, ///< The delta value will be interpreted as number of pixels to scroll.
25 kType_ScrollByPage, ///< The delta value will be interpreted as number of pages to scroll.
26 };
27
28 ///
29 /// Scroll granularity type
30 ///
32
33 ///
34 /// Horizontal scroll amount
35 ///
37
38 ///
39 /// Vertical scroll amount
40 ///
42};
43
44} // namespace ultralight
Scroll event representing a change in scroll state.
Definition ScrollEvent.h:18
Type
The scroll event granularity type.
Definition ScrollEvent.h:23
@ kType_ScrollByPage
The delta value will be interpreted as number of pages to scroll.
Definition ScrollEvent.h:25
@ kType_ScrollByPixel
The delta value will be interpreted as number of pixels to scroll.
Definition ScrollEvent.h:24
int delta_y
Vertical scroll amount.
Definition ScrollEvent.h:41
int delta_x
Horizontal scroll amount.
Definition ScrollEvent.h:36
Type type
Scroll granularity type.
Definition ScrollEvent.h:31
Definition App.h:14