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
48 tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor) /*override*/;
49
50 virtual void render(::InputRenderContext& context) const /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI ControlOptionEditorControl(
57 ::std::function<float()> wysiwygState,
58 ::std::function<::RectangleArea()> area,
59 ::std::function<::RectangleArea()> mainPanelArea,
60 ::std::function<::RectangleArea()> subPanelArea,
61 ::std::function<bool()> condition,
62 ::std::vector<::std::unique_ptr<::ControlConfiguration>> controlConfigurations,
63 ::std::vector<::std::function<::RectangleArea()>> const& reservedAreas
64 );
65
66 MCAPI int _getNumberOfActiveControlConfigurations() const;
67
68 MCAPI ::RectangleArea _getRectangleAreaOfConfiguration(::ControlConfiguration* cc) const;
69
70 MCAPI bool _isColliding(::RectangleArea const& rect, uint excludedId) const;
71
72 MCAPI void _playBumpingSound(::InputEventQueue& eventQueue);
73
74 MCAPI void _pushControlsInsideSafeArea();
75
76 MCAPI void _setControlConfigurationActive(::InputEventQueue& eventQueue, ::ControlConfiguration* cc, bool active);
77
78 MCAPI void checkForOverlaps();
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCAPI void* $ctor(
85 ::std::function<float()> wysiwygState,
86 ::std::function<::RectangleArea()> area,
87 ::std::function<::RectangleArea()> mainPanelArea,
88 ::std::function<::RectangleArea()> subPanelArea,
89 ::std::function<bool()> condition,
90 ::std::vector<::std::unique_ptr<::ControlConfiguration>> controlConfigurations,
91 ::std::vector<::std::function<::RectangleArea()>> const& reservedAreas
92 );
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI void $tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
99
100 MCAPI void $render(::InputRenderContext& context) const;
101 // NOLINTEND
102};
Definition ControlConfiguration.h:5
Definition ControlOptionEditorControl.h:5
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition RectangleArea.h:5
Definition TouchControl.h:5
Definition TouchPointResults.h:5