Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
ultralight::ScrollEvent Class Reference

A generic scroll event. More...

#include <ScrollEvent.h>

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.
 

Detailed Description

A generic scroll event.

Note
See also
View::FireScrollEvent

Definition at line 24 of file ScrollEvent.h.

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.

Definition at line 29 of file ScrollEvent.h.


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