Commit Graph

488 Commits (9d4d7f33814816fcb1c02dd8e285b34eff6ed90b)

Author SHA1 Message Date
omar 8c4fcf1359 Added ImGuiWindowFlags_AlwaysAutoResize + example app. Calling SetWindowSize(0,0) force an autofit without zero-sizing first.
omar 5f8175abaa Version number
omar cf037b4769 PushStyleColor/PushStyleVar can be used outside the scope of a window. Added 'count' parameter to PopStyleColor/PopStyleVar
ocornut 97192606a6 Fixed Tab > space
ocornut 2aee4419e3 Fixed compatibility with std::vector if user decide to #define ImVector
ocornut f3bd033b6d More fixes for ultra pedantic Clang -Weverything
Daniel Collin b01adf16de Fixed more Clang warnings
omar c6f3d0924e Default 'text_end' parameter for low-level AddText/CalcTextSizeA functions
ocornut 191e17eaf8 Added IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT
omar 4205241e86 PushTextWrapPos() defaults to 0.0
omar ee3355fe8e Version number
omar 1e30400f80 Added PushStyleVar(),PopStyleVar() helpers.
BeginChild() allows to specify negative sizes to specify "use remaining minus xx".
Added a simple example console into the demo window.
omar 3a64c77826 Renamed IsHovered() to IsItemHovered()
omar e19f0d370a Added dummy IMGUI_API definition in front of entry-points for silly DLL action
omar 6c192f3221 Added GetContentRegionMax() supporting columns. Some bug fixes with using columns.
omar 78645a7dba Added word-wrapping API TextWrapped(), PushTextWrapPos(), PopTextWrapPos()
Added word-wrapping sample in the test window.
Added IsItemFocused() to tell if last widget is being focused for keyboard input.
ocornut 3d84858755 Made with the NoResize flag can still use auto-fitting. Added SetWindowSize().
ocornut fad5e45d2c Minor tweaks
Jarrett Billingsley 85eee4a4c5 Added overloads of ImGui::PlotLines and ImGui::PlotHistogram which take a value getter function instead of raw value data, and changed the implementation of the original overloads to use this new implementation.
ocornut e6eafd6fa8 Fixed warnings for GCC -Wpedantic
omar 1037bacc4b Version number
omar 89a412690c Added comment on return value of Begin()
omar af37fb1ee7 Added GetWindowFont(), GetWindowFontSize() + comments following user's feedback
ocornut 9f05a2bb16 Fixed unlikely buffer overrun in InputCharacters (thanks Daniel Collin)
ocornut 48a944813c Moved UserData
ocornut 1d9a4748de Added a UserData void *pointer so that the callback functions can access user state
"Just in case a project has adverse reactions to adding globals or
statics in their own code."
ocornut ce481ec702 SetKeyboardFocusHere() allow for an offset to access sub components + comments
ocornut f1ea630dd0 SetKeyboardFocusHere() sets focus on next widget instead of previous + works on tabbing-disabled widgets
ocornut ffc8264e9d Added SetKeyboardFocusHere() to set focus from code. Fixed tabbing through tab-disabled fields.
ocornut 0fa3d6e25f Version number and font documentation
ocornut f898e658bb Added IO.FontFallbackGlyph (default to '?') + UTF-8 test in demo window
ocornut b86505bf2f Support for international text input in UTF-8. Added ImeSetInputScreenPosFn(). Removed text_end parameter from SetClipboardTextF
ocornut a61b92f362 Merge branch 'master' of https://github.com/ocornut/imgui
ocornut 51bbe1d961 Handle UTF-8 decoding for rendering and text size calculation
Yaroslav Bunyak bd3c53754d Fix build errors.
ocornut a1162ac001 Tab to spaces
ocornut 3cd1b8a37b Update version number in sources
ocornut 746951691a Added va_list variations of all functions taking ... parameters (from Andrea Pessino)
ocornut 8eafb373f7 Warning fixes (from Andrea Pessino)
ocornut fec4232c79 Moved IM_MALLOC/IM_FREE/etc. to IO structure members one can set at runtime.
ocornut 85672fec2e Added IsPosHoveringAnyWindow()
ocornut d5ed586d70 Added IsMouseHoveringWindow(), IsMouseHoveringAnyWindow()
ocornut d58a029285 Tweak comments following feedbacks.
ocornut 05a42ba3a6 Added IO.FontBaseScale for global rescale. Renamed SetFontScale to SetWindowFontScale
ocornut 4ea2af7ea5 Fixed wrong array size in header file (apessino)
ocornut 24028911e3 Added version number in sources
ocornut 62d233aaab Added extra_flags parameters to InputInt(), InputFloat(). Used in example code. Commented out broken ImGuiInputTextFlags_AlignCenter.
Thomas Buck 7439df0ba1 Added ImGuiInputTextFlags_EnterReturnsTrue
ocornut 91059da1a5 Added more comments in the code.
ocornut c07ab1b56a Minor tweaks to "Memory override" pull request
Sepehr Taghdisian 25080d53e5 Memory override
ocornut 3b339efeb2 Added IO.FontYOffset. Added asserts.
ocornut 8fc50f5ed3 Remove IO.FontHeight, cached automatically. Added assertions.
ocornut dd5d251273 Added SetCursorPosX, SetCursorPosY shortcuts
ocornut 2fb63b6068 Checkbox() return true when pressed
ocornut 7adad71042 Moved IMGUI_FONT_TEX_UV_FOR_WHITE define to a variable so font can be changed at runtime
ocornut 88c33ecc29 Fixes to allow clean 1-pixel thick lines in more use cases. PixelCenterOffset not the same as previously!
ocornut d17a586738 Fixed ImGuiTextFilter triming of leading/trailing blanks. Documented "Filtering" section of demo better.
ocornut 5864c45fe3 Fix type conversion compiler warnings (from dadeos)
ocornut 67f17a644c Converted all Tabs to Spaces
Argh
ocornut e807d97089 Exposed CalcTextSize(), GetCursorScreenPos() for more advanced fiddling
ocornut 42d4b4be6a Converted all Tabs to Spaces (git diff -w shows an empty diff)
ocornut 76a39ad224 Added global Alpha in ImGuiStyle + commented ImGuiStyle fields in .h
Sepehr Taghdisian aa7fc37b37 removed malloc/free proxy fwd declares
Sepehr Taghdisian c2cb727ac9 memory override attempt
Sepehr Taghdisian 47fd8431c1 minor fixes
ocornut 926f7bfcc5 Added InputFloat4(), SliderFloat4() helpers.
ocornut 931a4c5b49 Renamed ImVector<> members.
Sepehr Taghdisian 5240013c90 merge with upstream
Sepehr Taghdisian 1956703c42 First attempt at memory management
ocornut ade21a1ad5 PlotLines(), PlotHistogram(): added a stride parameter.
ocornut fa0aa5ace6 Added storage for up to 5 mouse buttons for convenience (even though ImGui itself only uses 1)
ocornut 6267905a17 Added BeginTooltip()/EndTooltip() helpers to create tooltips with custom widgets
ocornut 2bc6346b48 Added TextColored() helper. Changed some parameters to const references (still allows implicit casting)
ocornut a830037eab Default "local only" clipboard handler on non-Windows platforms
ocornut 309ff44579 Undo IsHovered > IsItemHovered, shorter name wins
ocornut f30d23a502 Tweaks, more consistent #define names
ocornut a905505cca Added GetItemBoxMin(),GetItemBoxMax(), renamed IsHovered()-->IsItemHovered()
ocornut 9a426faf4f Added InputFloat2(), SliderFloat2()
Dale Kim c52a54ef43 Fix for gcc type qualifier warnings.
With -Wall -Wextra -Werror, it is not possible to compile against
imgui.h due to const correctness violation in ImVector.
ocornut ddc7f8b0b0 Simplified ImDrawList system (samples are 20 lines shorter) + merged title bar draw bar.
ocornut 2573ffb6fc Fixed warnings for more stringent compilation settings. Added various small helpers.
ocornut 150ad95bd6 Missing assert + comments
ocornut ab8561e6fc Tweaked checkbox/radio default hover color to be less distracting. Added GetItemWidth(). Added text filter to style editor.
Mirolyub Hristov 28df6f39d9 Added ImGuiCol_CheckHovered to show hovered checkboxes and radio buttons
ocornut 86d2c9d232 Commented samples and shuffled bits of the initialisation based on user's feedback.
ocornut 8ab2942716 Added PixelCenterOffset for OpenGL/DirectX compatibility.
ocornut dbd777232a Initial release