3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/GameEventNotification.h"
8#include "mc/client/gui/SceneType.h"
9#include "mc/client/gui/ViewRequest.h"
10#include "mc/client/gui/screens/ScreenViewCommand.h"
11#include "mc/client/gui/screens/interfaces/IScreenController.h"
12#include "mc/deps/input/enums/ButtonState.h"
13#include "mc/platform/brstd/move_only_function.h"
33namespace Json {
class Value; }
34namespace mce {
class Color; }
45 enum class PreviousButtonStateRequirement :
int {
53 enum class SliderChangeType :
int {
61 using FocusMoveEventHandlerCallback =
62 ::brstd::move_only_function<::ui::ViewRequest(::FocusMoveScreenEventData&)
const>;
64 using InputModeChangedEventHandlerCallback =
65 ::brstd::move_only_function<::ui::ViewRequest(::InputModeChangeScreenEventData&)
const>;
67 using PointerHeldEventHandlerCallback =
68 ::brstd::move_only_function<::ui::ViewRequest(::PointerHeldScreenEventData&)
const>;
70 using ButtonEventHandlerCallback = ::brstd::move_only_function<::ui::ViewRequest(::UIPropertyBag*)
const>;
72 using TextEventHandlerCallback =
73 ::brstd::move_only_function<::ui::ViewRequest(::TextEditScreenEventData&,
int)
const>;
75 using ToggleChangeEventHandlerCallback =
76 ::brstd::move_only_function<::ui::ViewRequest(::ToggleChangeEventData&)
const>;
78 using TextEditSelectedStateChangeEventHandlerCallback =
79 ::brstd::move_only_function<::ui::ViewRequest(::TextEditSelectedStateChangeEventData&)
const>;
81 using SliderChangeEventHandlerCallback = ::brstd::move_only_function<::ui::ViewRequest(
int,
float)
const>;
83 using AnimationEventHandlerCallback = ::brstd::move_only_function<::ui::ViewRequest() const>;
85 using RawInputEventHandlerCallback =
86 ::brstd::move_only_function<::ui::ViewRequest(::RawInputScreenEventData&) const>;
88 using ClippedCollectionEventHandlerCallback =
89 ::brstd::move_only_function<::ui::ViewRequest(
int,
int, ::UIPropertyBag&) const>;
91 using ClipStateChangeEventHandlerCallback =
92 ::brstd::move_only_function<::ui::ViewRequest(
bool, ::UIPropertyBag&) const>;
94 using CustomRendererEventHandlerCallback = ::brstd::move_only_function<::ui::ViewRequest() const>;
96 using BindPredicate = ::brstd::move_only_function<
bool() const>;
98 using BindStringCallback = ::brstd::move_only_function<::std::
string() const>;
100 using BindBoolCallback = ::brstd::move_only_function<
bool() const>;
102 using BindIntCallback = ::brstd::move_only_function<
int() const>;
104 using BindFloatCallback = ::brstd::move_only_function<
float() const>;
106 using BindGridSizeCallback = ::brstd::move_only_function<::glm::ivec2() const>;
108 using BindGlobalGridSizeCallback = ::brstd::move_only_function<
void(::std::
string const&, ::UIPropertyBag&) const>;
110 using BindColorCallback = ::brstd::move_only_function<::mce::Color() const>;
112 using BindColorWithBagCallback = ::brstd::move_only_function<::mce::Color(::UIPropertyBag&) const>;
114 using BindCollectionPredicate = ::brstd::move_only_function<
bool(
int) const>;
116 using BindStringForCollectionCallback = ::brstd::move_only_function<::std::
string(
int) const>;
118 using BindBoolForCollectionCallback = ::brstd::move_only_function<
bool(
int) const>;
120 using BindFloatForCollectionCallback = ::brstd::move_only_function<
float(
int) const>;
122 using BindIntForCollectionCallback = ::brstd::move_only_function<
int(
int) const>;
124 using BindColorForCollectionCallback = ::brstd::move_only_function<::mce::Color(
int) const>;
126 using BindAnyCollectionPredicate = ::brstd::move_only_function<
bool(::std::
string const&,
int) const>;
128 using BindItemDataForAnyCollectionCallback =
129 ::brstd::move_only_function<::ItemRendererData(::std::
string const&,
int) const>;
131 using BindStringForAnyCollectionCallback =
132 ::brstd::move_only_function<::std::
string(::std::
string const&,
int) const>;
134 using BindBoolForAnyCollectionCallback = ::brstd::move_only_function<
bool(::std::
string const&,
int) const>;
136 using BindIntForAnyCollectionCallback = ::brstd::move_only_function<
int(::std::
string const&,
int) const>;
138 using BindFloatForAnyCollectionCallback = ::brstd::move_only_function<
float(::std::
string const&,
int) const>;
140 using BindDoubleForAnyCollectionCallback = ::brstd::move_only_function<
double(::std::
string const&,
int) const>;
142 using BindForAnyCollectionCallback =
143 ::brstd::move_only_function<
void(
int, ::std::
string const&, ::UIPropertyBag&) const>;
145 using BindForCollectionCallback =
146 ::brstd::move_only_function<
void(::std::
string const&,
int, ::std::
string const&, ::UIPropertyBag&) const>;
148 using BindForGlobalCallback = ::brstd::move_only_function<
void(::std::
string const&, ::UIPropertyBag&) const>;
150 using ButtonEventCallbackKey = ::std::tuple<uint, ::ButtonState>;
152 using ButtonEventCallbackInfo = ::std::tuple<
153 ::ScreenController::PreviousButtonStateRequirement,
154 ::brstd::move_only_function<::ui::ViewRequest(::UIPropertyBag*) const>>;
156 using ButtonEventCallbackInfoVector = ::std::vector<::std::tuple<
157 ::ScreenController::PreviousButtonStateRequirement,
158 ::brstd::move_only_function<::ui::ViewRequest(::UIPropertyBag*) const>>>;
160 using ButtonEventCallbackMap = ::std::unordered_map<
161 ::std::tuple<uint, ::ButtonState>,
162 ::std::vector<::std::tuple<
163 ::ScreenController::PreviousButtonStateRequirement,
164 ::brstd::move_only_function<::ui::ViewRequest(::UIPropertyBag*) const>>>,
166 ::std::equal_to<::std::tuple<uint, ::ButtonState>>>;
168 using ButtonInteractedEventCallbackVector =
169 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::UIPropertyBag*) const>>;
171 using ButtonInteractedEventCallbackMap = ::std::
172 unordered_map<uint, ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::UIPropertyBag*) const>>>;
174 using ToggleChangeEventCallbackVector =
175 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::ToggleChangeEventData&) const>>;
177 using ToggleChangeEventCallbackMap = ::std::unordered_map<
179 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::ToggleChangeEventData&) const>>>;
181 using TextEditSelectedStateChangeEventCallbackVector =
182 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::TextEditSelectedStateChangeEventData&) const>>;
184 using TextEditSelectedStateChangeEventCallbackMap = ::std::unordered_map<
186 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::TextEditSelectedStateChangeEventData&) const>>>;
188 using SliderChangeEventHandlerCallbackInfo = ::std::
189 tuple<::ScreenController::SliderChangeType, ::brstd::move_only_function<::ui::ViewRequest(
int,
float) const>>;
191 using SliderChangeEventCallbackVector = ::std::vector<::std::tuple<
192 ::ScreenController::SliderChangeType,
193 ::brstd::move_only_function<::ui::ViewRequest(
int,
float) const>>>;
195 using SliderChangeEventCallbackMap = ::std::unordered_map<
197 ::std::vector<::std::tuple<
198 ::ScreenController::SliderChangeType,
199 ::brstd::move_only_function<::ui::ViewRequest(
int,
float) const>>>>;
201 using TextEventHandlerCallbackInfo =
202 ::std::tuple<
bool, ::brstd::move_only_function<::ui::ViewRequest(::TextEditScreenEventData&,
int) const>>;
204 using TextEventHandlerCallbackVector = ::std::vector<
205 ::std::tuple<
bool, ::brstd::move_only_function<::ui::ViewRequest(::TextEditScreenEventData&,
int) const>>>;
207 using TextEventHandlerCallbackMap = ::std::unordered_map<
210 ::std::tuple<
bool, ::brstd::move_only_function<::ui::ViewRequest(::TextEditScreenEventData&,
int) const>>>>;
212 using AnimationEventHandlerCallbackVector = ::std::vector<::brstd::move_only_function<::ui::ViewRequest() const>>;
214 using AnimationEventHandlerCallbackMap =
215 ::std::unordered_map<uint, ::std::vector<::brstd::move_only_function<::ui::ViewRequest() const>>>;
217 using ClippedCollectionEventHandlerCallbackVector =
218 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(
int,
int, ::UIPropertyBag&) const>>;
220 using ClippedCollectionEventHandlerCallbackMap = ::std::unordered_map<
222 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(
int,
int, ::UIPropertyBag&) const>>>;
224 using ClipStateChangeHandlerCallbackVector =
225 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(
bool, ::UIPropertyBag&) const>>;
227 using ClipStateChangeEventHandlerCallbackMap = ::std::unordered_map<
229 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(
bool, ::UIPropertyBag&) const>>>;
231 using CustomRendererEventHandlerCallbackVector =
232 ::std::vector<::brstd::move_only_function<::ui::ViewRequest() const>>;
234 using CustomRendererEventHandlerCallbackMap =
235 ::std::unordered_map<uint, ::std::vector<::brstd::move_only_function<::ui::ViewRequest() const>>>;
240 ::ll::TypedStorage<8, 64, ::std::function<
void(::std::
string const&, ::UIPropertyBag const&)>>
241 mControlCreateCallback;
242 ::ll::TypedStorage<8, 64, ::std::function<
void(::std::
string const&, ::std::
string const&)>>
243 mControlDestroyCallback;
244 ::ll::TypedStorage<8, 64, ::std::function<
void(::std::
string const&)>> mControlDestroyAllCallback;
245 ::ll::TypedStorage<8, 64, ::std::function<
void(::std::
string const&)>> mScreenViewSendManualInputEventCallback;
246 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScreenControllerProxy>> mProxy;
247 ::ll::TypedStorage<1, 1,
bool> mCreateInitialized;
248 ::ll::TypedStorage<1, 1,
bool> mInitialized;
249 ::ll::TypedStorage<1, 1,
bool> mUsesErrorInfo;
250 ::ll::TypedStorage<8, 1728, ::ScreenViewCommand> mScreenViewCommand;
251 ::ll::TypedStorage<1, 1,
bool> mIsScrollingLocked;
252 ::ll::TypedStorage<1, 1,
bool> mBindingRefreshRequested;
256 ::std::unordered_map<
257 ::std::tuple<uint, ::ButtonState>,
258 ::std::vector<::std::tuple<
259 ::ScreenController::PreviousButtonStateRequirement,
260 ::brstd::move_only_function<::ui::ViewRequest(::UIPropertyBag*) const>>>,
262 ::std::equal_to<::std::tuple<uint, ::ButtonState>>>>
263 mButtonEventCallbackMap;
268 unordered_map<uint, ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::UIPropertyBag*) const>>>>
269 mButtonInteractedEventCallbackMap;
270 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<::ui::ViewRequest(::RawInputScreenEventData&) const>>
271 mRawInputEventHandlerCallback;
275 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::FocusMoveScreenEventData&) const>>>
276 mFocusMoveEventCallbacks;
280 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::InputModeChangeScreenEventData&) const>>>
281 mInputModeChangedEventCallbacks;
285 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::PointerHeldScreenEventData&) const>>>
286 mPointerHeldEventCallbacks;
290 ::std::unordered_map<
292 ::std::vector<::std::tuple<
294 ::brstd::move_only_function<::ui::ViewRequest(::TextEditScreenEventData&,
int) const>>>>>
295 mTextEditEventCallbackMap;
299 ::std::unordered_map<
301 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(::ToggleChangeEventData&) const>>>>
302 mToggleChangeEventCallbackMap;
306 ::std::unordered_map<
309 ::brstd::move_only_function<::ui::ViewRequest(::TextEditSelectedStateChangeEventData&) const>>>>
310 mTextEditSelectedStateChangeEventCallbackMap;
311 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ScreenController>>> mSubControllers;
315 ::std::unordered_map<
317 ::std::vector<::std::tuple<
318 ::ScreenController::SliderChangeType,
319 ::brstd::move_only_function<::ui::ViewRequest(
int,
float) const>>>>>
320 mSliderChangeEventCallbackMap;
324 ::std::unordered_map<uint, ::std::vector<::brstd::move_only_function<::ui::ViewRequest() const>>>>
325 mAnimationEventCallbackMap;
329 ::std::unordered_map<
331 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(
int,
int, ::UIPropertyBag&) const>>>>
332 mClippedCollectionEventCallbackMap;
336 ::std::unordered_map<
338 ::std::vector<::brstd::move_only_function<::ui::ViewRequest(
bool, ::UIPropertyBag&) const>>>>
339 mClipStateChangeEventCallbackMap;
343 ::std::unordered_map<uint, ::std::vector<::brstd::move_only_function<::ui::ViewRequest() const>>>>
344 mCustomRendererEventHandlerCallbackMap;
348 ::std::unordered_map<uint, ::brstd::move_only_function<
void(::std::
string const&, ::UIPropertyBag&)>>>
353 ::std::unordered_map<uint, ::brstd::move_only_function<
void(
int, ::std::
string const&, ::UIPropertyBag&)>>>
354 mCollectionBindCallbacks;
358 ::std::unordered_map<
360 ::brstd::move_only_function<
void(::std::
string const&,
int, ::std::
string const&, ::UIPropertyBag&)>>>
361 mAnyCollectionBindCallbacks;
362 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mTaskGroup;
366 void registerButtonPressedHandler(
368 ::brstd::move_only_function<::ui::ViewRequest(::UIPropertyBag*) const> callback
371 registerButtonEventHandler(
374 PreviousButtonStateRequirement::NotDown,
379 [[nodiscard]] uint _getNameId(::std::string
const& name)
const {
380 uint hash = 0x811C9DC5u;
381 for (
char const c : name) {
382 hash = (hash ^ c) * 0x01000193u;
394 virtual ~ScreenController() ;
396 virtual ::ui::DirtyFlag tick() ;
398 virtual void preFrameTick() ;
400 virtual ::ui::ViewRequest handleEvent(::ScreenEvent& screenEvent) ;
402 virtual ::std::optional<::std::string> getRoute() const ;
404 virtual
void setScreenState(::std::vector<::std::pair<::std::string_view, ::std::string_view>> const&) ;
406 virtual
void onOpen();
408 virtual
void queueTitleNarration();
410 virtual
void onTerminate();
412 virtual
void onInit();
414 virtual
void onDelete();
416 virtual
bool canExit();
418 virtual ::ui::ViewRequest tryExit();
420 virtual
void onCreation();
422 virtual
void onReload();
424 virtual
void onLeave();
426 virtual
void leaveScreen(::std::
string const& expectedScreenName);
428 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification notification);
431 ::std::
string const& collectionName,
432 uint collectionNameHash,
434 ::std::
string const& bindingName,
435 uint bindingNameHash,
436 ::std::
string const& bindingNameOverride,
441 ::std::
string const& bindingName,
442 uint bindingNameHash,
443 ::std::
string const& bindingNameOverride,
447 virtual
void handleLicenseChanged();
449 virtual
void setAssociatedBlockPos(::BlockPos const& pos);
451 virtual
void setAssociatedEntityUniqueID(::ActorUniqueID const unqiueID);
453 virtual
void setSuspendInput(
bool suspendInput);
455 virtual
void setSuspendDirectionalInput(
bool suspendDirectionalInput);
457 virtual
void setViewCommand(::ScreenViewCommand const& callback);
459 virtual
void addStaticScreenVars(::Json::Value& globalVars);
461 virtual ::std::
string getAdditionalScreenInfo() const;
463 virtual ::std::
string getTelemetryOverride() const;
465 virtual
void addEventProperties(::std::unordered_map<::std::
string, ::std::
string>& eventProperties) const;
467 virtual ::ui::SceneType getSceneType() const;
469 virtual
int getScreenVersion() const;
471 virtual uint getSceneId() const;
473 virtual ::ScreenControllerProxy* getProxy();
475 virtual
void onEntered();
477 virtual
void onScreenPushedAbove();
479 virtual
void onEntering();
481 virtual
bool _doesScreenHaveExitBehavior() const;
483 virtual
bool _isContainerScreen() const;
489 MCAPI explicit ScreenController(
bool useTaskGroup);
497 ::brstd::move_only_function<
bool() const> callback,
498 ::brstd::move_only_function<
bool() const> condition
501 MCAPI
void bindBoolForAnyCollection(
503 ::brstd::move_only_function<
bool(::
std::
string const&,
int) const> callback,
504 ::brstd::move_only_function<
bool(::
std::
string const&,
int) const> condition
507 MCAPI
void bindBoolForCollection(
510 ::brstd::move_only_function<
bool(
int) const> callback,
511 ::brstd::move_only_function<
bool(
int) const> condition
516 ::brstd::move_only_function<::mce::Color() const> callback,
517 ::brstd::move_only_function<
bool() const> condition
523 ::brstd::move_only_function<::mce::Color(
int) const> callback,
524 ::brstd::move_only_function<
bool(
int) const> condition
529 ::brstd::move_only_function<::mce::Color(::
UIPropertyBag&) const> callback,
530 ::brstd::move_only_function<
bool() const> condition
535 ::brstd::move_only_function<
double(::
std::
string const&,
int) const> callback,
536 ::brstd::move_only_function<
bool(::
std::
string const&,
int) const> condition
539 MCAPI
void bindFloat(
541 ::brstd::move_only_function<
float() const> callback,
542 ::brstd::move_only_function<
bool() const> condition
545 MCAPI
void bindFloatForAnyCollection(
547 ::brstd::move_only_function<
float(::
std::
string const&,
int) const> callback,
548 ::brstd::move_only_function<
bool(::
std::
string const&,
int) const> condition
551 MCAPI
void bindFloatForCollection(
554 ::brstd::move_only_function<
float(
int) const> callback,
555 ::brstd::move_only_function<
bool(
int) const> condition
558 MCAPI
void bindForAnyCollection(
560 ::brstd::move_only_function<
void(
int, ::
std::
string const&, ::
UIPropertyBag&) const> callback,
561 ::brstd::move_only_function<
bool(::
std::
string const&,
int) const> condition
564 MCNAPI
void bindForAnyCollection(
566 ::brstd::move_only_function<
void(::
std::
string const&,
int, ::
std::
string const&, ::
UIPropertyBag&) const>
568 ::brstd::move_only_function<
bool(::
std::
string const&,
int) const> condition
573 ::brstd::move_only_function<
void(::
std::
string const&, ::
UIPropertyBag&) const> callback,
574 ::brstd::move_only_function<
bool() const> condition
577 MCAPI
void bindGridSize(
579 ::brstd::move_only_function<::glm::ivec2() const> callback,
580 ::brstd::move_only_function<
bool() const> condition
585 ::brstd::move_only_function<
int() const> callback,
586 ::brstd::move_only_function<
bool() const> condition
589 MCAPI
void bindIntForAnyCollection(
591 ::brstd::move_only_function<
int(::
std::
string const&,
int) const> callback,
592 ::brstd::move_only_function<
bool(::
std::
string const&,
int) const> condition
595 MCAPI
void bindIntForCollection(
598 ::brstd::move_only_function<
int(
int) const> callback,
599 ::brstd::move_only_function<
bool(
int) const> condition
602 MCAPI
void bindItemDataForAnyCollection(
605 ::brstd::move_only_function<
bool(::
std::
string const&,
int) const> condition
608 MCAPI
void bindString(
610 ::brstd::move_only_function<::
std::
string() const> callback,
611 ::brstd::move_only_function<
bool() const> condition
614 MCAPI
void bindStringForAnyCollection(
616 ::brstd::move_only_function<::
std::
string(::
std::
string const&,
int) const> callback,
617 ::brstd::move_only_function<
bool(::
std::
string const&,
int) const> condition
620 MCAPI
void bindStringForCollection(
623 ::brstd::move_only_function<::
std::
string(
int) const> callback,
624 ::brstd::move_only_function<
bool(
int) const> condition
636 MCAPI
void registerButtonEventHandler(
638 ::ButtonState currentState,
639 ::ScreenController::PreviousButtonStateRequirement previousStateRequirement,
640 ::brstd::move_only_function<::ui::ViewRequest(::
UIPropertyBag*) const> callback
645 ::brstd::move_only_function<::ui::ViewRequest(::
UIPropertyBag*) const> callback
650 ::brstd::move_only_function<::ui::ViewRequest(
bool, ::
UIPropertyBag&) const> callback
655 ::brstd::move_only_function<::ui::ViewRequest(
int,
int, ::
UIPropertyBag&) const> callback
661 MCAPI
void registerSliderChangedEventHandler(
663 ::brstd::move_only_function<::ui::ViewRequest(
int,
float) const> callback
668 ::brstd::move_only_function<::ui::ViewRequest(
int,
float) const> callback
673 ::brstd::move_only_function<::ui::ViewRequest(
int,
float) const> callback
676 MCAPI
void registerTextEditChangedEventHandler(
681 MCAPI
void registerTextEditFinishedEventHandler(
695 MCAPI
void registerToggleChangeEventHandler(
712 MCAPI
void* $ctor(
bool useTaskGroup);
724 MCAPI ::ui::DirtyFlag $tick();
726 MCFOLD
void $preFrameTick();
728 MCAPI ::ui::ViewRequest $handleEvent(::
ScreenEvent& screenEvent);
730 MCFOLD ::
std::optional<::
std::
string> $getRoute() const;
732 MCFOLD
void $setScreenState(::
std::vector<::
std::pair<::
std::string_view, ::
std::string_view>> const&);
734 MCAPI
void $onOpen();
736 MCAPI
void $queueTitleNarration();
738 MCFOLD
void $onTerminate();
740 MCAPI
void $onInit();
742 MCFOLD
void $onDelete();
744 MCAPI
bool $canExit();
748 MCAPI
void $onCreation();
750 MCFOLD
void $onReload();
752 MCAPI
void $onLeave();
754 MCFOLD
void $leaveScreen(::
std::
string const& expectedScreenName);
756 MCFOLD ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
759 ::
std::
string const& collectionName,
760 uint collectionNameHash,
762 ::
std::
string const& bindingName,
763 uint bindingNameHash,
764 ::
std::
string const& bindingNameOverride,
769 ::
std::
string const& bindingName,
770 uint bindingNameHash,
771 ::
std::
string const& bindingNameOverride,
775 MCFOLD
void $handleLicenseChanged();
777 MCFOLD
void $setAssociatedBlockPos(::
BlockPos const& pos);
779 MCFOLD
void $setAssociatedEntityUniqueID(::
ActorUniqueID const unqiueID);
781 MCFOLD
void $setSuspendInput(
bool suspendInput);
783 MCFOLD
void $setSuspendDirectionalInput(
bool suspendDirectionalInput);
787 MCFOLD
void $addStaticScreenVars(::Json::Value& globalVars);
789 MCFOLD ::
std::
string $getAdditionalScreenInfo() const;
791 MCFOLD ::
std::
string $getTelemetryOverride() const;
793 MCFOLD
void $addEventProperties(::
std::unordered_map<::
std::
string, ::
std::
string>& eventProperties) const;
795 MCFOLD ::ui::SceneType $getSceneType() const;
797 MCFOLD
int $getScreenVersion() const;
799 MCFOLD uint $getSceneId() const;
803 MCFOLD
void $onEntered();
805 MCFOLD
void $onScreenPushedAbove();
807 MCFOLD
void $onEntering();
Definition IScreenController.h:5
Definition ScreenControllerProxy.h:5
Definition ScreenController.h:5
MCAPI void _registerSubController(::std::shared_ptr<::ScreenController > controller)
MCAPI void bindForGlobalGridSize(::StringHash const &bindingName, ::brstd::move_only_function< void(::std::string const &, ::UIPropertyBag &) const > callback, ::brstd::move_only_function< bool() const > condition)
MCAPI void bindColorForCollection(::StringHash const &collectionName, ::StringHash const &bindingName, ::brstd::move_only_function<::mce::Color(int) const > callback, ::brstd::move_only_function< bool(int) const > condition)
MCAPI void registerClippedCollectionEventHandler(::StringHash const &collectionName, ::brstd::move_only_function<::ui::ViewRequest(int, int, ::UIPropertyBag &) const > callback)
MCAPI void registerButtonInteractedHandler(uint buttonId, ::brstd::move_only_function<::ui::ViewRequest(::UIPropertyBag *) const > callback)
MCAPI void setControlFactoryDestroyCallback(::std::function< void(::std::string const &, ::std::string const &)> callback)
MCAPI void bindInt(::StringHash const &bindingName, ::brstd::move_only_function< int() const > callback, ::brstd::move_only_function< bool() const > condition)
MCAPI void setControlFactoryDestroyAllCallback(::std::function< void(::std::string const &)> callback)
MCAPI void registerSliderNotFinishedEventHandler(uint buttonId, ::brstd::move_only_function<::ui::ViewRequest(int, float) const > callback)
MCAPI void registerTextEditSelectedStateChangeEventHandler(uint buttonId, ::brstd::move_only_function<::ui::ViewRequest(::TextEditSelectedStateChangeEventData &) const > callback)
MCAPI::ui::ViewRequest _handleEvent(::ScreenEvent &screenEvent)
MCAPI bool $_isContainerScreen() const
MCAPI void registerClipStateChangeEventHandler(uint eventId, ::brstd::move_only_function<::ui::ViewRequest(bool, ::UIPropertyBag &) const > callback)
MCAPI void setControlFactoryCreateCallback(::std::function< void(::std::string const &, ::UIPropertyBag const &)> callback)
MCAPI bool consumeBindingRefreshRequest()
MCAPI void registerCustomRendererEventHandler(uint eventId, ::brstd::move_only_function<::ui::ViewRequest() const > callback)
MCAPI void queueAsyncTask(::brstd::move_only_function<::TaskResult()> &&task, ::std::function< void()> &&callback)
MCAPI void registerSliderFinishedEventHandler(uint buttonId, ::brstd::move_only_function<::ui::ViewRequest(int, float) const > callback)
MCAPI void registerTextEventHandler(::brstd::move_only_function<::ui::ViewRequest(::TextEditScreenEventData &, int) const > callback)
MCAPI bool hasFinishedAsyncTasks() const
MCAPI void bindDoubleForAnyCollection(::StringHash const &bindingName, ::brstd::move_only_function< double(::std::string const &, int) const > callback, ::brstd::move_only_function< bool(::std::string const &, int) const > condition)
MCAPI void bindColor(::StringHash const &bindingName, ::brstd::move_only_function<::mce::Color() const > callback, ::brstd::move_only_function< bool() const > condition)
MCAPI void bindColorWithPropertyBag(::StringHash const &bindingName, ::brstd::move_only_function<::mce::Color(::UIPropertyBag &) const > callback, ::brstd::move_only_function< bool() const > condition)
MCAPI bool $_doesScreenHaveExitBehavior() const
MCAPI::ui::ViewRequest $tryExit()
MCAPI void registerAnimationEventHandler(uint eventId, ::brstd::move_only_function<::ui::ViewRequest() const > callback)
Definition StringHash.h:5
Definition TaskGroup.h:85
Definition TaskResult.h:5
Definition UIPropertyBag.h:5
Definition ActorUniqueID.h:5
Definition FocusMoveScreenEventData.h:5
Definition ItemRendererData.h:5
Definition PointerHeldScreenEventData.h:5
Definition ScreenEvent.h:5
Definition ScreenViewCommand.h:5
Definition TextEditScreenEventData.h:5
Definition TextEditSelectedStateChangeEventData.h:5
Definition ToggleChangeEventData.h:5