メインコンテンツまでスキップ

Struct LayoutStyle

Properties that affect the layout. Changing them re-runs the layout of the panel.

Assembly: Yaui.dll​
View Source​
Declaration
[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​
Declaration
public static LayoutStyle Default { get; }

Fields​

position​

View Source​
Declaration
public PositionType position

inset​

View Source​
Declaration
public Edges inset

direction​

View Source​
Declaration
public FlexDirection direction

wrap​

View Source​
Declaration
public FlexWrap wrap

justifyContent​

View Source​
Declaration
public FlexJustify justifyContent

alignItems​

View Source​
Declaration
public FlexAlign alignItems

alignSelf​

View Source​
Declaration
public FlexAlign alignSelf

alignContent​

View Source​
Declaration
public FlexAlign alignContent

grow​

View Source​
Declaration
public float grow

shrink​

View Source​
Declaration
public float shrink

basis​

View Source​
Declaration
public Length basis

width​

View Source​
Declaration
public Length width

height​

View Source​
Declaration
public Length height

minWidth​

View Source​
Declaration
public Length minWidth

minHeight​

View Source​
Declaration
public Length minHeight

maxWidth​

View Source​
Declaration
public Length maxWidth

maxHeight​

View Source​
Declaration
public Length maxHeight

margin​

View Source​
Declaration
public Edges margin

padding​

View Source​
Declaration
public Edges padding

gap​

x: between columns, y: between rows.

View Source​
Declaration
public Vector2 gap

Methods​

Equals(LayoutStyle)​

Indicates whether the current object is equal to another object of the same type.

View Source​
Declaration
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​
TypeNameDescription
Yaui.LayoutStyleotherAn object to compare with this object.

Equals(object)​

Indicates whether this instance and a specified object are equal.

View Source​
Declaration
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​
TypeNameDescription
System.ObjectobjThe object to compare with the current instance.

GetHashCode()​

Returns the hash code for this instance.

View Source​
Declaration
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>