bWidgets
Core widget toolkit designed for Blender
ScreenGraph.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
bwContext.h
"
4
#include "
bwEventDispatcher.h
"
5
6
namespace
bWidgets
{
7
namespace
bwScreenGraph {
8
9
class
Node;
10
class
LayoutNode;
11
12
class
ScreenGraph
{
13
public
:
14
template
<
typename
_NodeType>
15
ScreenGraph
(std::unique_ptr<_NodeType> _root_node)
16
:
event_dispatcher
(*this), root_node(std::move(_root_node))
17
{
18
}
19
20
auto
Root
() const ->
LayoutNode
&
21
{
22
return
*root_node;
23
}
24
26
bwContext
context
;
27
bwEventDispatcher
event_dispatcher
;
28
29
private
:
30
std::unique_ptr<LayoutNode> root_node;
31
};
32
33
}
// namespace bwScreenGraph
34
}
// namespace bWidgets
bwContext.h
bwEventDispatcher.h
bWidgets::bwEventDispatcher
Mangages sending events to screen-graph nodes based on current state.
Definition:
bwEventDispatcher.h:24
bWidgets::bwScreenGraph::LayoutNode
Node for aligning children to a specific layout.
Definition:
Node.h:92
bWidgets::bwScreenGraph::ScreenGraph
Definition:
ScreenGraph.h:12
bWidgets::bwScreenGraph::ScreenGraph::ScreenGraph
ScreenGraph(std::unique_ptr< _NodeType > _root_node)
Definition:
ScreenGraph.h:15
bWidgets::bwScreenGraph::ScreenGraph::Root
auto Root() const -> LayoutNode &
Definition:
ScreenGraph.h:20
bWidgets::bwScreenGraph::ScreenGraph::context
bwContext context
Definition:
ScreenGraph.h:26
bWidgets::bwScreenGraph::ScreenGraph::event_dispatcher
bwEventDispatcher event_dispatcher
Definition:
ScreenGraph.h:27
bWidgets
Definition:
bwContext.h:3
bWidgets::bwContext
Important state information for the screen-graph.
Definition:
bwContext.h:19
bwidgets
screen_graph
ScreenGraph.h
Generated by
1.9.3