Show / Hide Table of Contents

Class StyleExtensions

Extensions that help with getting ImGui style values.

Inheritance
object
StyleExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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.

In this article

Back to top

Back to top Generated by DocFX