Class ImRaii.IndentDisposable
A wrapper around indentation.
Assembly: Dalamud.dll
public sealed class ImRaii.IndentDisposable : IDisposable
Implements:
System.IDisposable
Properties
CurrentIndent
Gets the current indentation pushed by this object.
public float CurrentIndent { get; }
Methods
Indent(float, bool, bool)
Add to the current indentation.
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
| Type | Name | Description |
|---|---|---|
System.Single | indent | The value to change the indentation by. |
System.Boolean | scaled | if this is true, applies global scale. |
System.Boolean | condition | If 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.
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
| Type | Name | Description |
|---|---|---|
System.Int32 | indent | The value to change the indentation by. |
System.Boolean | condition | If 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.
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
| Type | Name | Description |
|---|---|---|
System.Single | indent | The value to change the indentation by. |
System.Boolean | condition | If 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.
public void Dispose()
Implements
System.IDisposable