40 #ifndef _uisizinginfo_h
41 #define _uisizinginfo_h
43 #include "uienumerations.h"
44 #include "UI/unifieddim.h"
95 USize(Size), RatioLock(UI::
ARL_Ratio_Unlocked), VerticalRules(VRules), HorizontalRules(HRules) { }
99 USize(Other.USize), MaxSize(Other.MaxSize), MinSize(Other.MinSize), RatioLock(Other.RatioLock),
100 VerticalRules(Other.VerticalRules), HorizontalRules(Other.HorizontalRules) { }
118 {
return (this->CanExpandHorizontally() || this->CanExpandVertically()); }
128 return ( this->USize == Other.
USize &&
129 this->MaxSize == Other.
MaxSize &&
130 this->MinSize == Other.
MinSize &&
140 return ( this->USize != Other.
USize ||
141 this->MaxSize != Other.
MaxSize ||
142 this->MinSize != Other.
MinSize ||
163 this->MinSize.ProtoSerialize( MinSizeNode );
166 this->MaxSize.ProtoSerialize( MaxSizeNode );
169 this->USize.ProtoSerialize( USizeNode );
184 if( !CurrAttrib.
Empty() )
185 this->HorizontalRules = static_cast<UI::SizingRules>(CurrAttrib.
AsUint());
188 if( !CurrAttrib.
Empty() )
189 this->VerticalRules = static_cast<UI::SizingRules>(CurrAttrib.
AsUint());
192 if( !CurrAttrib.
Empty() )
193 this->RatioLock = static_cast<UI::AspectRatioLock>(CurrAttrib.
AsUint());
196 if( !MinSizeNode.
Empty() )
197 this->MinSize.ProtoDeSerialize(MinSizeNode);
200 if( !MaxSizeNode.
Empty() )
201 this->MaxSize.ProtoDeSerialize(MaxSizeNode);
204 if( !USizeNode.
Empty() )
205 this->USize.ProtoDeSerialize(USizeNode);