3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/screens/LayoutRule.h"
8#include "mc/client/gui/screens/LayoutVariableStringType.h"
9#include "mc/client/gui/screens/LayoutVariableType.h"
30 ::ll::TypedStorage<4, 4, float> mValue;
31 ::ll::TypedStorage<8, 24, ::LayoutRule> mRule;
39 ::ll::TypedStorage<8, 32, ::LayoutVariable::RuleValue> mMinValue;
40 ::ll::TypedStorage<8, 32, ::LayoutVariable::RuleValue> mMaxValue;
47 ::ll::TypedStorage<8, 8, ::UIControl&> mControl;
48 ::ll::TypedStorage<8, 24, ::std::vector<::VariableRef>> mDependsOnMe;
49 ::ll::TypedStorage<8, 32, ::LayoutVariable::RuleValue> mRuleValue;
50 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LayoutVariable::MinMaxRuleValue>> mMinMaxValue;
51 ::ll::TypedStorage<1, 1, ::LayoutVariableType> mType;
52 bool mIsSatisfied : 1;
53 bool mIsOverriden : 1;
58 LayoutVariable& operator=(LayoutVariable
const&);
59 LayoutVariable(LayoutVariable
const&);
65 MCAPI
float _getMaxSiblingValue()
const;
67 MCAPI
void _initialize(
bool checkForDuplicates);
69 MCAPI
void _invalidate(::std::function<
void(::VariableRef
const&)> invalidCallback,
bool forceInvalidation);
72 _invalidateDependencies(::std::function<
void(::VariableRef
const&)> invalidCallback,
bool forceInvalidation);
74 MCAPI
bool isSatisfiable()
const;
76 MCAPI
void overrideRenderableLayoutRule(::UIControl& control, ::LayoutVariableType type);
78 MCAPI
void removeDeadDependencies();
80 MCAPI
void removeDependencies();
82 MCAPI ::ui::DirtyFlag satisfy();
84 MCAPI
void setOverrideValue(
float inValue);
86 MCAPI
void setRelativeLayoutRule(::UIControl& control, ::UIControl& relativeTo, ::LayoutVariableType
const type);
88 MCAPI ::std::string toString(::LayoutVariableStringType type)
const;
90 MCAPI ~LayoutVariable();
Definition LayoutVariable.h:5
Definition VariableRef.h:5
Definition LayoutVariable.h:16
Definition LayoutVariable.h:14