Struct LayoutStyle
Properties that affect the layout. Changing them re-runs the layout of the panel.
Assembly: Yaui.dll
View Source
[Serializable]
public struct LayoutStyle : IEquatable<LayoutStyle>
Implements:
System.IEquatable<Yaui.LayoutStyle>
Properties
Default
CSS defaults, except that the direction is a column as in Yoga and UI Toolkit.
View Source
public static LayoutStyle Default { get; }
Fields
position
View Source
public PositionType position
inset
View Source
public Edges inset
direction
View Source
public FlexDirection direction
wrap
View Source
public FlexWrap wrap
justifyContent
View Source
public FlexJustify justifyContent
alignItems
View Source
public FlexAlign alignItems
alignSelf
View Source
public FlexAlign alignSelf
alignContent
View Source
public FlexAlign alignContent
grow
View Source
public float grow
shrink
View Source
public float shrink
basis
View Source
public Length basis
width
View Source
public Length width
height
View Source
public Length height
minWidth
View Source
public Length minWidth
minHeight
View Source
public Length minHeight
maxWidth
View Source
public Length maxWidth
maxHeight
View Source
public Length maxHeight
margin
View Source
public Edges margin
padding
View Source
public Edges padding
gap
x: between columns, y: between rows.
View Source
public Vector2 gap
Methods
Equals(LayoutStyle)
Indicates whether the current object is equal to another object of the same type.
View Source
public bool Equals(LayoutStyle other)
Returns
System.Boolean: true if the current object is equal to the <code class="paramref">other</code> parameter; otherwise, false.
Parameters
| Type | Name | Description |
|---|---|---|
| Yaui.LayoutStyle | other | An object to compare with this object. |
Equals(object)
Indicates whether this instance and a specified object are equal.
View Source
public override bool Equals(object obj)
Returns
System.Boolean: true if <code class="paramref">obj</code> and this instance are the same type and represent the same value; otherwise, false.
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | obj | The object to compare with the current instance. |
GetHashCode()
Returns the hash code for this instance.
View Source
public override int GetHashCode()
Returns
System.Int32: A 32-bit signed integer that is the hash code for this instance.
Implements
System.IEquatable<Yaui.LayoutStyle>