LeviLamina
Loading...
Searching...
No Matches
LayoutRuleTerm.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/OrientationType.h"
7#include "mc/client/gui/screens/LayoutRuleTermType.h"
8#include "mc/client/gui/screens/LayoutVariableType.h"
9
10// auto generated forward declare list
11// clang-format off
12class UIControl;
13class VariableRef;
14// clang-format on
15
16class LayoutRuleTerm {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, ::LayoutRuleTermType> mType;
21 union {
22 ::ll::TypedStorage<4, 16, float> mConstant;
23 } mData;
24 ::ll::TypedStorage<8, 24, ::std::vector<::VariableRef>> mDependentVariables;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 LayoutRuleTerm();
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI LayoutRuleTerm(::VariableRef const& dependentVariable, float factor, ::LayoutRuleTermType type);
35
36 MCAPI float compute(::UIControl& control, ::LayoutVariableType sizeType) const;
37
38 MCAPI ::std::string toString(::UIControl& control) const;
39 // NOLINTEND
40
41public:
42 // constructor thunks
43 // NOLINTBEGIN
44 MCAPI void* $ctor(::VariableRef const& dependentVariable, float factor, ::LayoutRuleTermType type);
45 // NOLINTEND
46};
Definition LayoutRuleTerm.h:5
Definition UIControl.h:5
Definition VariableRef.h:5