Class ImGuiHelpers.HorizontalButtonGroup
Class helper for creating a horizontal button group.
Assembly: Dalamud.dll​
public class ImGuiHelpers.HorizontalButtonGroup
Properties​
IsCentered​
Gets or sets a value indicating whether the buttons should be centered horizontally.
public bool IsCentered { get; set; }
Height​
Gets or sets the height of the buttons. If null, the default frame height is used.
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.
public float? ExtraMargin { get; set; }
PaddingBetweenButtons​
Gets or sets the padding between buttons. If null, the default item spacing is used.
public float? PaddingBetweenButtons { get; set; }
Methods​
Add(string, Action)​
Add a button to the group.
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.
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.
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.
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.
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.
public void Draw()