1
0
mirror of https://github.com/ocornut/imgui.git synced 2025-02-17 19:09:27 +01:00

4757 Commits

Author SHA1 Message Date
Seth Kingsley
0a25a49e94 Assert that ImScoped::TreeNodeEx() is called without ImGuyTreeNodeFlags_NoTreePushOnOpen 2018-11-18 06:36:36 -08:00
Seth Kingsley
027861074c BeginGroup() and Tooltip don't have return values 2018-11-14 01:57:55 -08:00
Seth Kingsley
e6ff68a3b0 Rename imgui_raii -> imgui_scoped to match namespace 2018-11-14 01:52:23 -08:00
Seth Kingsley
f61b72728e More thoroughly parse arguments and defaults 2018-11-14 01:51:12 -08:00
Seth Kingsley
e26b91dcd0 Make operator bool() explicit 2018-11-13 21:58:45 -08:00
Seth Kingsley
f7a2c93fca Use macro to delete copy/move constructors/operators 2018-11-13 21:58:16 -08:00
Seth Kingsley
56374b8e08 Generate wrappers for remaining Begin/Push/Tree methods 2018-11-08 19:10:02 -08:00
Seth Kingsley
f42f3e6310 Wrap RAII helpers in namespace ImScoped 2018-11-08 16:45:47 -08:00
Seth Kingsley
79e1aebfce Get rid of duplicate renamed files 2018-11-08 16:26:39 -08:00
Seth Kingsley
f5b893d9b6 Merge branch 'raii' into HEAD 2018-10-23 18:53:13 -07:00
Seth Kingsley
ef8ec96c3c Delete the move and copy operators 2018-10-23 18:46:48 -07:00
Seth Kingsley
3583d6444d Use struct over class; all members are public 2018-10-23 18:45:59 -07:00
Seth Kingsley
542d8c8b12 Move RAII header into misc/cpp 2018-10-18 14:51:40 -07:00
Seth Kingsley
4cad375730 ImGui::End() must always be called after Begin() 2018-10-18 14:50:19 -07:00
Seth Kingsley
56429089be Put RAII header into a more appropriate location 2018-10-18 14:50:19 -07:00
Seth Kingsley
9f7de904d5 Add some RAII wrappers for ImGui calls 2018-10-18 14:50:19 -07:00
omar
82873c7ad4
Update README.md 2018-10-18 10:44:14 +02:00
omar
745f01022e Examples: Downgraded Xcode project object version (50->48) to support Xcode 9.2 (last version supported on macOS 10.12) (#2133, #1929) 2018-10-17 10:48:53 +02:00
omar
31fd6c585a Removed unnecessary ImGui:: qualifiers in internal code. 2018-10-17 10:47:27 +02:00
Warren Moore
b4488d4f48 Examples: Downgraded Xcode project object version (50->48) to support Xcode 9.2 (last version supported on macOS 10.12) (#2133) 2018-10-17 10:46:49 +02:00
omar
000c1fc221 Demo: Added comments / tweaks related to the popups. 2018-10-16 10:25:32 +02:00
omar
5be915d6ab Added ImGuiWindowFlags_NoMouseInputs which is basically the old ImGuiWindowFlags_NoInputs (essentially we have renamed ImGuiWindowFlags_NoInputs to ImGuiWindowFlags_NoMouseInputs). Made the new ImGuiWindowFlags_NoInputs encompass both NoMouseInputs+NoNav, which is consistent with its description. (#1660, #787) 2018-10-15 18:23:18 +02:00
omar
90b50bd4c3 Window: Added ImGuiWindowFlags_NoBackground flag for consistency and to ease creating new flag combinations. Added ImGuiWindowFlags_NoDecoration helper flag which is essentially NoTitleBar+NoResize+NoScrollbar+NoCollapse. (#1660) 2018-10-15 18:16:49 +02:00
Elias Daler
8606d9fa11 Fix Clang/GCC's null-conversion warning: (#2081)
The warning is "implicit conversion of NULL constant to 'unsigned int' [-Wnull-conversion]". Happens when ImTextureID is not a void*, but unsigned int, for example.
2018-10-15 17:07:06 +02:00
omar
b039dbc62e
Update README.md 2018-10-15 08:34:42 +02:00
Konstantin Podsvirov
edb06a6c4d Fixed typo in misc/README.txt (#2131) 2018-10-14 08:43:06 +02:00
omar
ca753829cb Revert using wchar_t functions (9cf94d5 + 2eaf5b0). Big mistake, wchar_t is not guaranteed to be 16-bits. 2018-10-12 15:48:38 +02:00
omar
28953208d4 Tests: Added imgui-test engine hooks (experimental). 2018-10-12 15:47:15 +02:00
omar
ede3a3b92d Fixes crash introduced in previous commit 9cf94d5. 2018-10-12 13:29:13 +02:00
omar
9cf94d5dd6 RenderText(), InputTextMultiline(): Optimization for large text by using memchr, wmemchr, wcschr when appropriate. 2018-10-12 12:34:47 +02:00
omar
0fe48cbb61 Renamed misc/stl/imgui_stl.h,.cpp to misc/cpp/imgui_stdlib.h in prevision for other files.(#2035, #2096)
Added misc/README file.
2018-10-12 11:16:51 +02:00
omar
74c0309126 InputText: Clarified comments around ImGuiInputTextFlags_CallbackResize and other callbacks. (#2006, #1443, #1008) 2018-10-12 10:34:58 +02:00
omar
ed4dcd9072 Shutdown: Unlock font atlas before destroying context, so we can destroy a context between NewFrame and EndFrame if we wait (facilitate main loop structures). Internals: GetWindowScrollMaxX(), GetWindowScrollMaxY() 2018-10-11 22:38:26 +02:00
omar
cf0afb48ac TextUnformatted: Using memchr(), fixed not properly testing for text_end bound + comments.
Internals: Added ImStreolRange() + used in LogRenderedText() + comments.
2018-10-11 12:53:10 +02:00
omar
d02b11dfbd ImGuiTextBuffer: Avoid heap allocation when empty. 2018-10-11 12:08:09 +02:00
omar
1efafa1d29 Comments + internal using Tab Stop terminology (ImGuiItemFlags_NoTabStop instead of !ImGuiItemFlags_AllowKeyboardFocus) 2018-10-10 12:09:06 +02:00
omar
3fcc178c23
Update README.md 2018-10-08 11:37:13 +02:00
omar
dd748f0e39 Update README.md 2018-10-08 11:22:33 +02:00
hesiod
500a60debc Examples: OpenGL3: Cast compile/link status to GLboolean (#2112, #2125)
Some OpenGL loaders/bindings do not allow comparisons between GLints and GLbooleans.
2018-10-07 18:14:24 +02:00
omar
02afbaeef0 Examples: imgui_imp_opengl3.cpp explicit casting for overly aggressive glbinding compatibility. (#2112) [@hesiod] 2018-10-06 11:35:05 +02:00
omar
a3b0e0acfa Examples: DirectX10, DirectX11: Removed seemingly unnecessary calls to invalidate and recreate device objects in the WM_SIZE handler. (#2088) 2018-10-05 11:36:49 +02:00
Michael Vetter
084c26aa41 Fix spacing in imgui_imp_sdl example (#2111) 2018-10-05 10:04:10 +02:00
Seth Kingsley
fb339a2425 ImGui::End() must always be called after Begin() 2018-10-04 21:00:38 -07:00
omar
3c427e284f
Update pull_request_template.md 2018-10-04 12:49:48 +02:00
Seth Kingsley
47ba043cc6 Put RAII header into a more appropriate location 2018-10-03 23:34:00 -07:00
Seth Kingsley
56433308db Add some RAII wrappers for ImGui calls 2018-10-03 20:23:31 -07:00
omar
fbfe193fcd Window, Inputs: Fixed resizing from edges when io.MousePos is not pixel-rounded by rounding mouse position input. (#2110) 2018-10-02 18:49:55 +02:00
omar
ae7f833c69 Window: Resizing from edges (with io.ConfigResizeWindowsFromEdges Beta flag) extends the hit region of root floating windows outside the window, making it easier to resize windows. Resize grips are also extended accordingly so there are no discontinuity when hovering between borders and corners. (#1495, #822, #2110) 2018-10-02 18:43:10 +02:00
omar
76e31bd51a Fixed typo. (#2108, #2083) 2018-10-01 17:56:06 +02:00
omar
e623be998d Drag and Drop: Added GetDragDropPayload() to peek directly into the payload (if any) from anywhere. (#143) 2018-10-01 15:53:18 +02:00