Ultralight
1.0.0
A fast, lightweight, HTML UI engine for native apps.
ScrollEvent.h
Go to the documentation of this file.
1
#pragma once
15
#include <Ultralight/Defines.h>
16
17
namespace
ultralight
{
18
24
class
ScrollEvent
{
25
public
:
29
enum
Type
{
31
kType_ScrollByPixel
,
32
34
kType_ScrollByPage
,
35
};
36
40
Type
type
;
41
45
int
delta_x
;
46
50
int
delta_y
;
51
};
52
53
}
// namespace ultralight
ultralight::ScrollEvent::Type
Type
The scroll event granularity type.
Definition:
ScrollEvent.h:29
ultralight::ScrollEvent::kType_ScrollByPixel
The delta value is interpreted as number of pixels.
Definition:
ScrollEvent.h:31
ultralight::ScrollEvent
A generic scroll event.
Definition:
ScrollEvent.h:24
ultralight
This is a set of common JavaScriptCore Helper functions to simplify sample code.
Definition:
App.h:19
ultralight::ScrollEvent::kType_ScrollByPage
The delta value is interpreted as number of pages.
Definition:
ScrollEvent.h:34
ultralight::ScrollEvent::delta_x
int delta_x
Horizontal scroll amount.
Definition:
ScrollEvent.h:45
ultralight::ScrollEvent::delta_y
int delta_y
Vertical scroll amount.
Definition:
ScrollEvent.h:50
ultralight::ScrollEvent::type
Type type
Scroll granularity type.
Definition:
ScrollEvent.h:40
include
Ultralight
ScrollEvent.h
Generated by
1.8.15