Add example for GLFW

This commit is contained in:
SpaiR committed 2019-12-29 23:59:35 +03:00
1 parent dc59810566
commit 3e7c50296c
13 files changed
+2606 -2561

No files matched your search

@@ -11,7 +11,7 @@ public class ImGuiHoveredFlags {
public static ImGuiHoveredFlags RootWindow = new ImGuiHoveredFlags(1 << 1);
public static ImGuiHoveredFlags AnyWindow = new ImGuiHoveredFlags(1 << 2);
public static ImGuiHoveredFlags AllowWhenBlockedByPopup = new ImGuiHoveredFlags(1 << 3);
// public static ImGuiHoveredFlags AllowWhenBlockedByModal = new ImGuiHoveredFlags(1 << 4);
// public static ImGuiHoveredFlags AllowWhenBlockedByModal = new ImGuiHoveredFlags(1 << 4);
public static ImGuiHoveredFlags AllowWhenBlockedByActiveItem = new ImGuiHoveredFlags(1 << 5);
public static ImGuiHoveredFlags AllowWhenOverlapped = new ImGuiHoveredFlags(1 << 6);
public static ImGuiHoveredFlags AllowWhenDisabled = new ImGuiHoveredFlags(1 << 7);
@@ -4,36 +4,29 @@ package imgui.enums;
* User fill ImGuiIO.KeyMap[] array with indices into the ImGuiIO.KeysDown[512] array
*/
public enum ImGuiKey {
Tab(0),
LeftArrow(1),
RightArrow(2),
UpArrow(3),
DownArrow(4),
PageUp(5),
PageDown(6),
Home(7),
End(8),
Insert(9),
Delete(10),
Backspace(11),
Space(12),
Enter(13),
Escape(14),
A(15),
C(16),
V(17),
X(18),
Y(19),
Z(20),
COUNT(21);
Tab,
LeftArrow,
RightArrow,
UpArrow,
DownArrow,
PageUp,
PageDown,
Home,
End,
Insert,
Delete,
Backspace,
Space,
Enter,
Escape,
KeyPadEnter,
A,
C,
V,
X,
Y,
Z,
COUNT;
private final int code;
ImGuiKey(int code) {
this.code = code;
}
public int getValue() {
return code;
}
public final int code = ordinal();
}
@@ -16,8 +16,8 @@ public class ImGuiTreeNodeFlags {
public static ImGuiTreeNodeFlags Leaf = new ImGuiTreeNodeFlags(1 << 8);
public static ImGuiTreeNodeFlags Bullet = new ImGuiTreeNodeFlags(1 << 9);
public static ImGuiTreeNodeFlags FramePadding = new ImGuiTreeNodeFlags(1 << 10);
// public static ImGuiTreeNodeFlags SpanAllAvailWidth = new ImGuiTreeNodeFlags(1 << 11);
// public static ImGuiTreeNodeFlags NoScrollOnOpen = new ImGuiTreeNodeFlags(1 << 12);
// public static ImGuiTreeNodeFlags SpanAllAvailWidth = new ImGuiTreeNodeFlags(1 << 11);
// public static ImGuiTreeNodeFlags NoScrollOnOpen = new ImGuiTreeNodeFlags(1 << 12);
public static ImGuiTreeNodeFlags NavLeftJumpsBackHere = new ImGuiTreeNodeFlags(1 << 13);
public static ImGuiTreeNodeFlags CollapsingHeader = new ImGuiTreeNodeFlags(Framed.getValue() | NoTreePushOnOpen.getValue() | NoAutoOpenOnLog.getValue());
private static ImGuiTreeNodeFlags Custom = new ImGuiTreeNodeFlags(0);