bWidgets
Core widget toolkit designed for Blender
bwStyleManager.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <array>
4
#include <memory>
5
6
#include "
bwStyle.h
"
7
8
namespace
bWidgets
{
9
13
class
bwStyleManager
{
14
public
:
15
using
StyleTypeArray
= std::array<
bwStyle::StyleType
, int(
bwStyle::TypeID::BUILTIN_TOT
)>;
16
17
static
auto
getStyleManager
() ->
bwStyleManager
&;
18
static
auto
createStyleFromTypeID
(
bwStyle::TypeID
type_id) -> std::unique_ptr<bwStyle>;
19
20
void
registerDefaultStyleTypes
();
21
22
auto
getBuiltinStyleTypes
() const -> const
StyleTypeArray
&;
23
24
private:
25
bwStyleManager
() = default;
26
bwStyleManager
(
bwStyleManager
const&) = delete;
27
28
void
operator=(
bwStyleManager
const&) = delete;
29
30
StyleTypeArray
builtin_style_types;
31
// std::vector<StyleType> custom_types;
32
};
33
34
}
// namespace bWidgets
bwStyle.h
bWidgets::bwStyleManager
Singleton class for managing styles through type ID's.
Definition:
bwStyleManager.h:13
bWidgets::bwStyleManager::registerDefaultStyleTypes
void registerDefaultStyleTypes()
Definition:
bwStyleManager.cc:39
bWidgets::bwStyleManager::getBuiltinStyleTypes
auto getBuiltinStyleTypes() const -> const StyleTypeArray &
Definition:
bwStyleManager.cc:57
bWidgets::bwStyleManager::createStyleFromTypeID
static auto createStyleFromTypeID(bwStyle::TypeID type_id) -> std::unique_ptr< bwStyle >
Definition:
bwStyleManager.cc:18
bWidgets::bwStyleManager::StyleTypeArray
std::array< bwStyle::StyleType, int(bwStyle::TypeID::BUILTIN_TOT)> StyleTypeArray
Definition:
bwStyleManager.h:15
bWidgets::bwStyleManager::getStyleManager
static auto getStyleManager() -> bwStyleManager &
Definition:
bwStyleManager.cc:12
bWidgets::bwStyle::TypeID
TypeID
Definition:
bwStyle.h:12
bWidgets::bwStyle::TypeID::BUILTIN_TOT
@ BUILTIN_TOT
bWidgets
Definition:
bwContext.h:3
bWidgets::bwStyle::StyleType
Definition:
bwStyle.h:24
bwidgets
styling
bwStyleManager.h
Generated by
1.9.3