LMMS
Loading...
Searching...
No Matches
PuglScrollEvent Struct Reference

#include <pugl.h>

Public Attributes

PuglEventType type
 PUGL_SCROLL
PuglEventFlags flags
 Bitwise OR of PuglEventFlag values.
double time
 Time in seconds.
double x
 View-relative X coordinate.
double y
 View-relative Y coordinate.
double xRoot
 Root-relative X coordinate.
double yRoot
 Root-relative Y coordinate.
PuglMods state
 Bitwise OR of PuglMod flags.
PuglScrollDirection direction
 Scroll direction.
double dx
 Scroll X distance in lines.
double dy
 Scroll Y distance in lines.

Detailed Description

Scroll event.

The scroll distance is expressed in "lines", an arbitrary unit that corresponds to a single tick of a detented mouse wheel. For example, dy = 1.0 scrolls 1 line up. Some systems and devices support finer resolution and/or higher values for fast scrolls, so programs should handle any value gracefully.

Member Data Documentation

◆ direction

PuglScrollDirection PuglScrollEvent::direction

Scroll direction.

◆ dx

double PuglScrollEvent::dx

Scroll X distance in lines.

◆ dy

double PuglScrollEvent::dy

Scroll Y distance in lines.

◆ flags

PuglEventFlags PuglScrollEvent::flags

Bitwise OR of PuglEventFlag values.

◆ state

PuglMods PuglScrollEvent::state

Bitwise OR of PuglMod flags.

◆ time

double PuglScrollEvent::time

Time in seconds.

◆ type

PuglEventType PuglScrollEvent::type

◆ x

double PuglScrollEvent::x

View-relative X coordinate.

◆ xRoot

double PuglScrollEvent::xRoot

Root-relative X coordinate.

◆ y

double PuglScrollEvent::y

View-relative Y coordinate.

◆ yRoot

double PuglScrollEvent::yRoot

Root-relative Y coordinate.


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