Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::repro::ReproEvent Struct Reference

One discrete event that fired within a frame. Frame-state (mouse position, button mask) lives on the owning frame record; this captures only events that can't be reconstructed from continuous state (key presses, character input, wheel deltas, resizes). More...

#include "donner/editor/repro/ReproFile.h"

Public Types

enum class  Kind {
  MouseDown ,
  MouseUp ,
  KeyDown ,
  KeyUp ,
  Char ,
  Wheel ,
  Resize ,
  Focus
}

Public Attributes

Kind kind = Kind::MouseDown
int mouseButton = 0
int key = 0
int modifiers = 0
std::uint32_t codepoint = 0
float wheelDeltaX = 0.0f
float wheelDeltaY = 0.0f
int width = 0
int height = 0
bool focusOn = true

Detailed Description

One discrete event that fired within a frame. Frame-state (mouse position, button mask) lives on the owning frame record; this captures only events that can't be reconstructed from continuous state (key presses, character input, wheel deltas, resizes).


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