Show / Hide Table of Contents

Struct ImScope

Stores the last known size and position of the scope we intend to layout.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: InitialPrefabs.NimGui
Assembly: InitialPrefabs.ImGui.dll
Syntax
public struct ImScope

Fields

Delta

Stores the added size.

Declaration
public float2 Delta
Field Value
Type Description
Unity.Mathematics.float2

Next

Stores the next position for the next element. The position is stored in screen space.

Declaration
public float2 Next
Field Value
Type Description
Unity.Mathematics.float2

Previous

Stores the last known position.

Declaration
public float2 Previous
Field Value
Type Description
Unity.Mathematics.float2

Rect

Stores the bounding box.

Declaration
public ImRect Rect
Field Value
Type Description
ImRect

Methods

Create(in ImRect)

Creates a scope where the Next position is upper left.

Declaration
public static ImScope Create(in ImRect rect)
Parameters
Type Name Description
ImRect rect

The bounds of the scope

Returns
Type Description
ImScope

A scope with the metadata generated

In This Article
Back to top Generated by DocFX