Skip to content

Commit cd0d0f7

Browse files
committed
Fix enums
1 parent d74c012 commit cd0d0f7

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

imgui-binding/src/main/java/imgui/enums/ImGuiCond.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public final class ImGuiCond {
99
private ImGuiCond() {
1010
}
1111

12-
public static final int Always = 1 << 0; // Set the variable
12+
public static final int Always = 1; // Set the variable
1313
public static final int Once = 1 << 1; // Set the variable once per runtime session (only the first call with succeed)
1414
public static final int FirstUseEver = 1 << 2; // Set the variable if the object/window has no persistently saved data (no entry in .ini file)
1515
public static final int Appearing = 1 << 3; // Set the variable if the object/window is appearing after being hidden/inactive (or the first time)

imgui-binding/src/main/java/imgui/enums/ImGuiInputTextFlags.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ private ImGuiInputTextFlags() {
88
}
99

1010
public static final int None = 0;
11-
public static final int CharsDecimal = 1; // Allow 0123456789.+-*/
12-
public static final int CharsHexadecimal = 1 << 1; // Allow 0123456789ABCDEFabcdef
13-
public static final int CharsUppercase = 1 << 2; // Turn a..z into A..Z
14-
public static final int CharsNoBlank = 1 << 3; // Filter out spaces, tabs
15-
public static final int AutoSelectAll = 1 << 4; // Select entire text when first taking mouse focus
16-
public static final int EnterReturnsTrue = 1 << 5; // Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function.
17-
public static final int CallbackCompletion = 1 << 6; // Callback on pressing TAB (for completion handling)
18-
public static final int CallbackHistory = 1 << 7; // Callback on pressing Up/Down arrows (for history handling)
19-
public static final int CallbackAlways = 1 << 8; // Callback on each iteration. User code may query cursor position, modify text buffer.
20-
public static final int CallbackCharFilter = 1 << 9; // Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
21-
public static final int AllowTabInput = 1 << 1; // Pressing TAB input a '\t' character into the text field
22-
public static final int CtrlEnterForNewLine = 1 << 1; // In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter).
23-
public static final int NoHorizontalScroll = 1 << 1; // Disable following the cursor horizontally
24-
public static final int AlwaysInsertMode = 1 << 1; // Insert mode
25-
public static final int ReadOnly = 1 << 1; // Read-only mode
26-
public static final int Password = 1 << 1; // Password mode, display all characters as '*'
27-
public static final int NoUndoRedo = 1 << 1; // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID().
28-
public static final int CharsScientific = 1 << 1; // Allow 0123456789.+-*/eE (Scientific notation input)
29-
public static final int CallbackResize = 1 << 1; // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this)
11+
public static final int CharsDecimal = 1; // Allow 0123456789.+-*/
12+
public static final int CharsHexadecimal = 1 << 1; // Allow 0123456789ABCDEFabcdef
13+
public static final int CharsUppercase = 1 << 2; // Turn a..z into A..Z
14+
public static final int CharsNoBlank = 1 << 3; // Filter out spaces, tabs
15+
public static final int AutoSelectAll = 1 << 4; // Select entire text when first taking mouse focus
16+
public static final int EnterReturnsTrue = 1 << 5; // Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function.
17+
public static final int CallbackCompletion = 1 << 6; // Callback on pressing TAB (for completion handling)
18+
public static final int CallbackHistory = 1 << 7; // Callback on pressing Up/Down arrows (for history handling)
19+
public static final int CallbackAlways = 1 << 8; // Callback on each iteration. User code may query cursor position, modify text buffer.
20+
public static final int CallbackCharFilter = 1 << 9; // Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
21+
public static final int AllowTabInput = 1 << 10; // Pressing TAB input a '\t' character into the text field
22+
public static final int CtrlEnterForNewLine = 1 << 11; // In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter).
23+
public static final int NoHorizontalScroll = 1 << 12; // Disable following the cursor horizontally
24+
public static final int AlwaysInsertMode = 1 << 13; // Insert mode
25+
public static final int ReadOnly = 1 << 14; // Read-only mode
26+
public static final int Password = 1 << 15; // Password mode, display all characters as '*'
27+
public static final int NoUndoRedo = 1 << 16; // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID().
28+
public static final int CharsScientific = 1 << 17; // Allow 0123456789.+-*/eE (Scientific notation input)
29+
public static final int CallbackResize = 1 << 18; // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this)
3030
}

imgui-binding/src/main/java/imgui/enums/ImGuiWindowFlags.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ private ImGuiWindowFlags() {
88
}
99

1010
public static final int None = 0;
11-
public static final int NoTitleBar = 1; // Disable title-bar
12-
public static final int NoResize = 1 << 1; // Disable user resizing with the lower-right grip
13-
public static final int NoMove = 1 << 2; // Disable user moving the window
14-
public static final int NoScrollbar = 1 << 3; // Disable scrollbars (window can still scroll with mouse or programmatically)
15-
public static final int NoScrollWithMouse = 1 << 4; // Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set.
16-
public static final int NoCollapse = 1 << 5; // Disable user collapsing window by double-clicking on it
17-
public static final int AlwaysAutoResize = 1 << 6; // Resize every window to its content every frame
18-
public static final int NoBackground = 1 << 7; // Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f).
19-
public static final int NoSavedSettings = 1 << 8; // Never load/save settings in .ini file
20-
public static final int NoMouseInputs = 1 << 9; // Disable catching mouse, hovering test with pass through.
21-
public static final int MenuBar = 1 << 1; // Has a menu-bar
22-
public static final int HorizontalScrollbar = 1 << 1; // Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section.
23-
public static final int NoFocusOnAppearing = 1 << 1; // Disable taking focus when transitioning from hidden to visible state
24-
public static final int NoBringToFrontOnFocus = 1 << 1; // Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus)
25-
public static final int AlwaysVerticalScrollbar = 1 << 1; // Always show vertical scrollbar (even if ContentSize.y < Size.y)
26-
public static final int AlwaysHorizontalScrollbar = 1 << 1; // Always show horizontal scrollbar (even if ContentSize.x < Size.x)
27-
public static final int AlwaysUseWindowPadding = 1 << 1; // Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient)
28-
public static final int NoNavInputs = 1 << 1; // No gamepad/keyboard navigation within the window
29-
public static final int NoNavFocus = 1 << 1; // No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB)
30-
public static final int UnsavedDocument = 1 << 2; // Append '*' to title without affecting the ID, as a convenience to avoid using the ### operator. When used in a tab/docking context, tab is selected on closure and closure is deferred by one frame to allow code to cancel the closure (with a confirmation popup, etc.) without flicker.
11+
public static final int NoTitleBar = 1; // Disable title-bar
12+
public static final int NoResize = 1 << 1; // Disable user resizing with the lower-right grip
13+
public static final int NoMove = 1 << 2; // Disable user moving the window
14+
public static final int NoScrollbar = 1 << 3; // Disable scrollbars (window can still scroll with mouse or programmatically)
15+
public static final int NoScrollWithMouse = 1 << 4; // Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set.
16+
public static final int NoCollapse = 1 << 5; // Disable user collapsing window by double-clicking on it
17+
public static final int AlwaysAutoResize = 1 << 6; // Resize every window to its content every frame
18+
public static final int NoBackground = 1 << 7; // Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f).
19+
public static final int NoSavedSettings = 1 << 8; // Never load/save settings in .ini file
20+
public static final int NoMouseInputs = 1 << 9; // Disable catching mouse, hovering test with pass through.
21+
public static final int MenuBar = 1 << 10; // Has a menu-bar
22+
public static final int HorizontalScrollbar = 1 << 11; // Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section.
23+
public static final int NoFocusOnAppearing = 1 << 12; // Disable taking focus when transitioning from hidden to visible state
24+
public static final int NoBringToFrontOnFocus = 1 << 13; // Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus)
25+
public static final int AlwaysVerticalScrollbar = 1 << 14; // Always show vertical scrollbar (even if ContentSize.y < Size.y)
26+
public static final int AlwaysHorizontalScrollbar = 1 << 15; // Always show horizontal scrollbar (even if ContentSize.x < Size.x)
27+
public static final int AlwaysUseWindowPadding = 1 << 16; // Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient)
28+
public static final int NoNavInputs = 1 << 17; // No gamepad/keyboard navigation within the window
29+
public static final int NoNavFocus = 1 << 18; // No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB)
30+
public static final int UnsavedDocument = 1 << 20; // Append '*' to title without affecting the ID, as a convenience to avoid using the ### operator. When used in a tab/docking context, tab is selected on closure and closure is deferred by one frame to allow code to cancel the closure (with a confirmation popup, etc.) without flicker.
3131
public static final int NoNav = NoNavInputs | NoNavFocus;
3232
public static final int NoDecoration = NoTitleBar | NoResize | NoScrollbar | NoCollapse;
3333
public static final int NoInputs = NoMouseInputs | NoNavInputs | NoNavFocus;

imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public final class ImGuiGlfwExample {
4747
private final ImGuiImplGl3 imGuiGl3 = new ImGuiImplGl3();
4848

4949
// Local app variables go here
50-
private final ImString imguiDemoLink = new ImString("https://raw.githubusercontent.com/ocornut/imgui/v1.74/imgui_demo.cpp");
50+
private final ImString imguiDemoLink = new ImString("https://raw.githubusercontent.com/ocornut/imgui/v1.74/imgui_demo.cpp", 100);
5151
private float[] backgroundColor = new float[]{0.5f, 0, 0};
5252
private int clickCount = 0;
5353
private final byte[] testPayload = "Test Payload".getBytes();

0 commit comments

Comments
 (0)