LeviLamina
Loading...
Searching...
No Matches
UIPropertyBag.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/PropertyBag.h"
7
8// auto generated forward declare list
9// clang-format off
10struct UIControl;
11namespace Json { class Value; }
12namespace mce { class Color; }
13// clang-format on
14
16public:
17 // UIPropertyBag inner types declare
18 // clang-format off
19 struct ContextObject;
21 // clang-format on
22
23 // UIPropertyBag inner types define
24 struct ContextObject {};
25
26 using PropertyChangedNotificationCallback = ::std::function<void(
27 ::std::weak_ptr<::UIControl> const&,
28 ::std::string_view,
29 ::Json::Value const&,
31 )>;
32
34
35 using PropertyChangedNotificationInfoVector = ::std::vector<::UIPropertyBag::PropertyChangedNotificationInfo>;
36
37 using PropertyInfoList =
38 ::std::map<::std::string, ::std::vector<::UIPropertyBag::PropertyChangedNotificationInfo>, ::std::less<void>>;
39
40public:
41 // member variables
42 // NOLINTBEGIN
43 ::ll::TypedStorage<
44 8,
45 16,
46 ::std::map<::std::string, ::std::vector<::UIPropertyBag::PropertyChangedNotificationInfo>, ::std::less<void>>>
47 mPropertyChangedNotificationInfoMap;
48 // NOLINTEND
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 // vIndex: 0
54 virtual ~UIPropertyBag();
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCNAPI UIPropertyBag();
61
63 ::std::string_view sourcePropertyName,
64 ::Json::Value const& newValue,
66 );
67
69
70 MCNAPI ::std::unique_ptr<::UIPropertyBag> clone() const;
71
73 ::std::string const& sourcePropertyName,
74 ::std::string const& targetPropertyName,
75 ::std::weak_ptr<::UIControl> targetControl,
76 ::std::function<void(
77 ::std::weak_ptr<::UIControl> const&,
78 ::std::string_view,
79 ::Json::Value const&,
81 )> callback
82 );
83
84 MCNAPI void set(::std::string_view key, ::mce::Color color);
85
86 MCNAPI void set(::std::string_view key, ::glm::ivec2 gridSize);
87
88 MCNAPI void set(::std::string_view key, ::glm::vec2 uv);
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94 MCNAPI void* $ctor();
95 // NOLINTEND
96
97public:
98 // destructor thunk
99 // NOLINTBEGIN
100 MCNAPI void $dtor();
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCNAPI static void** $vftable();
107 // NOLINTEND
108};
Definition Value.h:16
Definition PropertyBag.h:8
Definition UIPropertyBag.h:15
MCAPI void set(::std::string_view key, ::mce::Color color)
MCAPI void registerForPropertyChangedNotification(::std::string const &sourcePropertyName, ::std::string const &targetPropertyName, ::std::weak_ptr<::UIControl > targetControl, ::std::function< void(::std::weak_ptr<::UIControl > const &, ::std::string_view, ::Json::Value const &, ::UIPropertyBag::ContextObject)> callback)
MCAPI void set(::std::string_view key, ::glm::ivec2 gridSize)
static MCAPI void ** $vftable()
MCAPI void set(::std::string_view key, ::glm::vec2 uv)
MCAPI ::std::unique_ptr<::UIPropertyBag > clone() const
MCAPI void $dtor()
MCAPI UIPropertyBag()
MCAPI void _handlePropertyChangedNotifications(::std::string_view sourcePropertyName, ::Json::Value const &newValue, ::UIPropertyBag::ContextObject context)
MCAPI void clearWeakRegistrations()
MCAPI void * $ctor()
Definition Color.h:7
Definition UIControl.h:5
Definition UIPropertyBag.h:20