f9c26d23de
Removed redirecting functions/enums that were marked obsolete in 1.53 (December 2017).
omar2019-12-08 16:26:47 +01:00
e42c1e1668
Exposed IMGUI_DEBUG_PARANOID in imconfig.h + using a #define with no value to match other uses in imconfig.h
omar2019-12-08 16:12:44 +01:00
697f15e339
Added PrimUnreserve() API. Obsoleted calling ImDrawList::PrimReserve() with a negative count.
Ben Carterandomar2019-11-22 22:06:44 +09:00
e4a59d0025
TabItem: honor ImGuiTabItemFlags_NoCloseButton passed as parameter (although undocumented and part of private api) (#2923)
omar2019-12-07 16:22:07 +01:00
03b7170dac
Backends: GLFW: Added workaround for people who use development version of GLFW which is older than commit that added required cursor support. (#2922)
Rokas Kupstysandomar2019-12-06 16:08:04 +02:00
7ff13f4ee1
Examples: Explicitly adding -DIMGUI_IMPL_OPENGL_LOADER_GL3W to Makefile to match linking settings
omar2019-12-06 10:43:27 +01:00
b521cd357d
Removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent with other mouse functions.
omar2019-12-05 18:30:27 +01:00
6d9a54a904
Examples: Metal: Wrap main event loop body in an @autoreleasepool block to ensure allocations get freed even if underlying system event loop gets paused due to app nap (#2910, #2917)
Max Thrunandomar2019-12-01 23:11:58 -08:00
8342e5b91a
Amend previous commits (added ImGuiMouseCursor_NotAllowed enum + new cursors in GLFW 3.4)
omar2019-12-05 15:43:05 +01:00
945a509773
Implement ImGuiMouseCursor_NotAllowed mouse cursor.
Rokas Kupstysandomar2019-12-02 10:52:06 +02:00
26d177bc03
Docs: Moved misc/fonts/README.txt to docs/FONTS.txt. + tweaks
omar2019-11-25 18:29:28 +01:00
1615e9ea2a
CI: Enable extended warnings in example_null builds. CI: Add MinGW build with extra warnings on windows.
Rokas Kupstysandomar2019-11-25 14:02:47 +02:00
bbe0409942
Metrics: Show wire-frame mesh and approximate surface area when hovering ImDrawCmd. Amend aeb5795. Internals: Added ImTriangleArea()
omar2019-11-25 12:01:04 +01:00
aeb57952d6
Added area calculation for draw lists in metrics Added ability to hover over a draw list's summary stats and see all the contents in wireframe
Ben Carterandomar2019-11-22 20:22:03 +09:00
0cb1c633ff
Demo: tweaked demo help section, reference to "Examples" and "Tools". Reference to Keyboard navigation. Removed some of the more "obvious/standard" controls.
omar2019-11-24 23:11:53 +01:00
b205ab01f2
Internals: Added IM_ASSERT_PARANOID, IMGUI_DEBUG_PARANOID define. Shuffled a bit of the macros section in imgui_internal.h
omar2019-11-22 14:45:44 +01:00
51e2e9b239
ImVector: Added shrink() helper. ImFont::RenderText minor optimisation for debug build. Misc: Metrics shows tab names because we now have them.
omar2019-11-22 10:56:23 +01:00
ca63349eb4
Renamed XX-bits -> XX-bit in comments to match what the world appears to be using.
omar2019-11-20 11:58:25 +01:00
a899c1e570
Internals: Using ImU64 for internal ImFile api so we can later wrap them to fseeko/ftello//_fseeki64/_ftelli64 (#2734)
omar2019-11-20 10:40:14 +01:00
4e90906b04
Added IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS / IMGUI_DISABLE_FILE_FUNCTIONS #2734) Using in Emscripten example.
omar2019-11-19 21:14:44 +01:00
93efa5415f
Renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_STRING_FUNCTIONS. (#1038) Renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS.
omar2019-11-19 20:48:11 +01:00
9efaf2828b
Doc comments. Removed .ini parsing code from 1.53 that parsed entries without the [Window] tag (which enabled importing an old .ini file)
omar2019-11-19 15:22:42 +01:00
ca30ef4269
Drag and drop: Increase local payload buffer from 8 to 16 bytes.
omar2019-11-15 18:36:06 +01:00
7e232092a6
Internals: Added GetWindowResizeID(), renamed GetScrollbarID() to GetWindowScrollbarID(). Using integer for resize ID so they matches regardless of the pointer size. Internals: Renamed IMGUI_USER_ERROR to IM_ASSERT_USER_ERROR().
omar2019-11-15 16:44:16 +01:00
8f40020ca6
Disable Win32 clipboard and IME functions when build target UWP (#2892, #2895)
Tracy Maandomar2019-11-15 16:51:48 +08:00
be05e12e21
Misc: Using static_assert() when using C++11, instead of our own construct (avoid zealous Clang warnings).
omar2019-11-14 18:02:18 +01:00
b23dcab6e1
Fix 25eee91 incorrect assert when ending a child-popup (rarely used but used by sub-nenus)
omar2019-11-14 16:06:39 +01:00
be436e2b0b
Fix HelpMarker() symbol collision for unity builds (#2893)
omar2019-11-13 22:04:16 +01:00
03852470de
Internals: Routing recoverable user errors via IMGUI_USER_ERROR() macro. (#1651)
omar2019-11-13 21:58:18 +01:00
25eee91542
Error handling: Assert if user mistakenly calls End() instead of EndChild() on a child window. (#1651) Internals: Moved some error handling code.
omar2019-11-13 21:35:42 +01:00
b138f8cbcd
Internal: Nav rename preparing for nav inputs ownership changes. IsNavInputPressed() -> IsNavInputTest()
omar2019-11-12 23:54:22 +01:00
7c441e37fa
CI: Update jobs to MacOS latest (Catalina) Metrics: Added description to Item Picker.
omar2019-11-11 14:47:39 +01:00
6e8e2c0fa9
Scrollbar: Fixed an issue where scrollbars wouldn't display on the frame following a frame where all child window contents would be culled. Demo: Fixed a small bug with scrolling demo. Metrics: Tweaks.
omar2019-11-08 19:00:49 +01:00
57dc34f4e8
TreeNode: Added IsItemToggledOpen() to explicitly query if item was just open/closed, facilitating interactions with custom multi-selections patterns. (#1896, #1861)
omar2019-11-08 15:23:34 +01:00
011d475532
TreeNode: The collapsing arrow accepts click even if modifier keys are being held, facilitating interactions with multi-select patterns. (#2886, #1896, #1861)
omar2019-11-08 15:13:21 +01:00
037126ee0e
TreeNode: Reworded code for ImGuiTreeNodeFlags_OpenOnArrow (follow up to f79b2d6c) to make it lightweight. Should be a no-op from user's point of view. Will facilitate using the arrow hovering information in the hot path. (#2886)
omar2019-11-08 14:57:56 +01:00
d003674f2c
Internals: Added ImChunkStream, used by window settings. (more generic followup to 4c13807, the class will be used more extensively by Tables)
omar2019-11-07 16:05:03 +01:00
09b2310237
Internals: Added index of helpers and shuffled a few things.
omar2019-11-06 15:15:29 +01:00
4c13807b7d
Misc: Optimized storage of window settings data (reducing allocation count).
omar2019-11-05 22:43:53 +01:00
3929255b77
Examples: Emscripten: Removed BINARYEN_TRAP_MODE=clamp from Makefile which was removed in Emscripten 1.39.0 but required prior to 1.39.0, making life easier for absolutely no-one. (#2877, #2878) [@podsvirov]
omar2019-11-05 12:53:30 +01:00
c9ffa62e1f
Add .gitattributes with rules for line endings of files.
Rokas Kupstysandomar2019-10-30 17:50:02 +02:00
bcd752cfcc
CI: Fix emscripten builds after portable SDK archive became unavailable.
Rokas Kupstysandomar2019-11-04 09:50:50 +02:00
792a8631aa
Metrics: Expose basic details of each window key/value state storage.
omar2019-10-31 14:01:35 +01:00
8fee5a4349
Internals: Renaming for consistency.
omar2019-10-31 11:15:40 +01:00
5006639526
CI: Add scheduled builds and limit some examples to build only on schedule in order to decrease time of builds performed on each push.
Rokas Kupstysandomar2019-10-30 16:10:43 +02:00
5ebd4e4c6e
CI: Install SDL SDK in windows workers and add SDL examples to the build. CI: Add Vulkan GLFW and SDL builds to windows build job.
Rokas Kupstysandomar2019-10-30 11:30:46 +02:00
9f979c33f4
CI: Fix builds failing because of missing v140 toolset and SDK on dx12 sample.
Rokas Kupstysandomar2019-10-30 09:49:57 +02:00
d62a413476
Misc: Windows: Do not use _wfopen() if IMGUI_DISABLE_WIN32_FUNCTIONS is defined. (#2815)
omar2019-10-29 21:47:43 +01:00
6bf5aed325
Declaration and assignment can be joined, Member function may be 'const'. (#2875)
stfxandomar2019-10-28 13:02:59 +01:00
c863c1f6a1
Clean up number rounding. Now it is more obvious what code is doing. (#2862) Add IM_ROUND() macro Replace IM_FLOOR(n + 0.5f) and ImFloor(n + 0.5f) with IM_ROUND(n)
Rokas Kupstysandomar2019-10-29 17:04:13 +01:00
0b2d35f63f
Fix snprintf and vsnprintf definition inconsistencies.
Sam Hocevarandomar2019-10-28 12:46:45 +01:00
f002a11898
Backends: OpenGL3: Fix building with pre-3.2 GL bindings which do not expose glDrawElementsBaseVertex(), using runtime GL version to decide if we set ImGuiBackendFlags_RendererHasVtxOffset. (#2866, #2852) [@dpilawa]
omar2019-10-25 11:56:36 +02:00
4d0c88e9e6
Backends: GL3: Fix compile for < 3.2 bindings where glDrawElementsBaseVertex is not available. (#2866, #2852)
dawidandomar2019-10-25 11:40:50 +02:00
9b323a7ebf
SplitterBehavior: not using FrameRounding in render (was in first commit of the function, not sure why). (#319)
omar2019-10-25 11:05:14 +02:00
3c238ecae3
Move issue_template and pull_request_template to .github folder.
omar2019-10-24 11:26:45 +02:00
d5b5a81946
GitHub Actions CI script for Windows/Linux/MacOS/iOS/Emscripten builds.
Rokas Kupstysandomar2019-10-23 18:10:47 +03:00
24e9a6e92c
Remove .travis.yml due to switching to github actions.
Rokas Kupstysandomar2019-10-23 15:39:14 +03:00
ec0e953cca
Fixed a couple of subtle bounding box vertical positioning issues relating to text baseline alignment. The issue would generally manifest when laying out multiple items on a same line, with varying heights and text baseline offsets. (#2833) Some specific examples, e.g. a button with regular frame padding followed by another item with a multi-line label and no frame padding, such as: multi-line text, small button, tree node item, etc. The second item was correctly offset to match text baseline, and would interact/display correctly,but it wouldn't push the contents area boundary low enough. Note: previously the second parameter to ItemSize() was 0.0f was default, now -1.0f to signify "no text baseline offset request". If you have code using ItemSize() with an hardcoded zero you may need to change it. (+1 squashed commits)
omar2019-10-06 23:17:36 +02:00
75d540d336
Example: Emscripten: Fix for compilation (filesystem module is required) (#2734)
Funtoandomar2019-10-23 16:55:26 +02:00
be9f1e8f00
ColorPicker: Fixed SV triangle gradient to block (broken in 1.73). (#2864, #2711). [@lewa-j]
Alexeyandomar2019-10-23 00:45:59 +03:00
23c1ff4907
Removed redirecting functions/enums names that were marked obsolete in 1.52 (October 2017). - Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed - IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) - AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding(); - SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f) - ImFont::Glyph -> use ImFontGlyph If you were still using the old names, read "API Breaking Changes" section of imgui.cpp to find out the new names or equivalent features, or see how they were implemented until 1.73.
omar2019-10-22 14:43:04 +02:00
048b73dfaa
Various comments + Doc: Examples readme. Moved main menu bar code below menu bar code.
omar2019-10-21 16:12:46 +02:00
7dbae8a198
Doc: Simplified Readme, removed FAQ index
omarandGitHub2019-10-21 13:26:47 +02:00
6ffee0e75e
Backends: DX12: Added extra ID3D12DescriptorHeap parameter to ImGui_ImplDX12_Init() function. The value is unused in master branch but will be used by the multi-viewport features (docking branch). (#2851) + Using SafeRelease() in master.
omar2019-10-18 18:32:48 +02:00
eedc8f993f
Examples: DX12: Using IDXGIDebug1::ReportLiveObjects() when DX12_ENABLE_DEBUG_LAYER is enabled.
omar2019-10-18 18:20:53 +02:00
4de32cc87e
Backends: GLFW: Restore previously installed user callbacks in ImplGlfw when ImGui shuts down (#2836)
malte-vandomar2019-10-18 16:25:18 +02:00
53278be61f
FAQ, Readme. Use = {} instead of = { 0 }, wasn't problematic because they were all static variables or one stack array not read. But hey.
omar2019-10-18 12:54:30 +02:00
9994f5bcbe
Fixed more FAQ links, oops.. (#2848)
omar2019-10-16 11:28:45 +02:00
c21fdabb43
Doc: Readme: moving contents to FAQ.
omar2019-10-15 13:00:04 +02:00
a41f0b2df4
Inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function. IMPORTANT: Renamed internal CalcTypematicPressedRepeatAmount to CalcTypematicRepeatAmount and reordered the t1, t0 arguments to t0, t1 !! If you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can add +io.KeyRepeatDelay to it to compensate for the fix. The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0). Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay). Fixed the code and altered default io.KeyRepeatRate,Delay from 0.250,0.050 to 0.300,0.050 to compensate. If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you.
omar2019-10-14 23:07:06 +02:00
67e4cd5cc6
Comments, some logging for NavInitRequest debugging Moved OpenPopupOnItemClick() next to BeginPopupContextItem()
omar2019-10-14 14:08:56 +02:00