bWidgets
Core widget toolkit designed for Blender
|
Important state information for the screen-graph. More...
#include <bwContext.h>
Public Attributes | |
bwScreenGraph::Node * | hovered = nullptr |
bwScreenGraph::Node * | active = nullptr |
Important state information for the screen-graph.
Blender used to manage special states of widgets (e.g. hovered, active, etc.) mostly using per widget flags. To query these special widgets (i.e. the currently hovered widget), a lookup had to be performed. Rather than requiring lookups, bWidgets uses this context data-struture for access to special state widgets.
bwScreenGraph::Node* bWidgets::bwContext::active = nullptr |
The currently active widget which gets any input (if any).
bwScreenGraph::Node* bWidgets::bwContext::hovered = nullptr |
The currently hovered node (if any).