bWidgets
Core widget toolkit designed for Blender
bwContainerWidget.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
bwWidget.h
"
4
#include "
bwWidgetBaseStyle.h
"
5
6
namespace
bWidgets
{
7
8
namespace
bwScreenGraph {
9
class
ContainerNode;
10
}
11
12
class
bwContainerWidget
:
public
bwWidget
{
13
public
:
14
virtual
auto
getMaskRectangle
() ->
bwRectanglePixel
;
15
virtual
auto
childrenVisible
()
const
-> bool;
16
17
void
registerProperties
()
override
;
18
19
protected
:
20
bwContainerWidget
(
const
bwScreenGraph::ContainerNode
&
node
,
21
std::optional<unsigned int>
width_hint
= std::nullopt,
22
std::optional<unsigned int>
height_hint
= std::nullopt);
23
25
const
bwScreenGraph::ContainerNode
&
node
;
26
27
public
:
28
bwWidgetBaseStyle
29
base_style
;
// XXX public for setWidgetStyle. Should only be temporarily needed.
30
};
31
32
}
// namespace bWidgets
bwWidgetBaseStyle.h
bwWidget.h
bWidgets::bwContainerWidget
Definition:
bwContainerWidget.h:12
bWidgets::bwContainerWidget::node
const bwScreenGraph::ContainerNode & node
Definition:
bwContainerWidget.h:25
bWidgets::bwContainerWidget::childrenVisible
virtual auto childrenVisible() const -> bool
Definition:
bwContainerWidget.cc:26
bWidgets::bwContainerWidget::base_style
bwWidgetBaseStyle base_style
Definition:
bwContainerWidget.h:29
bWidgets::bwContainerWidget::getMaskRectangle
virtual auto getMaskRectangle() -> bwRectanglePixel
Definition:
bwContainerWidget.cc:13
bWidgets::bwContainerWidget::bwContainerWidget
bwContainerWidget(const bwScreenGraph::ContainerNode &node, std::optional< unsigned int > width_hint=std::nullopt, std::optional< unsigned int > height_hint=std::nullopt)
Definition:
bwContainerWidget.cc:5
bWidgets::bwContainerWidget::registerProperties
void registerProperties() override
Definition:
bwContainerWidget.cc:33
bWidgets::bwScreenGraph::ContainerNode
Node representing a widget with children.
Definition:
Node.h:167
bWidgets::bwWidgetBaseStyle
Properties for typical widgets with roundbox corners.
Definition:
bwWidgetBaseStyle.h:14
bWidgets::bwWidget
Abstract base class that all widgets derive from.
Definition:
bwWidget.h:22
bWidgets::bwWidget::height_hint
unsigned int height_hint
Definition:
bwWidget.h:68
bWidgets::bwWidget::width_hint
unsigned int width_hint
Definition:
bwWidget.h:68
bWidgets
Definition:
bwContext.h:3
bWidgets::bwRectanglePixel
bwRectangle< int > bwRectanglePixel
Definition:
bwRectangle.h:114
bwidgets
widgets
bwContainerWidget.h
Generated by
1.9.3