Search Results for

    Show / Hide Table of Contents

    Struct PerformanceKit.Resolution

    Namespace: Pley
    Assembly: Pley.dll
    Syntax
    public struct Resolution

    Constructors

    Resolution(Int32, Int32)

    Declaration
    public Resolution(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width
    System.Int32 height

    Resolution(UnityEngine.Resolution)

    Declaration
    public Resolution(UnityEngine.Resolution other)
    Parameters
    Type Name Description
    UnityEngine.Resolution other

    Fields

    height

    The resolution height.

    Declaration
    public readonly int height
    Field Value
    Type Description
    System.Int32

    width

    The resolution width.

    Declaration
    public readonly int width
    Field Value
    Type Description
    System.Int32

    Properties

    AspectRatio

    Returns aspect ratio of the resolution, Width / Height.

    Declaration
    public readonly float AspectRatio { get; }
    Property Value
    Type Description
    System.Single

    IsLandscape

    Returns whether width is larger than height.

    Declaration
    public readonly bool IsLandscape { get; }
    Property Value
    Type Description
    System.Boolean

    IsPortrait

    Return whether height is larger than width.

    Declaration
    public readonly bool IsPortrait { get; }
    Property Value
    Type Description
    System.Boolean

    Zero

    Returns a new resolution with height and width set to 0

    Declaration
    public static readonly PerformanceKit.Resolution Zero { get; }
    Property Value
    Type Description
    PerformanceKit.Resolution

    Methods

    Equals(PerformanceKit.Resolution)

    Declaration
    public bool Equals(PerformanceKit.Resolution other)
    Parameters
    Type Name Description
    PerformanceKit.Resolution other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

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

    GetHashCode()

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

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Operators

    Equality(PerformanceKit.Resolution, PerformanceKit.Resolution)

    Declaration
    public static bool operator ==(PerformanceKit.Resolution lhs, PerformanceKit.Resolution rhs)
    Parameters
    Type Name Description
    PerformanceKit.Resolution lhs
    PerformanceKit.Resolution rhs
    Returns
    Type Description
    System.Boolean

    Inequality(PerformanceKit.Resolution, PerformanceKit.Resolution)

    Declaration
    public static bool operator !=(PerformanceKit.Resolution lhs, PerformanceKit.Resolution rhs)
    Parameters
    Type Name Description
    PerformanceKit.Resolution lhs
    PerformanceKit.Resolution rhs
    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top Generated by DocFX