LeviLamina
Loading...
Searching...
No Matches
ControlOptionEditorControl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/input/TouchControl.h"
7#include "mc/deps/input/TouchControlEditorState.h"
8
9// auto generated forward declare list
10// clang-format off
12class InputEventQueue;
14class RectangleArea;
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 64, ::std::function<float()>> mWYSIWYGHUDState;
23 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mCondition;
24 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mMainPanelArea;
25 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mSubPanelArea;
26 ::ll::TypedStorage<8, 24, ::std::vector<::std::function<::RectangleArea()>>> mReservedAreas;
27 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::ControlConfiguration>>> mConfigurations;
28 ::ll::TypedStorage<4, 4, ::TouchControlEditorState> mEditorState;
29 ::ll::TypedStorage<4, 4, int> mActivePointer;
30 ::ll::TypedStorage<8, 8, double> mStartMoveTime;
31 ::ll::TypedStorage<4, 4, float> mStartX;
32 ::ll::TypedStorage<4, 4, float> mStartY;
33 ::ll::TypedStorage<4, 4, uint> mSelectedConfigId;
34 ::ll::TypedStorage<4, 4, int> mSelectAllPointer;
35 ::ll::TypedStorage<4, 4, int> mActiveInteractingWithScaleSliderPointer;
36 ::ll::TypedStorage<8, 8, double> mLastBumpSoundTime;
37 ::ll::TypedStorage<1, 1, bool> mHasDoneInitialCollisionCheck;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 ControlOptionEditorControl();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual void tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int) /*override*/;
48
49 virtual void render(::InputRenderContext& context) const /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI ControlOptionEditorControl(
56 ::std::function<float()> wysiwygState,
57 ::std::function<::RectangleArea()> area,
58 ::std::function<::RectangleArea()> mainPanelArea,
59 ::std::function<::RectangleArea()> subPanelArea,
60 ::std::function<bool()> condition,
61 ::std::vector<::std::unique_ptr<::ControlConfiguration>> controlConfigurations,
62 ::std::vector<::std::function<::RectangleArea()>> const& reservedAreas
63 );
64
65 MCAPI bool _checkCollisionForPotentialUpdates(
66 ::std::unordered_map<::ControlConfiguration*, float> const& potentialUpdates
67 ) const;
68
69 MCAPI int _getNumberOfActiveControlConfigurations() const;
70
71 MCAPI ::RectangleArea _getRectangleAreaOfConfiguration(::ControlConfiguration* cc) const;
72
73 MCAPI bool _isColliding(::RectangleArea const& rect, uint excludedId) const;
74
75 MCAPI void _playBumpingSound(::InputEventQueue& eventQueue);
76
77 MCAPI void _pushControlsInsideSafeArea();
78
79 MCAPI void _setControlConfigurationActive(::InputEventQueue& eventQueue, ::ControlConfiguration* cc, bool active);
80
81 MCAPI void checkForOverlaps();
82 // NOLINTEND
83
84public:
85 // constructor thunks
86 // NOLINTBEGIN
87 MCAPI void* $ctor(
88 ::std::function<float()> wysiwygState,
89 ::std::function<::RectangleArea()> area,
90 ::std::function<::RectangleArea()> mainPanelArea,
91 ::std::function<::RectangleArea()> subPanelArea,
92 ::std::function<bool()> condition,
93 ::std::vector<::std::unique_ptr<::ControlConfiguration>> controlConfigurations,
94 ::std::vector<::std::function<::RectangleArea()>> const& reservedAreas
95 );
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCAPI void $tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int);
102
103 MCAPI void $render(::InputRenderContext& context) const;
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCNAPI static void** $vftable();
110 // NOLINTEND
111};
Definition ControlConfiguration.h:5
Definition ControlOptionEditorControl.h:5
static MCAPI void ** $vftable()
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition RectangleArea.h:5
Definition TouchControl.h:5
Definition TouchPointResults.h:5