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
6namespace bWidgets {
7
8namespace bwScreenGraph {
9class ContainerNode;
10}
11
13 public:
14 virtual auto getMaskRectangle() -> bwRectanglePixel;
15 virtual auto childrenVisible() const -> bool;
16
17 void registerProperties() override;
18
19 protected:
21 std::optional<unsigned int> width_hint = std::nullopt,
22 std::optional<unsigned int> height_hint = std::nullopt);
23
26
27 public:
29 base_style; // XXX public for setWidgetStyle. Should only be temporarily needed.
30};
31
32} // namespace bWidgets
Definition: bwContainerWidget.h:12
const bwScreenGraph::ContainerNode & node
Definition: bwContainerWidget.h:25
virtual auto childrenVisible() const -> bool
Definition: bwContainerWidget.cc:26
bwWidgetBaseStyle base_style
Definition: bwContainerWidget.h:29
virtual auto getMaskRectangle() -> bwRectanglePixel
Definition: bwContainerWidget.cc:13
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
void registerProperties() override
Definition: bwContainerWidget.cc:33
Node representing a widget with children.
Definition: Node.h:167
Properties for typical widgets with roundbox corners.
Definition: bwWidgetBaseStyle.h:14
Abstract base class that all widgets derive from.
Definition: bwWidget.h:22
unsigned int height_hint
Definition: bwWidget.h:68
unsigned int width_hint
Definition: bwWidget.h:68
Definition: bwContext.h:3
bwRectangle< int > bwRectanglePixel
Definition: bwRectangle.h:114