Skip to main content

Class ImGuiHelpers.HorizontalButtonGroup

Class helper for creating a horizontal button group.

Assembly: Dalamud.dll
View Source
Declaration
public class ImGuiHelpers.HorizontalButtonGroup

Properties

IsCentered

Gets or sets a value indicating whether the buttons should be centered horizontally.

View Source
Declaration
public bool IsCentered { get; set; }

Height

Gets or sets the height of the buttons. If null, the default frame height is used.

View Source
Declaration
public float? Height { get; set; }

ExtraMargin

Gets or sets the extra margin to add to the inside of each button, before and after the text. If null, the default margin is used.

View Source
Declaration
public float? ExtraMargin { get; set; }

PaddingBetweenButtons

Gets or sets the padding between buttons. If null, the default item spacing is used.

View Source
Declaration
public float? PaddingBetweenButtons { get; set; }

Methods

Add(string, Action)

Add a button to the group.

View Source
Declaration
public ImGuiHelpers.HorizontalButtonGroup Add(string text, Action action)
Returns

Dalamud.Interface.Utility.ImGuiHelpers.HorizontalButtonGroup: The group.

Parameters
TypeNameDescription
System.StringtextThe text of the button.
System.ActionactionThe action to perform when the button is pressed.

SetCentered(bool)

Sets whether the buttons should be centered horizontally.

View Source
Declaration
public ImGuiHelpers.HorizontalButtonGroup SetCentered(bool centered)
Returns

Dalamud.Interface.Utility.ImGuiHelpers.HorizontalButtonGroup: The group.

Parameters
TypeNameDescription
System.BooleancenteredThe value.

WithHeight(float)

Sets the height of the buttons.

View Source
Declaration
public ImGuiHelpers.HorizontalButtonGroup WithHeight(float height)
Returns

Dalamud.Interface.Utility.ImGuiHelpers.HorizontalButtonGroup: The group.

Parameters
TypeNameDescription
System.SingleheightThe height.

WithExtraMargin(float)

Sets the extra margin to add to the inside of each button, before and after the text.

View Source
Declaration
public ImGuiHelpers.HorizontalButtonGroup WithExtraMargin(float extraMargin)
Returns

Dalamud.Interface.Utility.ImGuiHelpers.HorizontalButtonGroup: The group.

Parameters
TypeNameDescription
System.SingleextraMarginThe margin.

WithPaddingBetweenButtons(float)

Sets the padding between buttons.

View Source
Declaration
public ImGuiHelpers.HorizontalButtonGroup WithPaddingBetweenButtons(float padding)
Returns

Dalamud.Interface.Utility.ImGuiHelpers.HorizontalButtonGroup: The group.

Parameters
TypeNameDescription
System.SinglepaddingThe padding.

Draw()

Draw the button group at the current location.

View Source
Declaration
public void Draw()