File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
imgui-binding/src/main/java/imgui/internal Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,16 @@ public final class ImGui extends imgui.ImGui {
11
11
#include <imgui_internal.h>
12
12
*/
13
13
14
+ // Basic Helpers for widget code
15
+
16
+ public static native void pushItemFlag (int imGuiItemFlags , boolean enabled ); /*
17
+ ImGui::PushItemFlag(imGuiItemFlags, enabled);
18
+ */
19
+
20
+ public static native void popItemFlag (); /*
21
+ ImGui::PopItemFlag();
22
+ */
23
+
14
24
// Docking - Builder function needs to be generally called before the node is used/submitted.
15
25
// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
16
26
// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
Original file line number Diff line number Diff line change
1
+ package imgui .internal .flag ;
2
+
3
+ /**
4
+ * Transient per-window flags, reset at the beginning of the frame. For child window, inherited from parent on first Begin().
5
+ * This is going to be exposed in imgui.h when stabilized enough.
6
+ */
7
+ public final class ImGuiItemFlags {
8
+ private ImGuiItemFlags () {
9
+ }
10
+
11
+ public static final int None = 0 ;
12
+ public static final int NoTabStop = 1 ;
13
+ /**
14
+ * Button() will return true multiple times based on io.KeyRepeatDelay and io.KeyRepeatRate settings.
15
+ */
16
+ public static final int ButtonRepeat = 1 << 1 ;
17
+ /**
18
+ * [BETA] Disable interactions but doesn't affect visuals yet. See github.com/ocornut/imgui/issues/211
19
+ */
20
+ public static final int Disabled = 1 << 2 ;
21
+ public static final int NoNav = 1 << 3 ;
22
+ public static final int NoNavDefaultFocus = 1 << 4 ;
23
+ /**
24
+ * MenuItem/Selectable() automatically closes current Popup window
25
+ */
26
+ public static final int SelectableDontClosePopup = 1 << 5 ;
27
+ /**
28
+ * [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ.
29
+ * Currently only supported by Checkbox() (later should support all sorts of widgets)
30
+ */
31
+ public static final int MixedValue = 1 << 6 ;
32
+ /**
33
+ * [ALPHA] Allow hovering interactions but underlying value is not changed.
34
+ */
35
+ public static final int ReadOnly = 1 << 7 ;
36
+ }
You can’t perform that action at this time.
0 commit comments