bWidgets
Core widget toolkit designed for Blender
bWidgets::bwContext Struct Reference

Important state information for the screen-graph. More...

#include <bwContext.h>

+ Collaboration diagram for bWidgets::bwContext:

Public Attributes

bwScreenGraph::Nodehovered = nullptr
 
bwScreenGraph::Nodeactive = nullptr
 

Detailed Description

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.

Member Data Documentation

◆ active

bwScreenGraph::Node* bWidgets::bwContext::active = nullptr

The currently active widget which gets any input (if any).

◆ hovered

bwScreenGraph::Node* bWidgets::bwContext::hovered = nullptr

The currently hovered node (if any).


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