Class StrutStyle | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class StrutStyle

    Inheritance
    Object
    Diagnosticable
    StrutStyle
    Inherited Members
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Diagnosticable.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    Namespace: Unity.UIWidgets.painting
    Syntax
    public class StrutStyle : Diagnosticable

    Constructors

    StrutStyle(String, List<String>, Nullable<Single>, Nullable<Single>, Nullable<Single>, FontWeight, Nullable<FontStyle>, Boolean, String)

    Declaration
    public StrutStyle(string fontFamily = null, List<string> fontFamilyFallback = null, float? fontSize = default(float? ), float? height = default(float? ), float? leading = default(float? ), FontWeight fontWeight = null, FontStyle? fontStyle = default(FontStyle? ), bool forceStrutHeight = false, string debugLabel = null)
    Parameters
    Type Name Description
    String fontFamily
    List<String> fontFamilyFallback
    Nullable<Single> fontSize
    Nullable<Single> height
    Nullable<Single> leading
    FontWeight fontWeight
    Nullable<FontStyle> fontStyle
    Boolean forceStrutHeight
    String debugLabel

    Fields

    debugLabel

    Declaration
    public readonly string debugLabel
    Field Value
    Type Description
    String

    disabled

    Declaration
    public static readonly StrutStyle disabled
    Field Value
    Type Description
    StrutStyle

    fontFamily

    Declaration
    public readonly string fontFamily
    Field Value
    Type Description
    String

    fontSize

    Declaration
    public readonly float? fontSize
    Field Value
    Type Description
    Nullable<Single>

    fontStyle

    Declaration
    public readonly FontStyle? fontStyle
    Field Value
    Type Description
    Nullable<FontStyle>

    fontWeight

    Declaration
    public readonly FontWeight fontWeight
    Field Value
    Type Description
    FontWeight

    forceStrutHeight

    Declaration
    public readonly bool forceStrutHeight
    Field Value
    Type Description
    Boolean

    height

    Declaration
    public readonly float? height
    Field Value
    Type Description
    Nullable<Single>

    leading

    Declaration
    public readonly float? leading
    Field Value
    Type Description
    Nullable<Single>

    Properties

    fontFamilyFallback

    Declaration
    public List<string> fontFamilyFallback { get; }
    Property Value
    Type Description
    List<String>

    Methods

    compareTo(StrutStyle)

    Declaration
    public RenderComparison compareTo(StrutStyle other)
    Parameters
    Type Name Description
    StrutStyle other
    Returns
    Type Description
    RenderComparison

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Diagnosticable.debugFillProperties(DiagnosticPropertiesBuilder)

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    Equals(StrutStyle)

    Declaration
    public bool Equals(StrutStyle other)
    Parameters
    Type Name Description
    StrutStyle other
    Returns
    Type Description
    Boolean

    fromTextStyle(TextStyle, String, List<String>, Nullable<Single>, Nullable<Single>, Nullable<Single>, FontWeight, Nullable<FontStyle>, Boolean, String)

    Declaration
    public static StrutStyle fromTextStyle(TextStyle textStyle, string fontFamily = null, List<string> fontFamilyFallback = null, float? fontSize = default(float? ), float? height = default(float? ), float? leading = default(float? ), FontWeight fontWeight = null, FontStyle? fontStyle = default(FontStyle? ), bool forceStrutHeight = false, string debugLabel = null)
    Parameters
    Type Name Description
    TextStyle textStyle
    String fontFamily
    List<String> fontFamilyFallback
    Nullable<Single> fontSize
    Nullable<Single> height
    Nullable<Single> leading
    FontWeight fontWeight
    Nullable<FontStyle> fontStyle
    Boolean forceStrutHeight
    String debugLabel
    Returns
    Type Description
    StrutStyle

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    inheritFromTextStyle(TextStyle)

    Declaration
    public StrutStyle inheritFromTextStyle(TextStyle other)
    Parameters
    Type Name Description
    TextStyle other
    Returns
    Type Description
    StrutStyle

    toStringShort()

    Declaration
    public override string toStringShort()
    Returns
    Type Description
    String
    Overrides
    Diagnosticable.toStringShort()

    Operators

    Equality(StrutStyle, StrutStyle)

    Declaration
    public static bool operator ==(StrutStyle left, StrutStyle right)
    Parameters
    Type Name Description
    StrutStyle left
    StrutStyle right
    Returns
    Type Description
    Boolean

    Inequality(StrutStyle, StrutStyle)

    Declaration
    public static bool operator !=(StrutStyle left, StrutStyle right)
    Parameters
    Type Name Description
    StrutStyle left
    StrutStyle right
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023