Add wrappers for column and 'IsVisible/Active' functions

internals
Eric Mellino 9 years ago
parent 16bc61828e
commit c655a7f2a5
  1. 62
      src/ImGui.NET/ImGui.cs

@ -778,6 +778,43 @@ namespace ImGuiNET
ImGuiNative.igSpacing(); ImGuiNative.igSpacing();
} }
public static void Columns(int count, string id, bool border)
{
ImGuiNative.igColumns(count, id, border);
}
public static void NextColumn()
{
ImGuiNative.igNextColumn();
}
public static int GetColumnIndex()
{
return ImGuiNative.igGetColumnIndex();
}
public static float GetColumnOffset(int columnIndex)
{
return ImGuiNative.igGetColumnOffset(columnIndex);
}
public static void SetColumnOffset(int columnIndex, float offsetX)
{
ImGuiNative.igSetColumnOffset(columnIndex, offsetX);
}
public static float GetColumnWidth(int columnIndex)
{
return ImGuiNative.igGetColumnWidth(columnIndex);
}
public static int GetColumnsCount()
{
return ImGuiNative.igGetColumnsCount();
}
public static void OpenPopup(string id) public static void OpenPopup(string id)
{ {
ImGuiNative.igOpenPopup(id); ImGuiNative.igOpenPopup(id);
@ -798,6 +835,31 @@ namespace ImGuiNET
return ImGuiNative.igIsItemHovered(); return ImGuiNative.igIsItemHovered();
} }
public static bool IsLastItemHoveredRect()
{
return ImGuiNative.igIsItemHoveredRect();
}
public static bool IsLastItemActive()
{
return ImGuiNative.igIsItemActive();
}
public static bool IsLastItemVisible()
{
return ImGuiNative.igIsItemVisible();
}
public static bool IsAnyItemHovered()
{
return ImGuiNative.igIsAnyItemHovered();
}
public static bool IsAnyItemActive()
{
return ImGuiNative.igIsAnyItemActive();
}
public static void ShowTooltip(string text) public static void ShowTooltip(string text)
{ {
ImGuiNative.igSetTooltip(text); ImGuiNative.igSetTooltip(text);

Loading…
Cancel
Save