VCV Rack API v2
Loading...
Searching...
No Matches
rack::widget::EventContext Struct Reference

A per-event state shared and writable by all widgets that recursively handle an event. More...

#include <event.hpp>

Collaboration diagram for rack::widget::EventContext:
[legend]

Public Attributes

bool propagating = true
 Whether the event should continue recursing to children Widgets.
 
bool consumed = false
 Whether the event has been consumed by an event handler and no more handlers should consume the event.
 
Widgettarget = NULL
 The widget that responded to the event.
 

Detailed Description

A per-event state shared and writable by all widgets that recursively handle an event.

Member Data Documentation

◆ propagating

bool rack::widget::EventContext::propagating = true

Whether the event should continue recursing to children Widgets.

◆ consumed

bool rack::widget::EventContext::consumed = false

Whether the event has been consumed by an event handler and no more handlers should consume the event.

◆ target

Widget* rack::widget::EventContext::target = NULL

The widget that responded to the event.


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