Show / Hide Table of Contents

Struct ImScrollArea

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 ref struct ImScrollArea

Constructors

ImScrollArea(String, Boolean)

Declaration
public ImScrollArea(string name, bool autoLayout = true)
Parameters
Type Name Description
System.String name
System.Boolean autoLayout

ImScrollArea(String, Single, Single, Boolean)

Convenience struct to call ImGui.BeginScrollArea. Using the dispose pattern also calls ImGui.EndScrollArea.

using (var scrollArea = new ImScrollArea("Title", viewportHeight, maxHeight)) {
    // Implement logic you would like to draw within the scroll area.
}
Declaration
public ImScrollArea(string name, float viewportHeight, float maxHeight, bool autoLayout = true)
Parameters
Type Name Description
System.String name

The name of the scroll area.

System.Single viewportHeight

How much space should be added to he scroll area?

System.Single maxHeight

What is the maximum height of the scroll area?

System.Boolean autoLayout

Should the scroll area be laid out automatically? Generally, yes.

Methods

Dispose()

Declaration
public void Dispose()
In This Article
Back to top Generated by DocFX