Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
ScrollEvent.h
Go to the documentation of this file.
1/******************************************************************************
2 * This file is a part of Ultralight, an ultra-portable web-browser engine. *
3 * *
4 * See <https://ultralig.ht> for licensing and more. *
5 * *
6 * (C) 2023 Ultralight, Inc. *
7 *****************************************************************************/
8#pragma once
10
11namespace ultralight {
12
13///
14/// Generic 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 /// The delta value is interpreted as number of pixels
26
27 /// The delta value is interpreted as number of pages
29 };
30
31 ///
32 /// Scroll granularity type
33 ///
35
36 ///
37 /// Horizontal scroll amount
38 ///
40
41 ///
42 /// Vertical scroll amount
43 ///
45};
46
47} // namespace ultralight
Generic scroll event representing a change in scroll state.
Definition ScrollEvent.h:18
Type type
Scroll granularity type.
Definition ScrollEvent.h:34
int delta_x
Horizontal scroll amount.
Definition ScrollEvent.h:39
Type
The scroll event granularity type.
Definition ScrollEvent.h:23
@ kType_ScrollByPage
The delta value is interpreted as number of pages.
Definition ScrollEvent.h:28
@ kType_ScrollByPixel
The delta value is interpreted as number of pixels.
Definition ScrollEvent.h:25
int delta_y
Vertical scroll amount.
Definition ScrollEvent.h:44
Definition App.h:14