bWidgets
Core widget toolkit designed for Blender
bwWidgetBaseStyle.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
bwColor.h
"
4
5
namespace
bWidgets
{
6
7
enum class
TextAlignment
;
8
class
bwStyleProperties;
9
14
class
bwWidgetBaseStyle
{
15
public
:
16
bwWidgetBaseStyle
();
17
18
void
registerProperties
(
bwStyleProperties
& style_properties);
19
20
auto
backgroundColor
()
const
->
const
bwColor
&;
21
auto
textColor
()
const
->
const
bwColor
&;
22
auto
borderColor
()
const
->
const
bwColor
&;
23
auto
decorationColor
()
const
->
const
bwColor
&;
24
auto
shadeTop
()
const
-> float;
25
auto
shadeBottom
()
const
-> float;
26
27
auto
isBorderVisible
()
const
-> bool;
28
29
bwColor
background_color
;
30
bwColor
text_color
;
31
bwColor
border_color
;
32
bwColor
decoration_color
;
33
34
int
shade_top
{0};
35
int
shade_bottom
{
36
0};
// TODO could make this a char - or support gradient for background_color even.
37
enum
TextAlignment
text_alignment
;
// Default value set in constructor.
38
unsigned
int
roundbox_corners
;
// Default value set in constructor.
39
float
corner_radius
{
40
0.0f};
// TODO Utility function for calculating final radius (roundbox_radius * dpi_fac).
41
};
42
43
}
// namespace bWidgets
bwColor.h
bWidgets::bwColor
Definition:
bwColor.h:5
bWidgets::bwStyleProperties
Manage a list of properties (bwStyleProperty instances).
Definition:
bwStyleProperties.h:77
bWidgets::bwWidgetBaseStyle
Properties for typical widgets with roundbox corners.
Definition:
bwWidgetBaseStyle.h:14
bWidgets::bwWidgetBaseStyle::border_color
bwColor border_color
Definition:
bwWidgetBaseStyle.h:31
bWidgets::bwWidgetBaseStyle::corner_radius
float corner_radius
Definition:
bwWidgetBaseStyle.h:39
bWidgets::bwWidgetBaseStyle::bwWidgetBaseStyle
bwWidgetBaseStyle()
Definition:
bwWidgetBaseStyle.cc:10
bWidgets::bwWidgetBaseStyle::decoration_color
bwColor decoration_color
Definition:
bwWidgetBaseStyle.h:32
bWidgets::bwWidgetBaseStyle::text_alignment
enum TextAlignment text_alignment
Definition:
bwWidgetBaseStyle.h:37
bWidgets::bwWidgetBaseStyle::roundbox_corners
unsigned int roundbox_corners
Definition:
bwWidgetBaseStyle.h:38
bWidgets::bwWidgetBaseStyle::textColor
auto textColor() const -> const bwColor &
Definition:
bwWidgetBaseStyle.cc:37
bWidgets::bwWidgetBaseStyle::shade_bottom
int shade_bottom
Definition:
bwWidgetBaseStyle.h:35
bWidgets::bwWidgetBaseStyle::backgroundColor
auto backgroundColor() const -> const bwColor &
Definition:
bwWidgetBaseStyle.cc:32
bWidgets::bwWidgetBaseStyle::shade_top
int shade_top
Definition:
bwWidgetBaseStyle.h:34
bWidgets::bwWidgetBaseStyle::registerProperties
void registerProperties(bwStyleProperties &style_properties)
Definition:
bwWidgetBaseStyle.cc:19
bWidgets::bwWidgetBaseStyle::decorationColor
auto decorationColor() const -> const bwColor &
Definition:
bwWidgetBaseStyle.cc:47
bWidgets::bwWidgetBaseStyle::borderColor
auto borderColor() const -> const bwColor &
Definition:
bwWidgetBaseStyle.cc:42
bWidgets::bwWidgetBaseStyle::shadeBottom
auto shadeBottom() const -> float
Definition:
bwWidgetBaseStyle.cc:57
bWidgets::bwWidgetBaseStyle::text_color
bwColor text_color
Definition:
bwWidgetBaseStyle.h:30
bWidgets::bwWidgetBaseStyle::isBorderVisible
auto isBorderVisible() const -> bool
Definition:
bwWidgetBaseStyle.cc:62
bWidgets::bwWidgetBaseStyle::background_color
bwColor background_color
Definition:
bwWidgetBaseStyle.h:29
bWidgets::bwWidgetBaseStyle::shadeTop
auto shadeTop() const -> float
Definition:
bwWidgetBaseStyle.cc:52
bWidgets
Definition:
bwContext.h:3
bWidgets::TextAlignment
TextAlignment
Definition:
bwPainter.h:27
bwidgets
styling
bwWidgetBaseStyle.h
Generated by
1.9.3