Commit Graph

5614 Commits (70975fe44d22dc758c5b6ba430107ee2b4a16b74)
 

Author SHA1 Message Date
omar 70975fe44d Demo: Added a black and white gradient to Demo>Examples>Custom Rendering.
omar d8948b5343 ColorButton: Added ImGuiColorEditFlags_NoBorder flag to remove the border normally enforced by default.
Rokas Kupstys 21b9e42964 Minor fixes to example_sdl_metal and a changelog entry.
Add example_sdl_metal to CI builds.

Closes .
coding_jackalope f346b4b302 Examples: SDL+Metal example.
omar d16c87a5b1 Internals: Minor renaming
omar 58b3e02b95 Version 1.75
Comments
omar d37d25470a Added IMGUI_DISABLE compile-time definition to make all headers and sources empty.
omar f694244dec InputText: Fix using a combination of _CallbackResize + _EnterReturnsTrue + lack of persisting user storage. ()
Amend 24ff25981 (, , )
omar bdbb2b21f5 Fix 83efdcec from overflowing buffer + make it a single undo records + comments ()
Rokas Kupstys 83efdcec8d Canceling text input with [esc] key uses stb_textedit facilities to restore original value. This makes restoration undoable using hotkeys.
Fixes .
omar 5a437f198c Internals: GetItemStatusFlags(). Added Comments.
omar fc42528f13 When testing for the presence of the ImGuiWindowFlags_NoBringToFrontOnFocus flag we test both the focused/clicked window (which could be a child window) and the root window.
omar fc41839cab Focus: Reworking FocusWindow() so in Docking branch we can fix CTRL+Tab being out of order on Docked windows because WindowsFocusOreder is poorly maintained.
When merging this and d9bca0d8 in Docking we'll replace two ocurrences of RootWindow with RootWindowDockStop.
omar fb257eef3e Internals: Update ->RootWindow and other links before applying the SetNextWindowXXX stuff. This is so FocusWindow() can always assume that ->RootWindow != NULL.
omar d9bca0d853 Nav: Fixed a bug where the initial CTRL-Tab press while in a child window sometimes selected the current root window instead of always selecting the previous root window. ()
omar d19297e2fa InputTextMultiline: Provide label to BeginChildEx so internal window name hold a little more context.
omar 47fab0e166 Misc renaming, comments. Docs: add missing spacing to Changelog.
Rokas Kupstys 9cff4d6e5e Columns: ImDrawList::Channels* functions now work inside columns.
Use a private splitter in columns, paving way for removal of obsolete ImDrawList::Channels* functions.
omar 05a49f0413 Examples: Emscripten: Demonstrating embedding fonts in Makefile and code. () [@Oipo]
Konstantin Podsvirov 8cbb693f47 Emscripten: Allow filesystem support. ()
Filesystem functions perfectly work for Emscripten platform. This changes remove extra changes added by .
You can still disable filesystem functions by defining IMGUI_DISABLE_FILE_FUNCTIONS.
omar 6e1f8be07b Window: Fix SetNextWindowBgAlpha(1.0f) failing to override alpha component. ()
omar 0a23582718 Examples: VS projects: Removed inconsistent/extraneous explicit linkage to imm32.
omar 0e89041997 Internals: ButtonEx, ButtonBehavior can support multiple mouse buttons.
omar 5f4dfad5b7 Merge misc/shallow changes from Docking to reduce drift.
Most are comments. Fix menu bar clipping: 07ff47bf1b
omar 6c1a73774d Tooltip: Testing DragDropWithinSourceOrTarget in BeginTooltipEx() instead of just BeginTooltip() - feel this was an overlook. Added tooltip flags instead of using bool.
omar 4d4e3b97f4 TODO, Readme
(dropped TreeNode_NoIndent flag from todo, as it feels unnecessary)
Konstantin Podsvirov b887259974 Bindings: Improved FreeGLUT support for MinGW ()
omar f6da5000bf Backends: OpenGL2: Explicitly backup, setup and restore GL_TEXTURE_ENV to increase compatibility with legacy OpenGL applications. ()
omar 5363af7f47 AddCircle, AddCircleFilled: Add auto-calculation of circle segment counts (amends)
Tweak default max error value, Changelog, comments, path-fast for 12 segments circles, made LUT store ImU8
Ben Carter 051ce0765e AddCircle, AddCircleFilled: Add auto-calculation of circle segment counts
omar 2eda3585e7 Fixed hoverable/focus bug introduced in 3fe6ae97 ()
+ ArrowButtonEx() internal bits.
Rokas Kupstys 7a22767483 CI: Add MSVC extra warnings build and correct labels of other extra warnings builds.
omar 3fe6ae9732 Internals: Move some Nav functions and members around (no functional change) + Misc comments
omar 0a3df4b2ce
Update FAQ.md
omar 15c6abe4be Internals: Standard math functions default redirection uses a define instead of an extraneous inline function call
omar 8bcac7d95c Backends: GLFW, SDL: report Windows key (io.KeySuper) as always released.
Neither GLFW nor SDL can correctly report the key release in every cases (e.g. when using Win+V) causing problems with some widgets. The next release of GLFW (3.4+) will have a fix for it. However since it is both difficult and discouraged to make use of this key for Windows application anyway, we just hide it. ()
omar e499497ec5 Backends: Win32: Added support for io.KeySuper (Windows key) for consistency with other backends. ()
Even if realistically it is difficult to make good use of under Windows.
+ Style editor: Use a more explicit form of RadioButton() to avoid being depending on underlying flags type. ()
omar 2478dbfdb7 Disable warning C5054 introduced in VS 2019 16.2 ()
Loïc Molinari 6c00d1916e Disable format checks when using stb_sprintf.h
STB sprintf allows extra formats like %b or %$d. If ImGui is configured
to use STB sprintf, it generates warnings with GCC and clang when using
such formats because it keeps applying default printf-style warnings.
This commit disables printf-style warnings when using STB sprintf.

Since the printf-style warnings are defined in imgui.h based on the
compiler, IMGUI_USE_STB_SPRINTF can't just be defined in the cpp file
anymore and it's been moved as a proper config in imconfig.h.
omar aa34681652 Backends: GLFW: inhibit error callback when creating cursors because X11 setups may be missing them + comment ()
omar 9ad4c5da7e Fix zealous warnings + Internals: Renamed members from XxxxID to XxxxxId to be more consistent with rest of the codebase (still some inconsistency left that are harder to fix)
omar f6d6880a61 Internals: Nav: PushFocusScope, PopFocusScope, GetFocusScopeID() helpers
omar 2ebe08be40 Focus, Nav: Merged bits from RangeSelect features to enable early manipulation of focus scope for styling purpose.
FocusScopeId is tracked by nav scoring/request and stored in result.
It's all rather WIP and we should reorganize the SetNavIDXXX functions fiasco at some point (soon?).
Didn't separate FocusScope from SelectionScope for now, will re-investigate this later, this is the minimum commit to be able to do some styling.
omar 4f7bf7e96a Backends: Win32: Added support for #define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD and IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT. ()
omar e2eb0b4bc4 Internals: Begin tries to setup WindowTemp/DC members in same order as their declaration. Readme: remove Coverity banner (PVS is better)
omar 02c2d18aa3 Internals: Renaming and marking of legacy focus/tabbing system
omar 52334ad8df Internals: Minor ordering/comments of ImGuiWindowTempData.
omar f56962cb9a ColorEdit: "Copy As" context-menu tool shows hex values with a '#' prefix instead of '0x' + both with/without alpha when available.
omar ff5299e0e0 Docs: FAQ, Comments.
omar 4b3c5ff5f1 Comments + minor moving