aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/properties/FontPropertyEditor.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-05-15 14:15:31 +0800
committercrupest <crupest@outlook.com>2022-05-15 14:15:31 +0800
commit34a64e6ffefaab007578932ddbab931a25f1d56e (patch)
tree541fdb8279e829a129df62288d09916bf23c9200 /src/theme_builder/components/properties/FontPropertyEditor.h
parent8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6 (diff)
downloadcru-34a64e6ffefaab007578932ddbab931a25f1d56e.tar.gz
cru-34a64e6ffefaab007578932ddbab931a25f1d56e.tar.bz2
cru-34a64e6ffefaab007578932ddbab931a25f1d56e.zip
...
Diffstat (limited to 'src/theme_builder/components/properties/FontPropertyEditor.h')
-rw-r--r--src/theme_builder/components/properties/FontPropertyEditor.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/theme_builder/components/properties/FontPropertyEditor.h b/src/theme_builder/components/properties/FontPropertyEditor.h
deleted file mode 100644
index d349f1f2..00000000
--- a/src/theme_builder/components/properties/FontPropertyEditor.h
+++ /dev/null
@@ -1,38 +0,0 @@
-#pragma once
-#include "../Editor.h"
-#include "cru/platform/graphics/Font.h"
-#include "cru/ui/components/Input.h"
-#include "cru/ui/controls/Control.h"
-#include "cru/ui/controls/FlexLayout.h"
-#include "cru/ui/controls/TextBlock.h"
-#include "cru/ui/controls/TextBox.h"
-
-namespace cru::theme_builder::components::properties {
-class FontPropertyEditor : public Editor {
- public:
- using PropertyType = std::shared_ptr<platform::graphics::IFont>;
-
- FontPropertyEditor();
- ~FontPropertyEditor() override;
-
- ui::controls::Control* GetRootControl() override;
-
- String GetLabelText() const { return label_.GetText(); }
- void SetLabelText(String label) { label_.SetText(std::move(label)); }
-
- std::shared_ptr<platform::graphics::IFont> GetValue() const;
- void SetValue(std::shared_ptr<platform::graphics::IFont> value,
- bool trigger_change = true);
-
- private:
- ui::controls::FlexLayout main_container_;
- ui::controls::TextBlock label_;
- ui::controls::FlexLayout right_container_;
- ui::controls::FlexLayout font_family_container_;
- ui::controls::TextBlock font_family_label_;
- ui::controls::TextBox font_family_text_;
- ui::controls::FlexLayout font_size_container_;
- ui::controls::TextBlock font_size_label_;
- ui::components::FloatInput font_size_input_;
-};
-} // namespace cru::theme_builder::components::properties