From c655a7f2a56ee0cab2a47d519a1a5cfb550da7c5 Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Tue, 10 May 2016 21:17:04 -0700 Subject: [PATCH] Add wrappers for column and 'IsVisible/Active' functions --- src/ImGui.NET/ImGui.cs | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/src/ImGui.NET/ImGui.cs b/src/ImGui.NET/ImGui.cs index ed1b3f9..34a083a 100644 --- a/src/ImGui.NET/ImGui.cs +++ b/src/ImGui.NET/ImGui.cs @@ -778,6 +778,43 @@ namespace ImGuiNET 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) { ImGuiNative.igOpenPopup(id); @@ -798,6 +835,31 @@ namespace ImGuiNET 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) { ImGuiNative.igSetTooltip(text);