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
9
#include <
Ultralight/Defines.h
>
10
11
namespace
ultralight
{
12
13
///
14
/// Generic scroll event representing a change in scroll state.
15
///
16
/// @see View::FireScrollEvent
17
///
18
class
ScrollEvent
{
19
public
:
20
///
21
/// The scroll event granularity type
22
///
23
enum
Type
{
24
/// The delta value is interpreted as number of pixels
25
kType_ScrollByPixel
,
26
27
/// The delta value is interpreted as number of pages
28
kType_ScrollByPage
,
29
};
30
31
///
32
/// Scroll granularity type
33
///
34
Type
type
;
35
36
///
37
/// Horizontal scroll amount
38
///
39
int
delta_x
;
40
41
///
42
/// Vertical scroll amount
43
///
44
int
delta_y
;
45
};
46
47
}
// namespace ultralight
Defines.h
ultralight::ScrollEvent
Generic scroll event representing a change in scroll state.
Definition
ScrollEvent.h:18
ultralight::ScrollEvent::type
Type type
Scroll granularity type.
Definition
ScrollEvent.h:34
ultralight::ScrollEvent::delta_x
int delta_x
Horizontal scroll amount.
Definition
ScrollEvent.h:39
ultralight::ScrollEvent::Type
Type
The scroll event granularity type.
Definition
ScrollEvent.h:23
ultralight::ScrollEvent::kType_ScrollByPage
@ kType_ScrollByPage
The delta value is interpreted as number of pages.
Definition
ScrollEvent.h:28
ultralight::ScrollEvent::kType_ScrollByPixel
@ kType_ScrollByPixel
The delta value is interpreted as number of pixels.
Definition
ScrollEvent.h:25
ultralight::ScrollEvent::delta_y
int delta_y
Vertical scroll amount.
Definition
ScrollEvent.h:44
ultralight
Definition
App.h:14
Ultralight
ScrollEvent.h
Generated by
1.9.7