Class StyleExtensions
Extensions that help with getting ImGui style values.
Inherited Members
Namespace: Hexa.NET.ImGui
Assembly: SadConsole.Debug.MonoGame.dll
Syntax
public static class StyleExtensions
Methods
GetSpacing(ImGuiStylePtr, out Vector2, out Vector2)
Gets the frame padding and item spacing values.
Declaration
public static void GetSpacing(this ImGuiStylePtr style, out Vector2 framePadding, out Vector2 itemSpacing)
Parameters
| Type | Name | Description |
|---|---|---|
| ImGuiStylePtr | style | The style object. |
| Vector2 | framePadding | Frame padding. |
| Vector2 | itemSpacing | Item spacing. |
GetWidthOfItems(ImGuiStylePtr, params string[])
Calculates the text size and adds frame padding * 2 for each item provided.
Declaration
public static float GetWidthOfItems(this ImGuiStylePtr style, params string[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| ImGuiStylePtr | style | The style object. |
| string[] | items | String values to calculate. |
Returns
| Type | Description |
|---|---|
| float | The total size. |