Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
ultralight::ScrollEvent Class Reference

#include <Ultralight/ScrollEvent.h>

Details

Generic scroll event representing a change in scroll state.

See also
View::FireScrollEvent

Public Types

enum  Type { kType_ScrollByPixel , kType_ScrollByPage }
 The scroll event granularity type. More...
 

Public Attributes

Type type
 Scroll granularity type.
 
int delta_x
 Horizontal scroll amount.
 
int delta_y
 Vertical scroll amount.
 

Member Enumeration Documentation

◆ Type

The scroll event granularity type.

Enumerator
kType_ScrollByPixel 

The delta value is interpreted as number of pixels.

kType_ScrollByPage 

The delta value is interpreted as number of pages.

Member Data Documentation

◆ delta_x

int ultralight::ScrollEvent::delta_x

Horizontal scroll amount.

◆ delta_y

int ultralight::ScrollEvent::delta_y

Vertical scroll amount.

◆ type

Type ultralight::ScrollEvent::type

Scroll granularity type.


The documentation for this class was generated from the following file: