Class ImRaii.StyleDisposable
A wrapper around style pushing.
Assembly: Dalamud.dll
public sealed class ImRaii.StyleDisposable : IDisposable
Implements:
System.IDisposable
Properties
Count
Gets the number of styles currently pushed using this disposable.
public int Count { get; }
Methods
Push(ImGuiStyleVar, float, bool)
Push a style variable to the style stack.
public ImRaii.StyleDisposable Push(ImGuiStyleVar type, float value, bool condition)
Returns
Dalamud.Interface.Utility.Raii.ImRaii.StyleDisposable: A disposable object that can be used to push further style variables and pops those style variables after leaving scope. Use with using.
Parameters
| Type | Name | Description |
|---|---|---|
Dalamud.Bindings.ImGui.ImGuiStyleVar | type | The type of style variable to change. |
System.Single | value | The value to change it to. |
System.Boolean | condition | If this is false, the style is not pushed. |
Remarks
If you need to keep styles pushed longer than the current scope, use without using and use Dalamud.Interface.Utility.Raii.ImRaii.StyleDisposable.PopUnsafe(int).
Push(ImGuiStyleVar, Vector2, bool)
Push a style variable to the style stack.
public ImRaii.StyleDisposable Push(ImGuiStyleVar type, Vector2 value, bool condition)
Returns
Dalamud.Interface.Utility.Raii.ImRaii.StyleDisposable: A disposable object that can be used to push further style variables and pops those style variables after leaving scope. Use with using.
Parameters
| Type | Name | Description |
|---|---|---|
Dalamud.Bindings.ImGui.ImGuiStyleVar | type | The type of style variable to change. |
System.Numerics.Vector2 | value | The value to change it to. |
System.Boolean | condition | If this is false, the style is not pushed. |
Remarks
If you need to keep styles pushed longer than the current scope, use without using and use Dalamud.Interface.Utility.Raii.ImRaii.StyleDisposable.PopUnsafe(int).
Push(ImGuiStyleVar, float)
public ImRaii.StyleDisposable Push(ImGuiStyleVar type, float value)
Returns
Dalamud.Interface.Utility.Raii.ImRaii.StyleDisposable