Skip to main content
Version: 15.x (API 15) [Current]

Class ImGuiHelpers.HorizontalButtonGroup

Class helper for creating a horizontal button group.

Assembly: Dalamud.dll​
Declaration
public class ImGuiHelpers.HorizontalButtonGroup

Properties​

IsCentered​

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

Declaration
public bool IsCentered { get; set; }

Height​

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

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.

Declaration
public float? ExtraMargin { get; set; }

PaddingBetweenButtons​

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

Declaration
public float? PaddingBetweenButtons { get; set; }

Methods​

Add(string, Action)​

Add a button to the group.

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.

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.

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.

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.

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.

Declaration
public void Draw()