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 {
32 
35  };
36 
41 
45  int delta_x;
46 
50  int delta_y;
51 };
52 
53 } // namespace ultralight
Type
The scroll event granularity type.
Definition: ScrollEvent.h:29
The delta value is interpreted as number of pixels.
Definition: ScrollEvent.h:31
A generic scroll event.
Definition: ScrollEvent.h:24
This is a set of common JavaScriptCore Helper functions to simplify sample code.
Definition: App.h:19
The delta value is interpreted as number of pages.
Definition: ScrollEvent.h:34
int delta_x
Horizontal scroll amount.
Definition: ScrollEvent.h:45
int delta_y
Vertical scroll amount.
Definition: ScrollEvent.h:50
Type type
Scroll granularity type.
Definition: ScrollEvent.h:40