Fix definition of ImGui.NET Style structure.

internals
Eric Mellino 7 years ago
parent 3145ad2874
commit abb452f17e
  1. 12
      src/ImGui.NET/Align.cs
  2. 6
      src/ImGui.NET/NativeStyle.cs
  3. 2
      src/ImGui.NET/Style.cs

@ -1,12 +0,0 @@
namespace ImGuiNET
{
public enum Align
{
Left = 1 << 0,
Center = 1 << 1,
Right = 1 << 2,
Top = 1 << 3,
VCenter = 1 << 4,
Default = Left | Top
}
}

@ -25,7 +25,7 @@ namespace ImGuiNET
/// <summary> /// <summary>
/// Alignment for title bar text. /// Alignment for title bar text.
/// </summary> /// </summary>
public Align WindowTitleAlign; public Vector2 WindowTitleAlign;
/// <summary> /// <summary>
/// Radius of child window corners rounding. Set to 0.0f to have rectangular windows. /// Radius of child window corners rounding. Set to 0.0f to have rectangular windows.
/// </summary> /// </summary>
@ -75,6 +75,10 @@ namespace ImGuiNET
/// </summary> /// </summary>
public float GrabRounding; public float GrabRounding;
/// <summary> /// <summary>
/// Alignment of button text when button is larger than text. Defaults to (0.5f,0.5f) for horizontally+vertically centered.
/// </summary>
public Vector2 ButtonTextAlign;
/// <summary>
/// Window positions are clamped to be visible within the display area by at least this amount. Only covers regular windows. /// Window positions are clamped to be visible within the display area by at least this amount. Only covers regular windows.
/// </summary> /// </summary>
public Vector2 DisplayWindowPadding; public Vector2 DisplayWindowPadding;

@ -50,7 +50,7 @@ namespace ImGuiNET
/// <summary> /// <summary>
/// Alignment for title bar text. /// Alignment for title bar text.
/// </summary> /// </summary>
public Align WindowTitleAlign public Vector2 WindowTitleAlign
{ {
get { return _stylePtr->WindowTitleAlign; } get { return _stylePtr->WindowTitleAlign; }
set { _stylePtr->WindowTitleAlign = value; } set { _stylePtr->WindowTitleAlign = value; }

Loading…
Cancel
Save