Class ImGuiHelpers.HorizontalButtonGroup
Class helper for creating a horizontal button group.
Assembly: Dalamud.dll
View Source
public class ImGuiHelpers.HorizontalButtonGroup
Properties
IsCentered
Gets or sets a value indicating whether the buttons should be centered horizontally.
View Source
public bool IsCentered { get; set; }
Height
Gets or sets the height of the buttons. If null, the default frame height is used.
View Source
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
public float? ExtraMargin { get; set; }
PaddingBetweenButtons
Gets or sets the padding between buttons. If null, the default item spacing is used.
View Source
public float? PaddingBetweenButtons { get; set; }
Methods
Add(string, Action)
Add a button to the group.
View Source
public ImGuiHelpers.HorizontalButtonGroup Add(string text, Action action)
Returns
Dalamud.Interface.Utility.ImGuiHelpers.HorizontalButtonGroup: The group.
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text of the button. |
System.Action | action | The action to perform when the button is pressed. |
SetCentered(bool)
Sets whether the buttons should be centered horizontally.
View Source
public ImGuiHelpers.HorizontalButtonGroup SetCentered(bool centered)
Returns
Dalamud.Interface.Utility.ImGuiHelpers.HorizontalButtonGroup: The group.
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | centered | The value. |
WithHeight(float)
Sets the height of the buttons.
View Source
public ImGuiHelpers.HorizontalButtonGroup WithHeight(float height)
Returns
Dalamud.Interface.Utility.ImGuiHelpers.HorizontalButtonGroup: The group.
Parameters
Type | Name | Description |
---|---|---|
System.Single | height | The height. |
WithExtraMargin(float)
Sets the extra margin to add to the inside of each button, before and after the text.
View Source
public ImGuiHelpers.HorizontalButtonGroup WithExtraMargin(float extraMargin)
Returns
Dalamud.Interface.Utility.ImGuiHelpers.HorizontalButtonGroup: The group.
Parameters
Type | Name | Description |
---|---|---|
System.Single | extraMargin | The margin. |
WithPaddingBetweenButtons(float)
Sets the padding between buttons.
View Source
public ImGuiHelpers.HorizontalButtonGroup WithPaddingBetweenButtons(float padding)
Returns
Dalamud.Interface.Utility.ImGuiHelpers.HorizontalButtonGroup: The group.
Parameters
Type | Name | Description |
---|---|---|
System.Single | padding | The padding. |
Draw()
Draw the button group at the current location.
View Source
public void Draw()