Version 3.3.0.0

LayoutSize struct

Namespace: Sirenix.Reflection.Editor
Assembly: Sirenix.Reflection.Editor
public struct LayoutSize

Constructors

LayoutSize(Single, SizeMode)
public LayoutSize(float value, SizeMode sizeType)
Parameters
System.Single value

SizeMode sizeType

Fields

Auto
public static LayoutSize Auto
Type
public SizeMode Type
Value
public float Value

Methods

GetSizeInPixels(Single)
public float GetSizeInPixels(float width)
Parameters
System.Single width

Returns
System.Single

Percentage(Single)
public static LayoutSize Percentage(float percentage)
Parameters
System.Single percentage

Returns
LayoutSize

Pixels(Single)
public static LayoutSize Pixels(float pixels)
Parameters
System.Single pixels

Returns
LayoutSize

ToString()
public override string ToString()
Returns
System.String

Operators

Implicit(SizeMode to LayoutSize)
public static implicit operator LayoutSize(SizeMode type)
Parameters
SizeMode type

Returns
LayoutSize

Implicit(Single to LayoutSize)
public static implicit operator LayoutSize(float val)
Parameters
System.Single val

Returns
LayoutSize