Skip to main content
Version: 14.x (API 14) [Legacy]

Class ImRaii.IndentDisposable

A wrapper around indentation.

Assembly: Dalamud.dll
Declaration
public sealed class ImRaii.IndentDisposable : IDisposable

Implements:
System.IDisposable

Properties

CurrentIndent

Gets the current indentation pushed by this object.

Declaration
public float CurrentIndent { get; }

Methods

Indent(float, bool, bool)

Add to the current indentation.

Declaration
public ImRaii.IndentDisposable Indent(float indent, bool scaled = true, bool condition = true)
Returns

Dalamud.Interface.Utility.Raii.ImRaii.IndentDisposable: A disposable object that can be used to change the indentation more and reverts to the prior indentation after leaving scope. Use with using.

Parameters
TypeNameDescription
System.SingleindentThe value to change the indentation by.
System.Booleanscaledif this is true, applies global scale.
System.BooleanconditionIf this is false, the current indent is not changed.
Remarks

If you need to keep indentation for longer than the current scope, use without using.

Indent(int, bool)

Add to the current indentation.

Declaration
public ImRaii.IndentDisposable Indent(int indent = 1, bool condition = true)
Returns

Dalamud.Interface.Utility.Raii.ImRaii.IndentDisposable: A disposable object that can be used to change the indentation more and reverts to the prior indentation after leaving scope. Use with using.

Parameters
TypeNameDescription
System.Int32indentThe value to change the indentation by.
System.BooleanconditionIf this is false, the current indent is not changed.
Remarks

If you need to keep indentation for longer than the current scope, use without using.

Unindent(float, bool)

Subtract from the current indentation.

Declaration
public ImRaii.IndentDisposable Unindent(float indent, bool condition = true)
Returns

Dalamud.Interface.Utility.Raii.ImRaii.IndentDisposable: A disposable object that can be used to change the indentation more and reverts to the prior indentation after leaving scope. Use with using.

Parameters
TypeNameDescription
System.SingleindentThe value to change the indentation by.
System.BooleanconditionIf this is false, the current indent is not changed.
Remarks

If you need to keep indentation for longer than the current scope, use without using.

Dispose()

Revert all indentation applied by this object.

Declaration
public void Dispose()

Implements

  • System.IDisposable