694 Commits (2679bee28d72d10f8dc7622d51b609846ee393f3)

Author SHA1 Message Date
omar f2aa124eb8 Version 1.64 WIP ago%!(EXTRA string=7 years)
omar 9e0f24dcb6 Version 1.63 ago%!(EXTRA string=7 years)
omar 3612885dea Comments, demo ago%!(EXTRA string=7 years)
omar 0810d57819 Renamed IsItemDeactivatedAfterChange() to IsItemDeactivatedAfterEdit() for consistency with new IsItemEdited() API. Kept redirection function (will obsolete fast as IsItemDeactivatedAfterChange() is very recent). (#820, #956, #1875, #2034) ago%!(EXTRA string=7 years)
omar e28b1078f5 Added IsItemEdited() to query if the last item modified its value (or was pressed). This is equivalent to the bool returned by most widgets. It is useful in some situation e.g. using InputText() with ImGuiInputTextFlags_EnterReturnsTrue. (#2034) ago%!(EXTRA string=7 years)
omar ea9f5d7600 Added optional misc/stl/imgui_stl.h wrapper to use with STL types (e.g. InputText with std::string). (#2035, #2006, #1443, #1008) ago%!(EXTRA string=7 years)
omar 8d639ec60d InputText: callback InsertChars() support resize callbacks correctly (followup to 24ff259) + fixed demo to use those functions. (#2006, #1443, #1008). ago%!(EXTRA string=7 years)
omar 9f393c38e9 InputText: Renamed ImGuiTextEditCallback to ImGuiInputTextCallback, ImGuiTextEditCallbackData to ImGuiInputTextCallbackData for consistency. Kept redirection types (will obsolete). ago%!(EXTRA string=7 years)
omar 4de6e1f7e4 InputText: Internal renaming of some fields + final copy uses edit_state.CurLenA+1 instead of buf_size. ago%!(EXTRA string=7 years)
omar 9d8a0374d3 Use literals in place of LLONG_MIN, LLONG_MAX ULLONG_MAX if they are not available. Amend 498c0dcb4c. We prefer using the defines if available in limits.h because they somehow tend to work without warnings when enabling strict C++03 compilation. The 3 literals are fallbacks.. (#1926). ago%!(EXTRA string=7 years)
omar 87e2fea09d Renamed io.OptResizeWindowsFromEdges to ConfigResizeWindowsFromEdges, io.OptCursorBlink to io.ConfigCursorBlink, io.OptMacOSXBehaviors to ConfigMacOSXBehaviors for consistency. (#1427, #1495, #822, #473, #650) ago%!(EXTRA string=7 years)
omar 671e516377 Demo: Fix using ambiguous InputFloat() call which redirect to obsolete version. (#1990) ago%!(EXTRA string=7 years)
omar d5400d9517 Fixes for pre-C++11 compilers. ago%!(EXTRA string=7 years)
omar 2a67aeaa3d Visual Studio: calling into _vsnprintf. (#1085) ago%!(EXTRA string=7 years)
omar 6d78045ff8 Demo: Added extra demo in the Basic Horizontal Layout section. (#1977) + PR guidelines ago%!(EXTRA string=7 years)
omar e07f5d4c78 Changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecisions over time. ago%!(EXTRA string=7 years)
omar 0c207b7bc9 Demo: Clarified the use of IsItemHovered()/IsItemActive() right after being in the "Active, Focused, Hovered & Focused Tests" section. This will be of more importance with the introduction of tabs. ago%!(EXTRA string=7 years)
omar d3be9185b3 Demo: Fixed spacing from b629f90 change. ago%!(EXTRA string=7 years)
omar 73e13a0762 Examples: Tweaked the main.cpp example structure for all examples. (There are a few hidden agendas here: 1) I would like to avoid encouraging people from using the implicit "Debug" window, and promote using Begin/End. In spite of my best attempt, there are a few feature of the upcoming docking system that cannot work 100% properly for the implicit Debug window, so future proof let's not put that feature in the spotlight too much for new users. 2) Moved dumb hardcoded positions into a single spot that can be replaced with a viewport relative position and not affect other demo windows. 3) Calling ShowDemoWindow before anything else, also for the benefit of a specific docking demo which will have an ordering constraint which is not really problematic in a real app but shouldn't be put forward in the demo. ago%!(EXTRA string=7 years)
omar badde9a970 Demo: Spacing. ago%!(EXTRA string=7 years)
omar b629f90393 Demo: Re-ordered example app code to match their menu order and forward declaration order + added header to delimitate them. ago%!(EXTRA string=7 years)
omar c7016c25e8 Nav: Added a CTRL+TAB window list and changed the highlight system accordingly. (#787) ago%!(EXTRA string=7 years)
omar 6201cad2b4 Examples: Comments, Demo: Log early out, TODO. (#1553) ago%!(EXTRA string=7 years)
omar 17efd7b3b0 Demo: Added basic Drag and Drop demo. (#143, #1931) ago%!(EXTRA string=7 years)
omar 62b3d7c51e Fixed software Hand cursor from not actually working. Fixed demo from crashing. Fixed typo and extraneous trailing space. Added Changelogs. (#1913, #1914) ago%!(EXTRA string=7 years)
omar 14ceaaf460 ArrowButton: Fixed to honor PushButtonRepeat() setting (and internals' ImGuiItemFlags_ButtonRepeat). Setup current line text baseline so that ArrowButton() + SameLine() + Text() are aligned properly. ago%!(EXTRA string=7 years)
omar c1d8dee6c5 Version 1.63 WIP ago%!(EXTRA string=7 years)
omar fb0106fad2 Demo: Fixed incorrect response to Begin() returning false in overlay demo (which cannot happen since we don't have a title bar, but that doesn't make it a good behaving demo!). ago%!(EXTRA string=7 years)
omar 00418d13e3 Demo: Fixed mismatched TreePush/TreePop in Property Editor, due to incorrect revert in 826d77185e (#1895) ago%!(EXTRA string=7 years)
omar 1b74e3be02 Version 1.62 ago%!(EXTRA string=7 years)
omar 826d77185e Revert 640c0566: TreeNode: Fixed nodes with ImGuiTreeNodeFlags_Leaf flag always returning true which was meaningless -> more flexible to keep allowing it by default so it setup an ID scope. ago%!(EXTRA string=7 years)
omar d57fc7fb97 Added IsItemDeactivatedAfterChange() if the last item was active previously, isn't anymore, and during its active state modified a value. Note that you may still get false positive. (#820, #956, #1875) ago%!(EXTRA string=7 years)
omar be4b8b5615 Internals: Added GetItemID(), GetFocusID() for consistency. Made GetActiveID() inline. Comments, fixed typos, demo tweaks. ago%!(EXTRA string=7 years)
omar 3569d74f98 Demo: Moved test of the Hovered/Active/Focused functions to the Widgets section. ago%!(EXTRA string=7 years)
omar cd455a4600 Added IsItemDeactivated() to query if the last item was active previously but isn't anymore. Useful for Undo/Redo patterns. (#820, #956, #1875) ago%!(EXTRA string=7 years)
omar c725710c6d Comments ago%!(EXTRA string=7 years)
omar 2bdf0b54a2 Changelog formatting update, Todo, comments. Tweak Child demo. Shuffle some code in NavUpdate(). ago%!(EXTRA string=7 years)
omar bf56b6b9a5 ColorEdit3, ColorEdit4, ColorButton: Added ImGuiColorEditFlags_NoDragDrop flag to disable ColorEditX as drag target and ColorButton as drag source. (#1826) ago%!(EXTRA string=7 years)
omar d5c8f404b2 Remove trailing white spaces. ago%!(EXTRA string=7 years)
omar 640c056602 TreeNode: Fixed nodes with ImGuiTreeNodeFlags_Leaf flag always returning true which was meaningless. Tweak demo. ago%!(EXTRA string=7 years)
omar 036dce634e Version 1.62 WIP ago%!(EXTRA string=7 years)
omar 78b28d545f Version 1.61 + todo additions ago%!(EXTRA string=7 years)
omar d7cc4bc317 Demo: Tweaked custom rendering custom, added a Thickness drag. Clarified use of vertical/horizontal line. Add a single pixel demo (wowow) ago%!(EXTRA string=7 years)
omar 3f29ed6fd5 ColorEdit: Fixed not being able to pass the ImGuiColorEditFlags_NoAlpha or ImGuiColorEditFlags_HDR flags to SetColorEditOptions(). Demo tweak. ago%!(EXTRA string=7 years)
omar d53bae4c14 Demo: Fixing build due to using INT_MAX, UINT_MAX, LLONG_MAX, ULLONG_MAX. ago%!(EXTRA string=7 years)
omar 8adbf081af Demo: Renamed "fixed overlay" to "simple overlay" because it's not fixed any more! ago%!(EXTRA string=7 years)
omar a7a1b3b0a7 Demo: Added demo for DragScalar(), InputScalar(), SliderScalar(). (#643) ago%!(EXTRA string=7 years)
omar fc7fc83f9e Data types: DragScalar, InputScalar: default parameters. Added IM_STATIC_ASSERT(). Comments. ago%!(EXTRA string=7 years)
omar 0dc18a6ca6 Documentation tweaks, comments ago%!(EXTRA string=7 years)
omar 14f575ff76 Scrolling: Fixed a case where using SetScrollHere(1.0f) at the bottom of a window on the same frame the window height has been growing would have the scroll clamped using the previous height. (#1804) ago%!(EXTRA string=7 years)