Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    LayoutingContext Class

    Namespace: Stride.UI
    Assembly: Stride.UI.dll

    A context containing information for UI layouting.

    System.Object → LayoutingContext
    Derived from LayoutingContext:

    public class LayoutingContext : IEquatable<LayoutingContext>
    Name Description
    Properties
    RealResolution

    The resolution of the output target.

    RealVirtualResolutionRatio

    The ratio between the real and virtual resolution (=real/virtual)

    VirtualResolution

    The virtual resolution of the UI.

    Methods
    Equals(LayoutingContext)

    Determine if two LayoutingContext are equals.

    | Improve this Doc View Source

    Properties


    RealResolution

    The resolution of the output target.

    public Vector2 RealResolution { get; }
    Property Value
    Type Description
    Vector2

    RealVirtualResolutionRatio

    The ratio between the real and virtual resolution (=real/virtual)

    public Vector2 RealVirtualResolutionRatio { get; }
    Property Value
    Type Description
    Vector2

    VirtualResolution

    The virtual resolution of the UI.

    public Vector3 VirtualResolution { get; }
    Property Value
    Type Description
    Vector3
    | Improve this Doc View Source

    Methods


    Equals(LayoutingContext)

    Determine if two LayoutingContext are equals.

    public bool Equals(LayoutingContext other)
    Parameters
    Type Name Description
    LayoutingContext other

    the other context

    Returns
    Type Description
    System.Boolean

    True if the two contexts are equals


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation