Commit Graph

789 Commits (c151f357513a076c68c1a969ebaf0f2fcda5b00a)
 

Author SHA1 Message Date
ocornut 2aee4419e3 Fixed compatibility with std::vector if user decide to #define ImVector
ocornut 9f2545e6bb Fixed comment
ocornut f3bd033b6d More fixes for ultra pedantic Clang -Weverything
ocornut b15532345b Using sqrtf, cosf, sinf. Made STB_TEXTEDIT_ implemtations static. Tweaks.
omar 15436b46e8 Merge pull request from emoon/master
Fixed Clang warnings
Daniel Collin b01adf16de Fixed more Clang warnings
Daniel Collin 428c4d4ece Fixed Clang warnings
omar 172ff0a262 Commenting unnecessary strlen calls that could be removed for speedup
omar c6f3d0924e Default 'text_end' parameter for low-level AddText/CalcTextSizeA functions
omar ac40284536 Fixed punctuation.
ocornut 191e17eaf8 Added IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT
ocornut 616668dac3 OpenGL example: uses offsetof() macros for vertice definition instead of hardcoded offsets
ocornut 36e52167da OpenGL example: made the render function save/restore OpenGL state properly-ish
ocornut 3f85fe2fe7 Cleanup and TODO list items
ocornut 447cc88e04 Fixed unaligned memory access - fix font loading when building on Emscripten
omar 9c707b6d8f Added assert to catch font data loading failure in a location that's easier to understand
omar 9b5493d1d9 Added assert to catch users using Begin/End without a first NewFrame
omar 8a65d97bf0 Warning fixes (now testing with Clang)
omar be93b842c1 Merge pull request from ybunyak/master
Fix namespaces for Value() and Color() functions.
Yaroslav Bunyak 7961c53145 Fix namespaces for Value() and Color() functions.
omar d3bc92a674 Added INDEX to top of imgui.cpp
Explicit namespace prefix on all ImGui:: functions.
Fixed some typos.
omar 4205241e86 PushTextWrapPos() defaults to 0.0
omar c97636aef4 Fixed lines clockwiseness to be consistent with other primitives.
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 74363c5a43 Fixed column using a "funny scale factor" (non power of two)
ocornut 0b10cf4bd7 Fixed some typos in comments
ocornut 3d84858755 Made with the NoResize flag can still use auto-fitting. Added SetWindowSize().
ocornut fad5e45d2c Minor tweaks
omar 05a3a9b962 Merge pull request from JarrettBillingsley/master
Added callback versions of PlotLines/PlotHistogram
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.
Jarrett Billingsley 4c4798546e Merge pull request from ocornut/master
GCC warning fix
ocornut f768579377 GCC warning fix
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."
omar 36212b9ad9 Merge pull request from seanmiddleditch/master
64-bit fixes
Sean Middleditch bebadb9012 64-bit fixes
`int` values are not the same thing as `size_t` nor `ptrdiff_t`. Convert incorrect uses of `int` to more appropriate types.

Fixes warnings for 64-bit compilations.
ocornut 530e746daa Renamed IMGUI_INCLUDE_IMGUI_USER_CPP to IMGUI_INCLUDE_IMGUI_USER_INL (more IDE friendly)
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.