ImGui API
This commit is contained in:
1 parent
b59aea96d9
commit
fcecffa5fa
45 files changed
+6025
-3583
No files matched your search
@@ -1,6 +1,6 @@
|
||||
package imgui.enums;
|
||||
|
||||
public class ImDrawCornerFlags {
|
||||
public final class ImDrawCornerFlags {
|
||||
public static ImDrawCornerFlags TopLeft = new ImDrawCornerFlags(1 << 0);
|
||||
public static ImDrawCornerFlags TopRight = new ImDrawCornerFlags(1 << 1);
|
||||
public static ImDrawCornerFlags BotLeft = new ImDrawCornerFlags(1 << 2);
|
||||
|
||||
@@ -3,7 +3,7 @@ package imgui.enums;
|
||||
/**
|
||||
* Back-end capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom back-end.
|
||||
*/
|
||||
public class ImGuiBackendFlags {
|
||||
public final class ImGuiBackendFlags {
|
||||
public static ImGuiBackendFlags None = new ImGuiBackendFlags(0);
|
||||
public static ImGuiBackendFlags HasGamepad = new ImGuiBackendFlags(1 << 0);
|
||||
public static ImGuiBackendFlags HasMouseCursors = new ImGuiBackendFlags(1 << 1);
|
||||
|
||||
@@ -4,7 +4,7 @@ package imgui.enums;
|
||||
* Enumeration for GetMouseCursor()
|
||||
* User code may request binding to display given cursor by calling SetMouseCursor(), which is why we have some cursors that are marked unused here
|
||||
*/
|
||||
public class ImGuiColorEditFlags {
|
||||
public final class ImGuiColorEditFlags {
|
||||
public static ImGuiColorEditFlags None = new ImGuiColorEditFlags(0);
|
||||
public static ImGuiColorEditFlags NoAlpha = new ImGuiColorEditFlags(1 << 1);
|
||||
public static ImGuiColorEditFlags NoPicker = new ImGuiColorEditFlags(1 << 2);
|
||||
|
||||
@@ -3,7 +3,7 @@ package imgui.enums;
|
||||
/**
|
||||
* Flags for ImGui::BeginCombo()
|
||||
*/
|
||||
public class ImGuiComboFlags {
|
||||
public final class ImGuiComboFlags {
|
||||
public static ImGuiComboFlags None = new ImGuiComboFlags(0);
|
||||
public static ImGuiComboFlags PopupAlignLeft = new ImGuiComboFlags(1 << 0);
|
||||
public static ImGuiComboFlags HeightSmall = new ImGuiComboFlags(1 << 1);
|
||||
|
||||
@@ -5,7 +5,7 @@ package imgui.enums;
|
||||
* Represent a condition.
|
||||
* Important: Treat as a regular enum! Do NOT combine multiple values using binary operators! All the functions above treat 0 as a shortcut to ImGuiCond_Always.
|
||||
*/
|
||||
public class ImGuiCond {
|
||||
public final class ImGuiCond {
|
||||
public static ImGuiCond Always = new ImGuiCond(1 << 0);
|
||||
public static ImGuiCond Once = new ImGuiCond(1 << 1);
|
||||
public static ImGuiCond FirstUseEver = new ImGuiCond(1 << 2);
|
||||
|
||||
@@ -3,7 +3,7 @@ package imgui.enums;
|
||||
/**
|
||||
* Configuration flags stored in io.ConfigFlags. Set by user/application.
|
||||
*/
|
||||
public class ImGuiConfigFlags {
|
||||
public final class ImGuiConfigFlags {
|
||||
public static ImGuiConfigFlags None = new ImGuiConfigFlags(0);
|
||||
public static ImGuiConfigFlags NavEnableKeyboard = new ImGuiConfigFlags(1 << 0);
|
||||
public static ImGuiConfigFlags NavEnableGamepad = new ImGuiConfigFlags(1 << 1);
|
||||
|
||||
@@ -8,7 +8,7 @@ public enum ImGuiDir {
|
||||
Down(3),
|
||||
COUNT(4);
|
||||
|
||||
private final int code;
|
||||
private int code;
|
||||
|
||||
ImGuiDir(int code) {
|
||||
this.code = code;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package imgui.enums;
|
||||
|
||||
public class ImGuiDockNodeFlags {
|
||||
public final class ImGuiDockNodeFlags {
|
||||
public static ImGuiDockNodeFlags KeepAliveOnly = new ImGuiDockNodeFlags(1 << 0);
|
||||
public static ImGuiDockNodeFlags NoDockingInCentralNode = new ImGuiDockNodeFlags(1 << 2);
|
||||
public static ImGuiDockNodeFlags PassthruCentralNode = new ImGuiDockNodeFlags(1 << 3);
|
||||
|
||||
@@ -5,7 +5,7 @@ package imgui.enums;
|
||||
* Note: if you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that. Please read the FAQ!
|
||||
* Note: windows with the ImGuiWindowFlags_NoInputs flag are ignored by IsWindowHovered() calls.
|
||||
*/
|
||||
public class ImGuiDragDropFlags {
|
||||
public final class ImGuiDragDropFlags {
|
||||
public static ImGuiDragDropFlags None = new ImGuiDragDropFlags(0);
|
||||
// BeginDragDropSource() flags
|
||||
public static ImGuiDragDropFlags SourceNoPreviewTooltip = new ImGuiDragDropFlags(1 << 0);
|
||||
|
||||
@@ -3,7 +3,7 @@ package imgui.enums;
|
||||
/**
|
||||
* Flags for ImGui::IsWindowFocused()
|
||||
*/
|
||||
public class ImGuiFocusedFlags {
|
||||
public final class ImGuiFocusedFlags {
|
||||
public static ImGuiFocusedFlags None = new ImGuiFocusedFlags(0);
|
||||
public static ImGuiFocusedFlags ChildWindows = new ImGuiFocusedFlags(1 << 0);
|
||||
public static ImGuiFocusedFlags RootWindow = new ImGuiFocusedFlags(1 << 1);
|
||||
|
||||
@@ -5,7 +5,7 @@ package imgui.enums;
|
||||
* Note: if you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that. Please read the FAQ!
|
||||
* Note: windows with the ImGuiWindowFlags_NoInputs flag are ignored by IsWindowHovered() calls.
|
||||
*/
|
||||
public class ImGuiHoveredFlags {
|
||||
public final class ImGuiHoveredFlags {
|
||||
public static ImGuiHoveredFlags None = new ImGuiHoveredFlags(0);
|
||||
public static ImGuiHoveredFlags ChildWindows = new ImGuiHoveredFlags(1 << 0);
|
||||
public static ImGuiHoveredFlags RootWindow = new ImGuiHoveredFlags(1 << 1);
|
||||
|
||||
@@ -3,7 +3,7 @@ package imgui.enums;
|
||||
/**
|
||||
* Flags for ImGui::InputText()
|
||||
*/
|
||||
public class ImGuiInputTextFlags {
|
||||
public final class ImGuiInputTextFlags {
|
||||
public static ImGuiInputTextFlags None = new ImGuiInputTextFlags(0);
|
||||
/**
|
||||
* Allow 0123456789.+-*
|
||||
|
||||
@@ -28,5 +28,5 @@ public enum ImGuiKey {
|
||||
Z,
|
||||
COUNT;
|
||||
|
||||
public final int code = ordinal();
|
||||
public int code = ordinal();
|
||||
}
|
||||
@@ -22,10 +22,6 @@ public enum ImGuiMouseCursor {
|
||||
value = code;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static ImGuiMouseCursor valueOf(int value) {
|
||||
for (ImGuiMouseCursor cursor : values()) {
|
||||
if (cursor.value == value) {
|
||||
@@ -34,4 +30,8 @@ public enum ImGuiMouseCursor {
|
||||
}
|
||||
throw new IllegalArgumentException("Invalid cursor value: " + value);
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -22,9 +22,10 @@ public enum ImGuiNavInput {
|
||||
FocusPrev(12),
|
||||
FocusNext(13),
|
||||
TweakSlow(14),
|
||||
TweakFast(15);
|
||||
TweakFast(15),
|
||||
COUNT(16);
|
||||
|
||||
private final int code;
|
||||
private int code;
|
||||
|
||||
ImGuiNavInput(int code) {
|
||||
this.code = code;
|
||||
|
||||
@@ -3,7 +3,7 @@ package imgui.enums;
|
||||
/**
|
||||
* Flags for ImGui::Selectable()
|
||||
*/
|
||||
public class ImGuiSelectableFlags {
|
||||
public final class ImGuiSelectableFlags {
|
||||
public static ImGuiSelectableFlags None = new ImGuiSelectableFlags(0);
|
||||
public static ImGuiSelectableFlags DontClosePopups = new ImGuiSelectableFlags(1 << 0);
|
||||
public static ImGuiSelectableFlags SpanAllColumns = new ImGuiSelectableFlags(1 << 1);
|
||||
|
||||
@@ -3,7 +3,7 @@ package imgui.enums;
|
||||
/**
|
||||
* Flags for ImGui::BeginTabBar()
|
||||
*/
|
||||
public class ImGuiTabBarFlags {
|
||||
public final class ImGuiTabBarFlags {
|
||||
public static ImGuiTabBarFlags None = new ImGuiTabBarFlags(0);
|
||||
public static ImGuiTabBarFlags Reorderable = new ImGuiTabBarFlags(1 << 0);
|
||||
public static ImGuiTabBarFlags AutoSelectNewTabs = new ImGuiTabBarFlags(1 << 1);
|
||||
|
||||
@@ -3,7 +3,7 @@ package imgui.enums;
|
||||
/**
|
||||
* Flags for ImGui::BeginTabItem()
|
||||
*/
|
||||
public class ImGuiTabItemFlags {
|
||||
public final class ImGuiTabItemFlags {
|
||||
public static ImGuiTabItemFlags None = new ImGuiTabItemFlags(0);
|
||||
public static ImGuiTabItemFlags UnsavedDocument = new ImGuiTabItemFlags(1 << 0);
|
||||
public static ImGuiTabItemFlags SetSelected = new ImGuiTabItemFlags(1 << 1);
|
||||
|
||||
@@ -3,7 +3,7 @@ package imgui.enums;
|
||||
/**
|
||||
* Flags for ImGui::TreeNodeEx(), ImGui::CollapsingHeader*()
|
||||
*/
|
||||
public class ImGuiTreeNodeFlags {
|
||||
public final class ImGuiTreeNodeFlags {
|
||||
public static ImGuiTreeNodeFlags None = new ImGuiTreeNodeFlags(0);
|
||||
public static ImGuiTreeNodeFlags Selected = new ImGuiTreeNodeFlags(1 << 0);
|
||||
public static ImGuiTreeNodeFlags Framed = new ImGuiTreeNodeFlags(1 << 1);
|
||||
|
||||
@@ -3,7 +3,7 @@ package imgui.enums;
|
||||
/**
|
||||
* Flags for ImGui::Begin()
|
||||
*/
|
||||
public class ImGuiWindowFlags {
|
||||
public final class ImGuiWindowFlags {
|
||||
public static ImGuiWindowFlags None = new ImGuiWindowFlags(0);
|
||||
public static ImGuiWindowFlags NoTitleBar = new ImGuiWindowFlags(1 << 0);
|
||||
public static ImGuiWindowFlags NoResize = new ImGuiWindowFlags(1 << 1);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package imgui.enums;
|
||||
|
||||
public class ImLayout {
|
||||
public final class ImLayout {
|
||||
public static float MATCH_PARENT = -0.1f;
|
||||
public static float WRAP_PARENT = 0.0f;
|
||||
}
|
||||
Reference in new issue
Block a user