bWidgets
Core widget toolkit designed for Blender
bwStyle.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <array>
4
#include <string>
5
6
namespace
bWidgets
{
7
8
class
bwWidget;
9
10
class
bwStyle
{
11
public
:
12
enum class
TypeID
{
13
CLASSIC,
14
CLASSIC_CSS,
15
FLAT_GREY,
16
FLAT_DARK,
17
FLAT_LIGHT,
18
19
BUILTIN_TOT,
20
21
// STYLE_CUSTOM, // For the future
22
};
23
24
struct
StyleType
{
25
TypeID
type_id
;
26
std::string
name
;
27
};
28
29
virtual
~bwStyle
() =
default
;
30
31
virtual
void
setWidgetStyle
(
bwWidget
& widget) = 0;
32
virtual
void
polish
(
bwWidget
&);
33
34
static
unsigned
int
s_default_widget_size_hint
;
35
36
TypeID
type_id
;
37
float
dpi_fac
{1.0f};
38
39
protected
:
40
bwStyle
(
TypeID
type_id
);
41
};
42
43
}
// namespace bWidgets
bWidgets::bwStyle
Definition:
bwStyle.h:10
bWidgets::bwStyle::bwStyle
bwStyle(TypeID type_id)
Definition:
bwStyle.cc:9
bWidgets::bwStyle::polish
virtual void polish(bwWidget &)
Definition:
bwStyle.cc:13
bWidgets::bwStyle::dpi_fac
float dpi_fac
Definition:
bwStyle.h:37
bWidgets::bwStyle::~bwStyle
virtual ~bwStyle()=default
bWidgets::bwStyle::type_id
TypeID type_id
Definition:
bwStyle.h:36
bWidgets::bwStyle::setWidgetStyle
virtual void setWidgetStyle(bwWidget &widget)=0
bWidgets::bwStyle::s_default_widget_size_hint
static unsigned int s_default_widget_size_hint
Definition:
bwStyle.h:34
bWidgets::bwStyle::TypeID
TypeID
Definition:
bwStyle.h:12
bWidgets::bwWidget
Abstract base class that all widgets derive from.
Definition:
bwWidget.h:22
bWidgets
Definition:
bwContext.h:3
bWidgets::bwStyle::StyleType
Definition:
bwStyle.h:24
bWidgets::bwStyle::StyleType::type_id
TypeID type_id
Definition:
bwStyle.h:25
bWidgets::bwStyle::StyleType::name
std::string name
Definition:
bwStyle.h:26
bwidgets
styling
bwStyle.h
Generated by
1.9.3