849 Commits (cb38caeda402e5b32c67b1c61ffe3e0b123b5651)

Author SHA1 Message Date
omar cb38caeda4 Examples: Added more comments near the fonts loading section, to catch common questions and errors (e.g. #1397, #1366, #1341, #1222, #1193, #1115, #951, etc.) ago%!(EXTRA string=8 years)
omar c503a50cff Styles: Moved Classic colors code to imgui_draw.cpp. Sneakily added a StyleColorsDark() function. ago%!(EXTRA string=8 years)
omar 77df1ba9e0 Version 1.53 WIP ago%!(EXTRA string=8 years)
omar b422f35872 IO: Tracking extra mouse dragging data which is convenient for implementating various manual drag and drop patterns. ago%!(EXTRA string=8 years)
omar 9f200d10d5 Version 1.52 ago%!(EXTRA string=8 years)
omar 8dd7648db2 Comments ago%!(EXTRA string=8 years)
omar 3656f2c769 NewFrame: Allow MovedWindow setting the ImGuiWindowFlags_NoInputs after moving has started in order to be able to detect windows below it, which is useful for e.g. docking mechanisms. ago%!(EXTRA string=8 years)
omar a6ff14d66e Exposed IM_ARRAYSIZE() in imgui.h ago%!(EXTRA string=8 years)
omar 7f880674e5 Font: Renamed ImFont::Clear() to ImFont::ClearOutputData() for consistency with what ImFontAtlas does. DisplayOffset is set by constructor but not reset by ClearOutputData. (#1349) ago%!(EXTRA string=8 years)
omar 43df7eb5ea Added OpenPopupOnItemClick(); helper which mimic BeginPopupContextItem() but doesn't do the open. ago%!(EXTRA string=8 years)
omar 564ff2dfd3 IsItemHovered(), IsWindowHovered(): added flags to enable various and more specific behavior. Will enable improvements for popups/context menus and drag'n drop. (relate ~#439, #1013, #143, #925) ago%!(EXTRA string=8 years)
omar d29a6a5a5a Moved IMGUI_DISABLE_OBSOLETE_FUNCTIONS block lower in the imgui.h file so obsolete functions can use flags. Also sane to quarantine them outside of the respectable area. ago%!(EXTRA string=8 years)
omar e384078d7a IO: reordering some supposedly private fields. ago%!(EXTRA string=8 years)
omar 03b76bf05b Begin: Marked 5 parameters version of Begin() as obsolete. Now waiting for a riot to happen! ago%!(EXTRA string=8 years)
omar 1a35766356 BeginPopupContextItem() now supports a NULL string identifier and uses the last item ID if available. For interactive items (that have an ID) this works! For non interactive items we assert. ago%!(EXTRA string=8 years)
omar 43b4a81b3e Rnamed AlignFirstTextHeightToWidgets() to AlignTextToFramePadding(). Kept inline redirection function (will obsolete). ago%!(EXTRA string=8 years)
omar c6e370a77a TreeNode: Added ImGuiTreeNodeFlags_FramePadding flag ago%!(EXTRA string=8 years)
omar 335c8dd159 Comments (clarifying whether types are to be considered as flags or regular, non combinable enums) ago%!(EXTRA string=8 years)
omar a8788e51a7 SetKeyboardFocusHere() added assert to prevent passing values smaller than -1 as we may have to outlaw them (I think nobody was using that) ago%!(EXTRA string=8 years)
omar 67ac7da30f Styles: Added ImGuiStyle::ScaleAllSizes(float) helper to make it easier to have application transition to e.g. High DPI with a matching style. ago%!(EXTRA string=8 years)
omar f99348711b Added VerticalSeparator() entry point in imgui_internal. Seperator() in an horizontal layout context still does that. ago%!(EXTRA string=8 years)
omar 09f6f564d9 ImFontAtlas: Fixed calling Clear() and rebuilding (broken in 3fe2ecfd4c) thanks @pdoane @mikesart ago%!(EXTRA string=8 years)
omar 3fe2ecfd4c ImFontAtlas: Added support for CustomRect API to submit custom rectangles to be packed into the atlas / and map them as font glyphs ago%!(EXTRA string=8 years)
omar 501e73feed Minor comments ago%!(EXTRA string=8 years)
omar 9e1ad7295f ImFont: Renamed (supposedly internal) fields (e.g. XAdvance to AdvanceX). Custom text renderers might be affected if they didn't use the GetCharAdvance() helper function. ago%!(EXTRA string=8 years)
omar 10bb9524eb ImFont: Renamed ImFont::Glyph to ImFontGlyph (for consistency and so ImFontAtlas types can use it without ordering half of the file). Left a redirection type. ago%!(EXTRA string=8 years)
omar 2170b0b278 ImFontAtlas: Comments and minor reorganization of declaration in header file. ago%!(EXTRA string=8 years)
omar 529ca279a4 ImFont: Split some building code into a AddGlyph() helper (that custom rect code and imgui_freetype can use) ago%!(EXTRA string=8 years)
omar 728deff56c Comments, debug code (commented), todo list ago%!(EXTRA string=8 years)
omar 99b9f1c93c Fix static misusage error with decent compilers. Error introduced in 4b82759598 ago%!(EXTRA string=8 years)
omar 4b82759598 SetNextWindowPos: added a ImVec2 pivot parameter for positioning a given a center, bottom-right position, etc. As a generalization of SetNextWindowPosCenter() which is now obsolete. This will be useful for combo-like popups as well. ago%!(EXTRA string=8 years)
omar 1ff27d7db8 Added io.WantMoveMouse flags from Nav branch so Examples/Binding can already implement it. (#787) ago%!(EXTRA string=8 years)
omar f0f86213db ImVector: added resize() variant with initialization value ago%!(EXTRA string=8 years)
omar 7c9e38f60a Style: Moving code in a function to make incoming diff easier to parse. ago%!(EXTRA string=8 years)
omar f63c03c464 Internals: moved ButtonRepeat and AllowKeyboardFocus bools/stacks to a generic ItemFlags stack. Merged from Navigation branch. ago%!(EXTRA string=8 years)
omar 804ee78731 Added IsWindowAppearing(). ago%!(EXTRA string=8 years)
omar fd684ba974 Removed 2 obsolete redirection functions (obsoleted 26+ months ago). ago%!(EXTRA string=8 years)
omar 358e7a194e Added GetKeyPressedAmount() (from Nav branch) to be able to measure fast repeat rate accurately. Added internal CalcTypematicPressedRepeatAmount() function. ago%!(EXTRA string=8 years)
omar ee42fae468 Merge various minor things (supposedly harmless) from Navigation branch into Master to reduce differences. (#787) ago%!(EXTRA string=8 years)
omar 5938f1ba61 Added IsMousePosValid() helper. ago%!(EXTRA string=8 years)
omar f72ca6d22c ImFontConfig: Added RasterizerMultiply option to alter the brightness of individual fonts at rasterization time, which may help increasing readability for some. Added RasterizerFlags for custom rasterizer flags (aka imgui_freetype) ago%!(EXTRA string=8 years)
omar 304de0ee1b ImFontConfig: Comments, const. ago%!(EXTRA string=8 years)
omar 92a6faca6f IO: io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previously ImVec2(-1,-1) was enough but we'll now accept negative mouse coordinates. ago%!(EXTRA string=8 years)
omar 37f3a718c6 Marked all fmt + va_list functions with format attribute so GCC/Clang can warn about them. Not ignoring -Wsuggest-attribute=format anymore for GCC/Clang. ago%!(EXTRA string=8 years)
omar 40f608ce9b Version 1.52 WIP ago%!(EXTRA string=8 years)
omar 55a6209931 Version 1.51 ago%!(EXTRA string=8 years)
omar eb2bbf6f29 Renamed IsItemHoveredRect() to IsItemRectHovered(). Renamed IsMouseHoveringWindow() to IsWindowRectHovered() - follow up to previous commit 6be7d4904e merged from Nav. ago%!(EXTRA string=8 years)
omar 52b39af0a0 Style: Added obsolete redirects for ImGuiCol_Columns*** fields. (ref 648f75b245) ago%!(EXTRA string=8 years)
omar 6be7d4904e Merge part of 88c1966629 from Nav branch. Renamed IsMouseHoveringAnyWindow() -> IsAnyWindowHovered(), IsMouseHoveringWindow() -> IsWindowHoveredRect() for consistency. Kept inline rediection function. ago%!(EXTRA string=8 years)
ocornut 50b3a14d0a Merge 2545d75c3b from Nav - Tidying up, removed two unnecessary window flags from being exposed in imgui.h ago%!(EXTRA string=8 years)