Wrappers for RadioButton() and SetNextWindowPos()

* ImGui.RadioButton(string, ref int, int);
* ImGui.SetNextWindowPos(Vector2, SetCondition);
internals
Eric Mellino 9 years ago
parent 06034c688d
commit a7b296ae51
  1. 13
      src/ImGui.NET/ImGui.cs

@ -137,6 +137,14 @@ namespace ImGuiNET
return ImGuiNative.igCheckbox(label, ref value); return ImGuiNative.igCheckbox(label, ref value);
} }
public static unsafe bool RadioButton(string label, ref int target, int buttonValue)
{
int targetCopy = target;
bool result = ImGuiNative.igRadioButton(label, &targetCopy, buttonValue);
target = targetCopy;
return result;
}
public static bool RadioButtonBool(string label, bool active) public static bool RadioButtonBool(string label, bool active)
{ {
return ImGuiNative.igRadioButtonBool(label, active); return ImGuiNative.igRadioButtonBool(label, active);
@ -348,6 +356,11 @@ namespace ImGuiNET
ImGuiNative.igSetNextWindowSize(size, condition); ImGuiNative.igSetNextWindowSize(size, condition);
} }
public static void SetNextWindowPos(Vector2 position, SetCondition condition)
{
ImGuiNative.igSetNextWindowPos(position, condition);
}
public static void SetNextWindowPosCenter(SetCondition condition) public static void SetNextWindowPosCenter(SetCondition condition)
{ {
ImGuiNative.igSetNextWindowPosCenter(condition); ImGuiNative.igSetNextWindowPosCenter(condition);

Loading…
Cancel
Save