blob: 69565cadfce7815918e2a402605211400e74897b (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 | #pragma once
#include "../properties/ThicknessPropertyEditor.h"
#include "StylerEditor.h"
#include "cru/base/ClonablePtr.h"
#include "cru/ui/style/Styler.h"
namespace cru::theme_builder::components::stylers {
class PaddingStylerEditor : public StylerEditor {
 public:
  PaddingStylerEditor();
  ~PaddingStylerEditor() override;
  ClonablePtr<ui::style::PaddingStyler> GetValue();
  void SetValue(ui::style::PaddingStyler* styler, bool trigger_change = true);
  void SetValue(const ClonablePtr<ui::style::PaddingStyler>& styler,
                bool trigger_change = true) {
    SetValue(styler.get(), trigger_change);
  }
  ClonablePtr<ui::style::Styler> GetStyler() override { return GetValue(); }
 private:
  properties::ThicknessPropertyEditor thickness_editor_;
};
}  // namespace cru::theme_builder::components::stylers
 |