StyleExtensions Class
Definition
Section titled “Definition”Extensions that help with getting ImGui style values.
public static class StyleExtensionsInheritance object
Methods
Section titled “Methods”GetSpacing(ImGuiStylePtr, out Vector2, out Vector2)
Section titled “GetSpacing(ImGuiStylePtr, out Vector2, out Vector2)”Gets the frame padding and item spacing values.
public static void GetSpacing(this ImGuiStylePtr style, out Vector2 framePadding, out Vector2 itemSpacing)Parameters
Section titled “Parameters”style Hexa.NET.ImGui.ImGuiStylePtr
The style object.
framePadding Vector2
Frame padding.
itemSpacing Vector2
Item spacing.
GetWidthOfItems(ImGuiStylePtr, params string[])
Section titled “GetWidthOfItems(ImGuiStylePtr, params string[])”Calculates the text size and adds frame padding * 2 for each item provided.
public static float GetWidthOfItems(this ImGuiStylePtr style, params string[] items)Parameters
Section titled “Parameters”style Hexa.NET.ImGui.ImGuiStylePtr
The style object.
items string[]
String values to calculate.
Returns
Section titled “Returns”float
The total size.