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 struct {
24 ::ll::TypedStorage<4, 4, float> mFactor;
25 ::ll::TypedStorage<8, 8, ::UIControl*> mParent;
26 } mFactorAndParent;
27 struct {
28 ::ll::TypedStorage<1, 1, ::ui::OrientationType> mRescalingType;
29 ::ll::TypedStorage<4, 4, int> mCollectionIndex;
30 } mRescalingAndIndex;
31 struct {
32 ::ll::TypedStorage<1, 1, ::ui::OrientationType> mRescalingType;
33 ::ll::TypedStorage<1, 1, ::LayoutVariableType> mDimensionType;
34 } mRescalingAndDimension;
35 } mData;
36 ::ll::TypedStorage<8, 24, ::std::vector<::VariableRef>> mDependentVariables;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI float compute(::UIControl& control, ::LayoutVariableType sizeType) const;
43
44 MCAPI void removeDependsOnMeEntries();
45
46 MCAPI ::std::string toString(::UIControl& control) const;
47 // NOLINTEND
48};
Definition LayoutRuleTerm.h:5
Definition UIControl.h:5
Definition VariableRef.h:5