meltygui-imgui 2.0.0.post3__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. meltygui_imgui/__init__.py +879 -0
  2. meltygui_imgui/_compat.py +16 -0
  3. meltygui_imgui/ansifeed.pxd +20 -0
  4. meltygui_imgui/cimgui.pxd +2242 -0
  5. meltygui_imgui/common.pyx +75 -0
  6. meltygui_imgui/core.cp313-win_amd64.pyd +0 -0
  7. meltygui_imgui/core.cpp +189914 -0
  8. meltygui_imgui/core.h +51 -0
  9. meltygui_imgui/core.pxd +12 -0
  10. meltygui_imgui/core.pyx +12812 -0
  11. meltygui_imgui/enums.pxd +561 -0
  12. meltygui_imgui/enums_internal.pxd +200 -0
  13. meltygui_imgui/extra.py +36 -0
  14. meltygui_imgui/integrations/__init__.py +13 -0
  15. meltygui_imgui/integrations/base.py +33 -0
  16. meltygui_imgui/integrations/cocos2d.py +27 -0
  17. meltygui_imgui/integrations/glfw.py +133 -0
  18. meltygui_imgui/integrations/glumpy.py +369 -0
  19. meltygui_imgui/integrations/opengl.py +422 -0
  20. meltygui_imgui/integrations/pygame.py +152 -0
  21. meltygui_imgui/integrations/pyglet.py +245 -0
  22. meltygui_imgui/integrations/sdl2.py +136 -0
  23. meltygui_imgui/internal.cp313-win_amd64.pyd +0 -0
  24. meltygui_imgui/internal.cpp +13336 -0
  25. meltygui_imgui/internal.h +51 -0
  26. meltygui_imgui/internal.pxd +686 -0
  27. meltygui_imgui/internal.pyx +207 -0
  28. meltygui_imgui-2.0.0.post3.dist-info/DELVEWHEEL +2 -0
  29. meltygui_imgui-2.0.0.post3.dist-info/METADATA +146 -0
  30. meltygui_imgui-2.0.0.post3.dist-info/RECORD +38 -0
  31. meltygui_imgui-2.0.0.post3.dist-info/WHEEL +5 -0
  32. meltygui_imgui-2.0.0.post3.dist-info/licenses/LICENSE +28 -0
  33. meltygui_imgui-2.0.0.post3.dist-info/licenses/LICENSES/imgui-MIT.txt +21 -0
  34. meltygui_imgui-2.0.0.post3.dist-info/licenses/LICENSES/imstb_rectpack.h.license.txt +37 -0
  35. meltygui_imgui-2.0.0.post3.dist-info/licenses/LICENSES/imstb_textedit.h.license.txt +37 -0
  36. meltygui_imgui-2.0.0.post3.dist-info/licenses/LICENSES/imstb_truetype.h.license.txt +37 -0
  37. meltygui_imgui-2.0.0.post3.dist-info/top_level.txt +1 -0
  38. meltygui_imgui.libs/msvcp140-a4c2229bdc2a2a630acdc095b4d86008.dll +0 -0
@@ -0,0 +1,561 @@
1
+ cdef extern from "imgui.h":
2
+ ctypedef enum ImGuiKey_:
3
+ ImGuiKey_Tab,
4
+ ImGuiKey_LeftArrow,
5
+ ImGuiKey_RightArrow,
6
+ ImGuiKey_UpArrow,
7
+ ImGuiKey_DownArrow,
8
+ ImGuiKey_PageUp,
9
+ ImGuiKey_PageDown,
10
+ ImGuiKey_Home,
11
+ ImGuiKey_End,
12
+ ImGuiKey_Insert,
13
+ ImGuiKey_Delete,
14
+ ImGuiKey_Backspace,
15
+ ImGuiKey_Space,
16
+ ImGuiKey_Enter,
17
+ ImGuiKey_Escape,
18
+ ImGuiKey_KeyPadEnter,
19
+ ImGuiKey_A, # for text edit CTRL+A: select all
20
+ ImGuiKey_C, # for text edit CTRL+C: copy
21
+ ImGuiKey_V, # for text edit CTRL+V: paste
22
+ ImGuiKey_X, # for text edit CTRL+X: cut
23
+ ImGuiKey_Y, # for text edit CTRL+Y: redo
24
+ ImGuiKey_Z, # for text edit CTRL+Z: undo
25
+ ImGuiKey_COUNT
26
+
27
+ ctypedef enum ImGuiKeyModFlags_:
28
+ ImGuiKeyModFlags_None
29
+ ImGuiKeyModFlags_Ctrl
30
+ ImGuiKeyModFlags_Shift
31
+ ImGuiKeyModFlags_Alt
32
+ ImGuiKeyModFlags_Super
33
+
34
+
35
+ ctypedef enum ImGuiNavInput_:
36
+ # Gamepad Mapping
37
+ ImGuiNavInput_Activate, # activate / open / toggle / tweak value # e.g. Cross (PS4), A (Xbox), A (Switch), Space (Keyboard)
38
+ ImGuiNavInput_Cancel, # cancel / close / exit # e.g. Circle (PS4), B (Xbox), B (Switch), Escape (Keyboard)
39
+ ImGuiNavInput_Input, # text input / on-screen keyboard # e.g. Triang.(PS4), Y (Xbox), X (Switch), Return (Keyboard)
40
+ ImGuiNavInput_Menu, # tap: toggle menu / hold: focus, move, resize # e.g. Square (PS4), X (Xbox), Y (Switch), Alt (Keyboard)
41
+ ImGuiNavInput_DpadLeft, # move / tweak / resize window (w/ PadMenu) # e.g. D-pad Left/Right/Up/Down (Gamepads), Arrow keys (Keyboard)
42
+ ImGuiNavInput_DpadRight, #
43
+ ImGuiNavInput_DpadUp, #
44
+ ImGuiNavInput_DpadDown, #
45
+ ImGuiNavInput_LStickLeft, # scroll / move window (w/ PadMenu) # e.g. Left Analog Stick Left/Right/Up/Down
46
+ ImGuiNavInput_LStickRight, #
47
+ ImGuiNavInput_LStickUp, #
48
+ ImGuiNavInput_LStickDown, #
49
+ ImGuiNavInput_FocusPrev, # next window (w/ PadMenu) # e.g. L1 or L2 (PS4), LB or LT (Xbox), L or ZL (Switch)
50
+ ImGuiNavInput_FocusNext, # prev window (w/ PadMenu) # e.g. R1 or R2 (PS4), RB or RT (Xbox), R or ZL (Switch)
51
+ ImGuiNavInput_TweakSlow, # slower tweaks # e.g. L1 or L2 (PS4), LB or LT (Xbox), L or ZL (Switch)
52
+ ImGuiNavInput_TweakFast, # faster tweaks # e.g. R1 or R2 (PS4), RB or RT (Xbox), R or ZL (Switch)
53
+ ImGuiNavInput_COUNT
54
+
55
+ ctypedef enum ImGuiConfigFlags_:
56
+ ImGuiConfigFlags_None #
57
+ ImGuiConfigFlags_NavEnableKeyboard # Master keyboard navigation enable flag. NewFrame() will automatically fill io.NavInputs[] based on io.KeysDown[].
58
+ ImGuiConfigFlags_NavEnableGamepad # Master gamepad navigation enable flag. This is mostly to instruct your meltygui_imgui backend to fill io.NavInputs[]. Backend also needs to set ImGuiBackendFlags_HasGamepad.
59
+ ImGuiConfigFlags_NavEnableSetMousePos # Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth.
60
+ ImGuiConfigFlags_NavNoCaptureKeyboard # Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set.
61
+ ImGuiConfigFlags_NoMouse # Instruct meltygui_imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information set by the backend.
62
+ ImGuiConfigFlags_NoMouseCursorChange # Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from meltygui_imgui by reading GetMouseCursor() yourself instead.
63
+
64
+ # User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are not used by core Dear ImGui)
65
+ ImGuiConfigFlags_IsSRGB # Application is SRGB-aware.
66
+ ImGuiConfigFlags_IsTouchScreen # Application is using a touch screen instead of a mouse.
67
+
68
+
69
+ ctypedef enum ImGuiBackendFlags_:
70
+ ImGuiBackendFlags_None #
71
+ ImGuiBackendFlags_HasGamepad # Backend Platform supports gamepad and currently has one connected.
72
+ ImGuiBackendFlags_HasMouseCursors # Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape.
73
+ ImGuiBackendFlags_HasSetMousePos # Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set).
74
+ ImGuiBackendFlags_RendererHasVtxOffset # Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices.
75
+
76
+
77
+ ctypedef enum ImGuiCol_:
78
+ ImGuiCol_Text,
79
+ ImGuiCol_TextDisabled,
80
+ ImGuiCol_WindowBg, # Background of normal windows
81
+ ImGuiCol_ChildBg, # Background of child windows
82
+ ImGuiCol_PopupBg, # Background of popups, menus, tooltips windows
83
+ ImGuiCol_Border,
84
+ ImGuiCol_BorderShadow,
85
+ ImGuiCol_FrameBg, # Background of checkbox, radio button, plot, slider, text input
86
+ ImGuiCol_FrameBgHovered,
87
+ ImGuiCol_FrameBgActive,
88
+ ImGuiCol_TitleBg,
89
+ ImGuiCol_TitleBgActive,
90
+ ImGuiCol_TitleBgCollapsed,
91
+ ImGuiCol_MenuBarBg,
92
+ ImGuiCol_ScrollbarBg,
93
+ ImGuiCol_ScrollbarGrab,
94
+ ImGuiCol_ScrollbarGrabHovered,
95
+ ImGuiCol_ScrollbarGrabActive,
96
+ ImGuiCol_CheckMark,
97
+ ImGuiCol_SliderGrab,
98
+ ImGuiCol_SliderGrabActive,
99
+ ImGuiCol_Button,
100
+ ImGuiCol_ButtonHovered,
101
+ ImGuiCol_ButtonActive,
102
+ ImGuiCol_Header, # Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem
103
+ ImGuiCol_HeaderHovered,
104
+ ImGuiCol_HeaderActive,
105
+ ImGuiCol_Separator,
106
+ ImGuiCol_SeparatorHovered,
107
+ ImGuiCol_SeparatorActive,
108
+ ImGuiCol_ResizeGrip,
109
+ ImGuiCol_ResizeGripHovered,
110
+ ImGuiCol_ResizeGripActive,
111
+ ImGuiCol_Tab,
112
+ ImGuiCol_TabHovered,
113
+ ImGuiCol_TabActive,
114
+ ImGuiCol_TabUnfocused,
115
+ ImGuiCol_TabUnfocusedActive,
116
+ ImGuiCol_PlotLines,
117
+ ImGuiCol_PlotLinesHovered,
118
+ ImGuiCol_PlotHistogram,
119
+ ImGuiCol_PlotHistogramHovered,
120
+ ImGuiCol_TableHeaderBg, # Table header background
121
+ ImGuiCol_TableBorderStrong, # Table outer and header borders (prefer using Alpha=1.0 here)
122
+ ImGuiCol_TableBorderLight, # Table inner borders (prefer using Alpha=1.0 here)
123
+ ImGuiCol_TableRowBg, # Table row background (even rows)
124
+ ImGuiCol_TableRowBgAlt, # Table row background (odd rows)
125
+ ImGuiCol_TextSelectedBg,
126
+ ImGuiCol_DragDropTarget,
127
+ ImGuiCol_NavHighlight, # Gamepad/keyboard: current highlighted item
128
+ ImGuiCol_NavWindowingHighlight, # Highlight window when using CTRL+TAB
129
+ ImGuiCol_NavWindowingDimBg, # Darken/colorize entire screen behind the CTRL+TAB window list, when active
130
+ ImGuiCol_ModalWindowDimBg, # Darken/colorize entire screen behind a modal window, when one is active
131
+ ImGuiCol_COUNT
132
+
133
+
134
+ ctypedef enum ImGuiDataType_:
135
+ ImGuiDataType_S8 # signed char / char (with sensible compilers)
136
+ ImGuiDataType_U8 # unsigned char
137
+ ImGuiDataType_S16 # short
138
+ ImGuiDataType_U16 # unsigned short
139
+ ImGuiDataType_S32 # int
140
+ ImGuiDataType_U32 # unsigned int
141
+ ImGuiDataType_S64 # long long / __int64
142
+ ImGuiDataType_U64 # unsigned long long / unsigned __int64
143
+ ImGuiDataType_Float # float
144
+ ImGuiDataType_Double # double
145
+ ImGuiDataType_COUNT
146
+
147
+
148
+ ctypedef enum ImGuiStyleVar_:
149
+ ImGuiStyleVar_Alpha, # float Alpha
150
+ ImGuiStyleVar_WindowPadding, # ImVec2 WindowPadding
151
+ ImGuiStyleVar_WindowRounding, # float WindowRounding
152
+ ImGuiStyleVar_WindowBorderSize, # float WindowBorderSize
153
+ ImGuiStyleVar_WindowMinSize, # ImVec2 WindowMinSize
154
+ ImGuiStyleVar_WindowTitleAlign, # ImVec2 WindowTitleAlign
155
+ ImGuiStyleVar_ChildRounding, # float ChildRounding
156
+ ImGuiStyleVar_ChildBorderSize, # float ChildBorderSize
157
+ ImGuiStyleVar_PopupRounding, # float PopupRounding
158
+ ImGuiStyleVar_PopupBorderSize, # float PopupBorderSize
159
+ ImGuiStyleVar_FramePadding, # ImVec2 FramePadding
160
+ ImGuiStyleVar_FrameRounding, # float FrameRounding
161
+ ImGuiStyleVar_FrameBorderSize, # float FrameBorderSize
162
+ ImGuiStyleVar_ItemSpacing, # ImVec2 ItemSpacing
163
+ ImGuiStyleVar_ItemInnerSpacing, # ImVec2 ItemInnerSpacing
164
+ ImGuiStyleVar_IndentSpacing, # float IndentSpacing
165
+ ImGuiStyleVar_CellPadding, # ImVec2 CellPadding
166
+ ImGuiStyleVar_ScrollbarSize, # float ScrollbarSize
167
+ ImGuiStyleVar_ScrollbarRounding, # float ScrollbarRounding
168
+ ImGuiStyleVar_GrabMinSize, # float GrabMinSize
169
+ ImGuiStyleVar_GrabRounding, # float GrabRounding
170
+ ImGuiStyleVar_TabRounding, # float TabRounding
171
+ ImGuiStyleVar_ButtonTextAlign, # ImVec2 ButtonTextAlign
172
+ ImGuiStyleVar_SelectableTextAlign, # ImVec2 SelectableTextAlign
173
+ ImGuiStyleVar_COUNT
174
+
175
+ ctypedef enum ImGuiButtonFlags_:
176
+ ImGuiButtonFlags_None #
177
+ ImGuiButtonFlags_MouseButtonLeft # React on left mouse button (default)
178
+ ImGuiButtonFlags_MouseButtonRight # React on right mouse button
179
+ ImGuiButtonFlags_MouseButtonMiddle # React on center mouse button
180
+
181
+ ctypedef enum ImGuiCond_:
182
+ ImGuiCond_None # No condition (always set the variable), same as _Always
183
+ ImGuiCond_Always # No condition (always set the variable)
184
+ ImGuiCond_Once # Set the variable once per runtime session (only the first call will succeed)
185
+ ImGuiCond_FirstUseEver # Set the variable if the object/window has no persistently saved data (no entry in .ini file)
186
+ ImGuiCond_Appearing # Set the variable if the object/window is appearing after being hidden/inactive (or the first time)
187
+
188
+ ctypedef enum ImGuiWindowFlags_:
189
+ ImGuiWindowFlags_None
190
+ ImGuiWindowFlags_NoTitleBar # Disable title-bar
191
+ ImGuiWindowFlags_NoResize # Disable user resizing with the lower-right grip
192
+ ImGuiWindowFlags_NoMove # Disable user moving the window
193
+ ImGuiWindowFlags_NoScrollbar # Disable scrollbars (window can still scroll with mouse or programmatically)
194
+ ImGuiWindowFlags_NoScrollWithMouse # Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set.
195
+ ImGuiWindowFlags_NoCollapse # Disable user collapsing window by double-clicking on it
196
+ ImGuiWindowFlags_AlwaysAutoResize # Resize every window to its content every frame
197
+ ImGuiWindowFlags_NoBackground # Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f).
198
+ ImGuiWindowFlags_NoSavedSettings # Never load/save settings in .ini file
199
+ ImGuiWindowFlags_NoMouseInputs # Disable catching mouse, hovering test with pass through.
200
+ ImGuiWindowFlags_MenuBar # Has a menu-bar
201
+ ImGuiWindowFlags_HorizontalScrollbar # 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.
202
+ ImGuiWindowFlags_NoFocusOnAppearing # Disable taking focus when transitioning from hidden to visible state
203
+ ImGuiWindowFlags_NoBringToFrontOnFocus # Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus)
204
+ ImGuiWindowFlags_AlwaysVerticalScrollbar # Always show vertical scrollbar (even if ContentSize.y < Size.y)
205
+ ImGuiWindowFlags_AlwaysHorizontalScrollbar=1 # Always show horizontal scrollbar (even if ContentSize.x < Size.x)
206
+ ImGuiWindowFlags_AlwaysUseWindowPadding # Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient)
207
+ ImGuiWindowFlags_NoNavInputs # No gamepad/keyboard navigation within the window
208
+ ImGuiWindowFlags_NoNavFocus # No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB)
209
+ ImGuiWindowFlags_UnsavedDocument # 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.
210
+ ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus,
211
+ ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse,
212
+ ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus,
213
+
214
+
215
+ ctypedef enum ImGuiColorEditFlags_:
216
+ ImGuiColorEditFlags_None #
217
+ ImGuiColorEditFlags_NoAlpha # # ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer).
218
+ ImGuiColorEditFlags_NoPicker # # ColorEdit: disable picker when clicking on color square.
219
+ ImGuiColorEditFlags_NoOptions # # ColorEdit: disable toggling options menu when right-clicking on inputs/small preview.
220
+ ImGuiColorEditFlags_NoSmallPreview # # ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs)
221
+ ImGuiColorEditFlags_NoInputs # # ColorEdit, ColorPicker: disable inputs sliders/text widgets (e.g. to show only the small preview color square).
222
+ ImGuiColorEditFlags_NoTooltip # # ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview.
223
+ ImGuiColorEditFlags_NoLabel # # ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker).
224
+ ImGuiColorEditFlags_NoSidePreview # # ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead.
225
+ ImGuiColorEditFlags_NoDragDrop # # ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source.
226
+ ImGuiColorEditFlags_NoBorder # # ColorButton: disable border (which is enforced by default)
227
+
228
+ # User Options (right-click on widget to change some of them).
229
+ ImGuiColorEditFlags_AlphaBar # # ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker.
230
+ ImGuiColorEditFlags_AlphaPreview # # ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque.
231
+ ImGuiColorEditFlags_AlphaPreviewHalf# # ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque.
232
+ ImGuiColorEditFlags_HDR # # (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well).
233
+ ImGuiColorEditFlags_DisplayRGB # [Display] # ColorEdit: override _display_ type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex.
234
+ ImGuiColorEditFlags_DisplayHSV # [Display] # "
235
+ ImGuiColorEditFlags_DisplayHex # [Display] # "
236
+ ImGuiColorEditFlags_Uint8 # [DataType] # ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0..255.
237
+ ImGuiColorEditFlags_Float # [DataType] # ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers.
238
+ ImGuiColorEditFlags_PickerHueBar # [Picker] # ColorPicker: bar for Hue, rectangle for Sat/Value.
239
+ ImGuiColorEditFlags_PickerHueWheel # [Picker] # ColorPicker: wheel for Hue, triangle for Sat/Value.
240
+ ImGuiColorEditFlags_InputRGB # [Input] # ColorEdit, ColorPicker: input and output data in RGB format.
241
+ ImGuiColorEditFlags_InputHSV # [Input] # ColorEdit, ColorPicker: input and output data in HSV format.
242
+
243
+ # Defaults Options. You can set application defaults using SetColorEditOptions(). The intent is that you probably don't want to
244
+ # override them in most of your calls. Let the user choose via the option menu and/or call SetColorEditOptions() once during startup.
245
+ ImGuiColorEditFlags__OptionsDefault = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar,
246
+
247
+
248
+ ctypedef enum ImGuiSliderFlags_:
249
+ ImGuiSliderFlags_None #
250
+ ImGuiSliderFlags_AlwaysClamp # Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds.
251
+ ImGuiSliderFlags_Logarithmic # Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits.
252
+ ImGuiSliderFlags_NoRoundToFormat # Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits)
253
+ ImGuiSliderFlags_NoInput # Disable CTRL+Click or Enter key allowing to input text directly into the widget
254
+
255
+
256
+ ctypedef enum ImGuiMouseButton_:
257
+ ImGuiMouseButton_Left
258
+ ImGuiMouseButton_Right
259
+ ImGuiMouseButton_Middle
260
+ ImGuiMouseButton_COUNT
261
+
262
+
263
+ ctypedef enum ImGuiTreeNodeFlags_:
264
+ ImGuiTreeNodeFlags_None
265
+ ImGuiTreeNodeFlags_Selected # Draw as selected
266
+ ImGuiTreeNodeFlags_Framed # Draw frame with background (e.g. for CollapsingHeader)
267
+ ImGuiTreeNodeFlags_AllowItemOverlap # Hit testing to allow subsequent widgets to overlap this one
268
+ ImGuiTreeNodeFlags_NoTreePushOnOpen # Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack
269
+ ImGuiTreeNodeFlags_NoAutoOpenOnLog # Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes)
270
+ ImGuiTreeNodeFlags_DefaultOpen # Default node to be open
271
+ ImGuiTreeNodeFlags_OpenOnDoubleClick # Need double-click to open node
272
+ ImGuiTreeNodeFlags_OpenOnArrow # Only open when clicking on the arrow part. If ImGuiTreeNodeFlags_OpenOnDoubleClick is also set, single-click arrow or double-click all box to open.
273
+ ImGuiTreeNodeFlags_Leaf # No collapsing, no arrow (use as a convenience for leaf nodes).
274
+ ImGuiTreeNodeFlags_Bullet # Display a bullet instead of arrow
275
+ ImGuiTreeNodeFlags_FramePadding # Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding().
276
+ ImGuiTreeNodeFlags_SpanAvailWidth # Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line. In the future we may refactor the hit system to be front-to-back, allowing natural overlaps and then this can become the default.
277
+ ImGuiTreeNodeFlags_SpanFullWidth # Extend hit box to the left-most and right-most edges (bypass the indented area).
278
+ ImGuiTreeNodeFlags_NavLeftJumpsBackHere # (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop)
279
+ # ImGuiTreeNodeFlags_NoScrollOnOpen # FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible
280
+ ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog
281
+
282
+
283
+ ctypedef enum ImGuiPopupFlags_:
284
+ ImGuiPopupFlags_None #
285
+ ImGuiPopupFlags_MouseButtonLeft # For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left)
286
+ ImGuiPopupFlags_MouseButtonRight # For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right)
287
+ ImGuiPopupFlags_MouseButtonMiddle # For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle)
288
+ ImGuiPopupFlags_MouseButtonMask_ #
289
+ ImGuiPopupFlags_MouseButtonDefault_ #
290
+ ImGuiPopupFlags_NoOpenOverExistingPopup # For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack
291
+ ImGuiPopupFlags_NoOpenOverItems # For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space
292
+ ImGuiPopupFlags_AnyPopupId # For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup.
293
+ ImGuiPopupFlags_AnyPopupLevel # For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level)
294
+ ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel
295
+
296
+
297
+ ctypedef enum ImGuiSelectableFlags_:
298
+ ImGuiSelectableFlags_None
299
+ ImGuiSelectableFlags_DontClosePopups # Clicking this don't close parent popup window
300
+ ImGuiSelectableFlags_SpanAllColumns # Selectable frame can span all columns (text will still fit in current column)
301
+ ImGuiSelectableFlags_AllowDoubleClick # Generate press events on double clicks too
302
+ ImGuiSelectableFlags_Disabled # Cannot be selected, display grayed out text
303
+ ImGuiSelectableFlags_AllowItemOverlap # (WIP) Hit testing to allow subsequent widgets to overlap this one
304
+
305
+
306
+ ctypedef enum ImGuiComboFlags_:
307
+ ImGuiComboFlags_None
308
+ ImGuiComboFlags_PopupAlignLeft # Align the popup toward the left by default
309
+ ImGuiComboFlags_HeightSmall # Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo()
310
+ ImGuiComboFlags_HeightRegular # Max ~8 items visible (default)
311
+ ImGuiComboFlags_HeightLarge # Max ~20 items visible
312
+ ImGuiComboFlags_HeightLargest # As many fitting items as possible
313
+ ImGuiComboFlags_NoArrowButton # Display on the preview box without the square arrow button
314
+ ImGuiComboFlags_NoPreview # Display only a square arrow button
315
+ ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest
316
+
317
+
318
+ ctypedef enum ImGuiTabBarFlags_:
319
+ ImGuiTabBarFlags_None #
320
+ ImGuiTabBarFlags_Reorderable # Allow manually dragging tabs to re-order them + New tabs are appended at the end of list
321
+ ImGuiTabBarFlags_AutoSelectNewTabs # Automatically select new tabs when they appear
322
+ ImGuiTabBarFlags_TabListPopupButton # Disable buttons to open the tab list popup
323
+ ImGuiTabBarFlags_NoCloseWithMiddleMouseButton # Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
324
+ ImGuiTabBarFlags_NoTabListScrollingButtons # Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll)
325
+ ImGuiTabBarFlags_NoTooltip # Disable tooltips when hovering a tab
326
+ ImGuiTabBarFlags_FittingPolicyResizeDown # Resize tabs when they don't fit
327
+ ImGuiTabBarFlags_FittingPolicyScroll # Add scroll buttons when tabs don't fit
328
+ ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll
329
+ ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown
330
+
331
+
332
+ ctypedef enum ImGuiTabItemFlags_:
333
+ ImGuiTabItemFlags_None #
334
+ ImGuiTabItemFlags_UnsavedDocument # Append '*' to title without affecting the ID, as a convenience to avoid using the ### operator. Also: tab is selected on closure and closure is deferred by one frame to allow code to undo it without flicker.
335
+ ImGuiTabItemFlags_SetSelected # Trigger flag to programmatically make the tab selected when calling BeginTabItem()
336
+ ImGuiTabItemFlags_NoCloseWithMiddleMouseButton # Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
337
+ ImGuiTabItemFlags_NoPushId # Don't call PushID(tab->ID)/PopID() on BeginTabItem()/EndTabItem()
338
+ ImGuiTabItemFlags_NoTooltip # Disable tooltip for the given tab
339
+ ImGuiTabItemFlags_NoReorder # Disable reordering this tab or having another tab cross over this tab
340
+ ImGuiTabItemFlags_Leading # Enforce the tab position to the left of the tab bar (after the tab list popup button)
341
+ ImGuiTabItemFlags_Trailing # Enforce the tab position to the right of the tab bar (before the scrolling buttons)
342
+
343
+ # [BETA API] API may evolve slightly!
344
+ ctypedef enum ImGuiTableFlags_:
345
+ # Features
346
+ ImGuiTableFlags_None #
347
+ ImGuiTableFlags_Resizable # Enable resizing columns.
348
+ ImGuiTableFlags_Reorderable # Enable reordering columns in header row (need calling TableSetupColumn() + TableHeadersRow() to display headers)
349
+ ImGuiTableFlags_Hideable # Enable hiding/disabling columns in context menu.
350
+ ImGuiTableFlags_Sortable # Enable sorting. Call TableGetSortSpecs() to obtain sort specs. Also see ImGuiTableFlags_SortMulti and ImGuiTableFlags_SortTristate.
351
+ ImGuiTableFlags_NoSavedSettings # Disable persisting columns order, width and sort settings in the .ini file.
352
+ ImGuiTableFlags_ContextMenuInBody # Right-click on columns body/contents will display table context menu. By default it is available in TableHeadersRow().
353
+ # Decorations
354
+ ImGuiTableFlags_RowBg # Set each RowBg color with ImGuiCol_TableRowBg or ImGuiCol_TableRowBgAlt (equivalent of calling TableSetBgColor with ImGuiTableBgFlags_RowBg0 on each row manually)
355
+ ImGuiTableFlags_BordersInnerH # Draw horizontal borders between rows.
356
+ ImGuiTableFlags_BordersOuterH # Draw horizontal borders at the top and bottom.
357
+ ImGuiTableFlags_BordersInnerV # Draw vertical borders between columns.
358
+ ImGuiTableFlags_BordersOuterV # Draw vertical borders on the left and right sides.
359
+ ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH # Draw horizontal borders.
360
+ ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV # Draw vertical borders.
361
+ ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH # Draw inner borders.
362
+ ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH # Draw outer borders.
363
+ ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter # Draw all borders.
364
+ ImGuiTableFlags_NoBordersInBody # [ALPHA] Disable vertical borders in columns Body (borders will always appears in Headers). -> May move to style
365
+ ImGuiTableFlags_NoBordersInBodyUntilResize # [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appears in Headers). -> May move to style
366
+ # Sizing Policy (read above for defaults)
367
+ ImGuiTableFlags_SizingFixedFit # Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width.
368
+ ImGuiTableFlags_SizingFixedSame # Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible.
369
+ ImGuiTableFlags_SizingStretchProp # Columns default to _WidthStretch with default weights proportional to each columns contents widths.
370
+ ImGuiTableFlags_SizingStretchSame # Columns default to _WidthStretch with default weights all equal, unless overriden by TableSetupColumn().
371
+ # Sizing Extra Options
372
+ ImGuiTableFlags_NoHostExtendX # Make outer width auto-fit to columns, overriding outer_size.x value. Only available when ScrollX/ScrollY are disabled and Stretch columns are not used.
373
+ ImGuiTableFlags_NoHostExtendY # Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible.
374
+ ImGuiTableFlags_NoKeepColumnsVisible # Disable keeping column always minimally visible when ScrollX is off and table gets too small. Not recommended if columns are resizable.
375
+ ImGuiTableFlags_PreciseWidths # Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth.
376
+ # Clipping
377
+ ImGuiTableFlags_NoClip # Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze().
378
+ # Padding
379
+ ImGuiTableFlags_PadOuterX # Default if BordersOuterV is on. Enable outer-most padding. Generally desirable if you have headers.
380
+ ImGuiTableFlags_NoPadOuterX # Default if BordersOuterV is off. Disable outer-most padding.
381
+ ImGuiTableFlags_NoPadInnerX # Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off).
382
+ # Scrolling
383
+ ImGuiTableFlags_ScrollX # Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this create a child window, ScrollY is currently generally recommended when using ScrollX.
384
+ ImGuiTableFlags_ScrollY # Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size.
385
+ # Sorting
386
+ ImGuiTableFlags_SortMulti # Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1).
387
+ ImGuiTableFlags_SortTristate # Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0).
388
+
389
+ ctypedef enum ImGuiTableColumnFlags_:
390
+ # Input configuration flags
391
+ ImGuiTableColumnFlags_None #
392
+ ImGuiTableColumnFlags_DefaultHide # Default as a hidden/disabled column.
393
+ ImGuiTableColumnFlags_DefaultSort # Default as a sorting column.
394
+ ImGuiTableColumnFlags_WidthStretch # Column will stretch. Preferable with horizontal scrolling disabled (default if table sizing policy is _SizingStretchSame or _SizingStretchProp).
395
+ ImGuiTableColumnFlags_WidthFixed # Column will not stretch. Preferable with horizontal scrolling enabled (default if table sizing policy is _SizingFixedFit and table is resizable).
396
+ ImGuiTableColumnFlags_NoResize # Disable manual resizing.
397
+ ImGuiTableColumnFlags_NoReorder # Disable manual reordering this column, this will also prevent other columns from crossing over this column.
398
+ ImGuiTableColumnFlags_NoHide # Disable ability to hide/disable this column.
399
+ ImGuiTableColumnFlags_NoClip # Disable clipping for this column (all NoClip columns will render in a same draw command).
400
+ ImGuiTableColumnFlags_NoSort # Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table).
401
+ ImGuiTableColumnFlags_NoSortAscending # Disable ability to sort in the ascending direction.
402
+ ImGuiTableColumnFlags_NoSortDescending # Disable ability to sort in the descending direction.
403
+ ImGuiTableColumnFlags_NoHeaderWidth # Disable header text width contribution to automatic column width.
404
+ ImGuiTableColumnFlags_PreferSortAscending # Make the initial sort direction Ascending when first sorting on this column (default).
405
+ ImGuiTableColumnFlags_PreferSortDescending # Make the initial sort direction Descending when first sorting on this column.
406
+ ImGuiTableColumnFlags_IndentEnable # Use current Indent value when entering cell (default for column 0).
407
+ ImGuiTableColumnFlags_IndentDisable # Ignore current Indent value when entering cell (default for columns > 0). Indentation changes _within_ the cell will still be honored.
408
+
409
+ # Output status flags, read-only via TableGetColumnFlags()
410
+ ImGuiTableColumnFlags_IsEnabled # Status: is enabled == not hidden by user/api (referred to as "Hide" in _DefaultHide and _NoHide) flags.
411
+ ImGuiTableColumnFlags_IsVisible # Status: is visible == is enabled AND not clipped by scrolling.
412
+ ImGuiTableColumnFlags_IsSorted # Status: is currently part of the sort specs
413
+ ImGuiTableColumnFlags_IsHovered # Status: is hovered by mouse
414
+
415
+ ctypedef enum ImGuiTableRowFlags_:
416
+ ImGuiTableRowFlags_None #
417
+ ImGuiTableRowFlags_Headers # Identify header row (set default background color + width of its contents accounted different for auto column width)
418
+
419
+ ctypedef enum ImGuiTableBgTarget_:
420
+ ImGuiTableBgTarget_None #
421
+ ImGuiTableBgTarget_RowBg0 # Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used)
422
+ ImGuiTableBgTarget_RowBg1 # Set row background color 1 (generally used for selection marking)
423
+ ImGuiTableBgTarget_CellBg # Set cell background color (top-most color)
424
+
425
+
426
+ ctypedef enum ImGuiFocusedFlags_:
427
+ ImGuiFocusedFlags_None #
428
+ ImGuiFocusedFlags_ChildWindows # IsWindowFocused(): Return true if any children of the window is focused
429
+ ImGuiFocusedFlags_RootWindow # IsWindowFocused(): Test from root window (top most parent of the current hierarchy)
430
+ ImGuiFocusedFlags_AnyWindow # IsWindowFocused(): Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ!
431
+ ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows
432
+
433
+
434
+ ctypedef enum ImGuiHoveredFlags_:
435
+ ImGuiHoveredFlags_None # Return true if directly over the item/window, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them.
436
+ ImGuiHoveredFlags_ChildWindows # IsWindowHovered() only: Return true if any children of the window is hovered
437
+ ImGuiHoveredFlags_RootWindow # IsWindowHovered() only: Test from root window (top most parent of the current hierarchy)
438
+ ImGuiHoveredFlags_AnyWindow # IsWindowHovered() only: Return true if any window is hovered
439
+ ImGuiHoveredFlags_AllowWhenBlockedByPopup # Return true even if a popup window is normally blocking access to this item/window
440
+ # ImGuiHoveredFlags_AllowWhenBlockedByModal # Return true even if a modal popup window is normally blocking access to this item/window. FIXME-TODO: Unavailable yet.
441
+ ImGuiHoveredFlags_AllowWhenBlockedByActiveItem # Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns.
442
+ ImGuiHoveredFlags_AllowWhenOverlapped # Return true even if the position is obstructed or overlapped by another window
443
+ ImGuiHoveredFlags_AllowWhenDisabled # Return true even if the item is disabled
444
+ ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped,
445
+ ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows
446
+
447
+
448
+ ctypedef enum ImGuiDragDropFlags_:
449
+ ImGuiDragDropFlags_None
450
+ # BeginDragDropSource() flags
451
+ ImGuiDragDropFlags_SourceNoPreviewTooltip # By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disable this behavior.
452
+ ImGuiDragDropFlags_SourceNoDisableHover # By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disable this behavior so you can still call IsItemHovered() on the source item.
453
+ ImGuiDragDropFlags_SourceNoHoldToOpenOthers # Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item.
454
+ ImGuiDragDropFlags_SourceAllowNullID # Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear meltygui_imgui ecosystem and so we made it explicit.
455
+ ImGuiDragDropFlags_SourceExtern # External source (from outside of dear meltygui_imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously.
456
+ ImGuiDragDropFlags_SourceAutoExpirePayload # Automatically expire the payload if the source cease to be submitted (otherwise payloads are persisting while being dragged)
457
+ # AcceptDragDropPayload() flags
458
+ ImGuiDragDropFlags_AcceptBeforeDelivery # AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered.
459
+ ImGuiDragDropFlags_AcceptNoDrawDefaultRect # Do not draw the default highlight rectangle when hovering over target.
460
+ ImGuiDragDropFlags_AcceptNoPreviewTooltip # Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site.
461
+ ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect # For peeking ahead and inspecting the payload before delivery.
462
+
463
+ ctypedef enum ImGuiDir_:
464
+ ImGuiDir_None
465
+ ImGuiDir_Left
466
+ ImGuiDir_Right
467
+ ImGuiDir_Up
468
+ ImGuiDir_Down
469
+ ImGuiDir_COUNT
470
+
471
+ ctypedef enum ImGuiSortDirection_:
472
+ ImGuiSortDirection_None #
473
+ ImGuiSortDirection_Ascending # Ascending = 0->9, A->Z etc.
474
+ ImGuiSortDirection_Descending # Descending = 9->0, Z->A etc.
475
+
476
+ ctypedef enum ImGuiMouseCursor_:
477
+ ImGuiMouseCursor_None
478
+ ImGuiMouseCursor_Arrow
479
+ ImGuiMouseCursor_TextInput, # When hovering over InputText, etc.
480
+ ImGuiMouseCursor_ResizeAll, # (Unused by Dear ImGui functions)
481
+ ImGuiMouseCursor_ResizeNS, # When hovering over an horizontal border
482
+ ImGuiMouseCursor_ResizeEW, # When hovering over a vertical border or a column
483
+ ImGuiMouseCursor_ResizeNESW, # When hovering over the bottom-left corner of a window
484
+ ImGuiMouseCursor_ResizeNWSE, # When hovering over the bottom-right corner of a window
485
+ ImGuiMouseCursor_Hand, # (Unused by Dear ImGui functions. Use for e.g. hyperlinks)
486
+ ImGuiMouseCursor_NotAllowed, # When hovering something with disallowed interaction. Usually a crossed circle.
487
+ ImGuiMouseCursor_COUNT
488
+
489
+ ctypedef enum ImGuiInputTextFlags_:
490
+ ImGuiInputTextFlags_None #
491
+ ImGuiInputTextFlags_CharsDecimal # Allow 0123456789.+-*/
492
+ ImGuiInputTextFlags_CharsHexadecimal # Allow 0123456789ABCDEFabcdef
493
+ ImGuiInputTextFlags_CharsUppercase # Turn a..z into A..Z
494
+ ImGuiInputTextFlags_CharsNoBlank # Filter out spaces, tabs
495
+ ImGuiInputTextFlags_AutoSelectAll # Select entire text when first taking mouse focus
496
+ ImGuiInputTextFlags_EnterReturnsTrue # Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function.
497
+ ImGuiInputTextFlags_CallbackCompletion # Callback on pressing TAB (for completion handling)
498
+ ImGuiInputTextFlags_CallbackHistory # Callback on pressing Up/Down arrows (for history handling)
499
+ ImGuiInputTextFlags_CallbackAlways # Callback on each iteration. User code may query cursor position, modify text buffer.
500
+ ImGuiInputTextFlags_CallbackCharFilter # Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
501
+ ImGuiInputTextFlags_AllowTabInput # Pressing TAB input a '\t' character into the text field
502
+ ImGuiInputTextFlags_CtrlEnterForNewLine # In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter).
503
+ ImGuiInputTextFlags_NoHorizontalScroll # Disable following the cursor horizontally
504
+ ImGuiInputTextFlags_AlwaysOverwrite # Overwrite mode
505
+ ImGuiInputTextFlags_AlwaysInsertMode # OBSOLETED in 1.82
506
+ ImGuiInputTextFlags_ReadOnly # Read-only mode
507
+ ImGuiInputTextFlags_Password # Password mode, display all characters as '*'
508
+ ImGuiInputTextFlags_NoUndoRedo # 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().
509
+ ImGuiInputTextFlags_CharsScientific # Allow 0123456789.+-*/eE (Scientific notation input)
510
+ ImGuiInputTextFlags_CallbackResize # 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)
511
+ ImGuiInputTextFlags_CallbackEdit # Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active)
512
+
513
+ # OBSOLETED in 1.82 (from Mars 2021) -> use ImDrawFlags_
514
+ ctypedef enum ImDrawCornerFlags_:
515
+ ImDrawCornerFlags_None #
516
+ ImDrawCornerFlags_TopLeft # 0x1
517
+ ImDrawCornerFlags_TopRight # 0x2
518
+ ImDrawCornerFlags_BotLeft # 0x4
519
+ ImDrawCornerFlags_BotRight # 0x8
520
+ ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight, # 0x3
521
+ ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight, # 0xC
522
+ ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft, # 0x5
523
+ ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight, # 0xA
524
+ ImDrawCornerFlags_All # In your function calls you may use ~0 (= all bits sets) instead of ImDrawCornerFlags_All, as a convenience
525
+
526
+ ctypedef enum ImDrawFlags_:
527
+ ImDrawFlags_None #
528
+ ImDrawFlags_Closed # PathStroke(), AddPolyline(): specify that shape should be closed (Important: this is always == 1 for legacy reason)
529
+ ImDrawFlags_RoundCornersTopLeft # AddRect(), AddRectFilled(), PathRect(): enable rounding top-left corner only (when rounding > 0.0f, we default to all corners). Was 0x01.
530
+ ImDrawFlags_RoundCornersTopRight # AddRect(), AddRectFilled(), PathRect(): enable rounding top-right corner only (when rounding > 0.0f, we default to all corners). Was 0x02.
531
+ ImDrawFlags_RoundCornersBottomLeft # AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-left corner only (when rounding > 0.0f, we default to all corners). Was 0x04.
532
+ ImDrawFlags_RoundCornersBottomRight # AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-right corner only (when rounding > 0.0f, we default to all corners). Wax 0x08.
533
+ ImDrawFlags_RoundCornersNone # AddRect(), AddRectFilled(), PathRect(): disable rounding on all corners (when rounding > 0.0f). This is NOT zero, NOT an implicit flag!
534
+ ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight,
535
+ ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
536
+ ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft,
537
+ ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight,
538
+ ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
539
+ ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, # Default to ALL corners if none of the _RoundCornersXX flags are specified.
540
+ ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone
541
+
542
+
543
+ ctypedef enum ImDrawListFlags_:
544
+ ImDrawListFlags_None #
545
+ ImDrawListFlags_AntiAliasedLines # Enable anti-aliased lines/borders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles)
546
+ ImDrawListFlags_AntiAliasedLinesUseTex # Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering.
547
+ ImDrawListFlags_AntiAliasedFill # Enable anti-aliased edge around filled shapes (rounded rectangles, circles).
548
+ ImDrawListFlags_AllowVtxOffset # Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled.
549
+
550
+ ctypedef enum ImFontAtlasFlags_:
551
+ ImFontAtlasFlags_None #
552
+ ImFontAtlasFlags_NoPowerOfTwoHeight # Don't round the height to next power of two
553
+ ImFontAtlasFlags_NoMouseCursors # Don't build software mouse cursors into the atlas (save a little texture memory)
554
+ ImFontAtlasFlags_NoBakedLines # Don't build thick line textures into the atlas (save a little texture memory). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU).
555
+
556
+ ctypedef enum ImGuiViewportFlags_:
557
+ ImGuiViewportFlags_None #
558
+ ImGuiViewportFlags_IsPlatformWindow # Represent a Platform Window
559
+ ImGuiViewportFlags_IsPlatformMonitor # Represent a Platform Monitor (unused yet)
560
+ ImGuiViewportFlags_OwnedByApp # Platform Window: is created/managed by the application (rather than a dear meltygui_imgui backend)
561
+