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
8namespace bWidgets {
9
14 public:
16
17 static auto getStyleManager() -> bwStyleManager&;
18 static auto createStyleFromTypeID(bwStyle::TypeID type_id) -> std::unique_ptr<bwStyle>;
19
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
Singleton class for managing styles through type ID's.
Definition: bwStyleManager.h:13
void registerDefaultStyleTypes()
Definition: bwStyleManager.cc:39
auto getBuiltinStyleTypes() const -> const StyleTypeArray &
Definition: bwStyleManager.cc:57
static auto createStyleFromTypeID(bwStyle::TypeID type_id) -> std::unique_ptr< bwStyle >
Definition: bwStyleManager.cc:18
std::array< bwStyle::StyleType, int(bwStyle::TypeID::BUILTIN_TOT)> StyleTypeArray
Definition: bwStyleManager.h:15
static auto getStyleManager() -> bwStyleManager &
Definition: bwStyleManager.cc:12
TypeID
Definition: bwStyle.h:12
Definition: bwContext.h:3
Definition: bwStyle.h:24