Commit Graph

  • 7e772f6a51 Docking: Fixed undocking whole node (from collapse/docking menu button) from losing its size/pos. Made collapose/docking menu id easier to compute for testing. omar 2019-05-18 18:42:59 +0200
  • 31e3e861ef Update changelog, comments, made empty/no-text clipboard return NULL as with other implementation. Minor style tweaks. (#2546) Fixed IMGUI_DISABLE_WIN32_FUNCTIONS not disabling IME code. omar 2019-05-18 17:44:09 +0200
  • 02de498a41 Add native mac copy/paste support to match win32 (#2546) Andrew Willmott 2019-05-18 16:34:58 +0100
  • 2e5860b5a0 Docking: Fixed incomplete merge of 36e714a leading to undocking. #2109 omar 2019-05-18 13:00:00 +0200
  • e6109a9145 Fixed ColorEdit breakage introduced by d3a387c (#2557, #1875, #2034) omar 2019-05-18 11:18:12 +0200
  • 679cf7434e Fix undefined behavior (#2561) Lionel Landwerlin 2019-05-18 09:43:30 +0100
  • 8fdc36062e fix undefined behavior Lionel Landwerlin 2019-05-17 10:40:37 +0100
  • 44eb8e603a
    Merge branch 'master' into unicode 云风 2019-05-15 16:06:01 +0800
  • aad6f86203 New macros in the GLFW platform binding to remove global variables. Arnaud Barré 2019-05-14 23:16:53 -0400
  • 85d1be8702 Replace the usage of the global variable 'g_Window' with the member 'Platform_Handle' available from the function 'ImGui::GetMainViewport()'. Arnaud Barré 2019-05-14 23:14:02 -0400
  • e10da7ca96 The GLFW platform binding has supplementary macros to customize the behaviour of the callbacks plus the computation of the delta time. Arnaud Barré 2019-05-14 23:06:54 -0400
  • 4158cba1ff Merge branch 'master' into docking omar 2019-05-13 19:23:18 +0200
  • fc3c3de551 Fixed uses of IsItemDeactivated(), IsItemDeactivatedAfterEdit() on multi-components widgets and after EndGroup(). (#2550, #1875) omar 2019-05-13 19:05:41 +0200
  • d3a387cc18 Fixed InputFloatX, SliderFloatX, DragFloatX functions erroneously reporting IsItemEdited() multiple times when the text input doesn't match the formatted output value (e.g. input "1" shows "1.000"). It wasn't much of a problem because we typically use the return value instead of IsItemEdited() here. (#1875, #2034) omar 2019-05-13 19:04:57 +0200
  • 99a845053a Internal: Renamed fields + minor tweaks (probably shallow break stack-layout pr, sorry!) omar 2019-05-13 18:15:39 +0200
  • 64dbd932d2 Internal: Removed GetNextItemWidth(), relying on ItemAdd or NextItemData.ClearFlags() to clear the width data. Amend 5078fa20 and undo some of its effects of imgui_widgets.cpp omar 2019-05-13 15:29:00 +0200
  • 632469d2e5 Renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Refactored SetNextItemXXX stuff to match SetNextWindowXXX code closely. omar 2019-05-13 15:11:25 +0200
  • 36e714a459 Internal: Storing flags for NextWindowData so that we can clear everything with a single write and remove dummy condition fields. omar 2019-05-13 14:45:41 +0200
  • 0b485f12d7 Internal: Minor tidying/reordering of sections within ImGuiContext / window DC. omar 2019-05-13 11:25:38 +0200
  • 3e6a871cf6
    Merge 5c0dcc861e into b955e485f1 Joseph Riedel 2019-05-13 10:27:34 +0000
  • 7355c84701 Tweak EndGroup() to facilitate fixing #2550 later (currently should have no side-effect0. Demo: Add extra widget to status query test. omar 2019-05-12 21:35:05 +0200
  • b955e485f1 Fixed unused variables warnings when asserts are compiled out. (#2551) Chris Savoie 2019-05-12 08:53:08 -0700
  • 93d466ad65 [Asserts] Fix up some unused variables when asserts are compiled out. Chris Savoie 2019-05-12 02:33:50 -0700
  • bf6185cd98 Rendering: Add a callback for customizing how textures are set during rendering. DX12: Only generate the Font texture if it doesn't already exist. Only set texture if it actually changes. These changes can enable better integration to existing rendereres by ensuring that all ImTextureID objects are the same type as defined by the user. Chris Savoie 2019-03-31 21:14:57 -0700
  • aca6ee1a91 Cast ImTextureId to void* before printing in Metrics window. (#2548) omar 2019-05-11 11:25:49 +0200
  • 02d6d2d487 Platform Binding for GLFW updated with the release of GLFW 3.3 (#2547) Alzathar 2019-05-11 04:54:56 -0400
  • 87c5356d97 FreeType: Added RasterizerFlags::Monochrome flag to disable font anti-aliasing. (#2545) Combine with RasterizerFlags::MonoHinting for best results. HolyBlackCat 2019-05-09 22:03:27 +0300
  • ef13d95466 IO: changed AddInputCharacter(unsigned short c) signature to AddInputCharacter(unsigned int c). Examples/Backends: Don't filter characters under 0x10000 before calling io.AddInputCharacter(), the filtering is done in io.AddInputCharacter() itself. This is in prevision for fuller Unicode support. (#2538, #2541) omar 2019-05-11 10:33:56 +0200
  • b668726a38 Fixed a PVS Studio static analyzer warning. omar 2019-05-10 22:58:24 +0200
  • 835a8b2c9b Merge branch 'master' into docking omar 2019-05-10 22:56:43 +0200
  • 7c256fbd40 Internal: Extracted some of the Begin code into RenderWindowDecorations(). omar 2019-05-10 22:45:52 +0200
  • 72951a1a85 Internal: Extracted some of the Begin code into RenderWindowTitleBarContents(). omar 2019-05-10 22:38:10 +0200
  • b50c61c961 Internal: Begin: Update rectangles before Scrollbar() which now uses them. Fixes 39eeda0. omar 2019-05-10 22:30:33 +0200
  • b868e51240 Disable a GLFW 3.2 windows hack when GLFW 3.3 is detected (related to window focused when shown). Arnaud Barré 2019-05-10 13:53:08 -0400
  • 1bdc00e287 Support for monochrome font rendering when using freetype. HolyBlackCat 2019-05-09 22:03:27 +0300
  • 7ac08cf710 With the release of GLFW 3.3, it is now possible to detect correctly monitors working area (see GLFW_HAS_MONITOR_WORK_AREA). GLFW 3.3 also introduced the window hint GLFW_FOCUS_ON_SHOW. This fixed the case where a new created window (viewport) takes the focus even if not visible. Arnaud Barré 2019-05-10 13:02:50 -0400
  • 39eeda0227 Internal: Scrollbar: Further sane simplification (using InnerMainRect instead of duplicating calculations). omar 2019-05-09 19:30:13 +0200
  • 37174c85e2 Internal: Scrollbar: Extracted scrollbar code for other uses (eg. table v2 scrolling without using a child window). omar 2019-05-09 19:05:36 +0200
  • 29c3c22e11 add native mac copy/paste support to match win32 Andrew Willmott 2019-05-10 01:23:53 +0100
  • 9534ef9b26 Separator: Revert 1.70 "Declare its thickness (1.0f) to the layout" change (c5d83d8a). It's not incorrect but it breaks existing some layout patterns. Will return back to it when we expose Separator flags. omar 2019-05-09 17:52:56 +0200
  • e29176df53 Internals: Columns: Renamed fields. Comments and tweak. Moved a demo block. omar 2019-05-09 12:56:03 +0200
  • a4d0b0efa4 Internal: Refactored Separator into SeparatorEx(), exposed ImGuiSeparatorFlags_SpanAllColumns in imgui_internal.h and support without. (#759) + misc comments omar 2019-05-09 12:55:01 +0200
  • b7c2759f95 Columns: Fixed Separator from creating an extraneous draw command. Fixed Selectable with SpanAllColumns flag from creating an extraneous draw command. (#125) omar 2019-05-09 12:10:36 +0200
  • 239c8732d7 Viewports: Minor tweaks. (#2471) omar 2019-05-08 18:22:56 +0200
  • 9bf3f910c8 Viewports: Fix to avoid SetNextWindowViewport being overrided by creation of a standalone viewport. (#2544, #1542) omar 2019-05-08 18:20:13 +0200
  • 01c4d560cf fix build for WideCharToMultiByte Cloud Wu 2019-05-08 11:45:40 +0800
  • a9c741cf4f Full Unicode Support Cloud Wu 2019-05-07 16:39:03 +0800
  • 3bedb30581 Fix ImTextCountUtf8BytesFromChar and ImTextCharToUtf8, these APIs assume the input is an unicode code point, not UTF-16 Cloud Wu 2019-05-08 10:50:55 +0800
  • fc2dff0ab6 Add AddInputCharacterUTF16 for windows backend to handle WM_CHAR Cloud Wu 2019-05-08 10:36:29 +0800
  • cf4c041429 Use Windows API to convert UTF-16 for ImFileOpen Cloud Wu 2019-05-08 10:23:22 +0800
  • 2cba94a02a Use windows API to convert UTF-16 for clipboard Cloud Wu 2019-05-08 10:10:20 +0800
  • 42fc563fed Version 1.71 WIP + fixed minor typo omar 2019-05-07 16:36:08 +0200
  • d1d5075b66 Version 1.70 v1.70 omar 2019-05-06 14:17:39 +0200
  • e6c982509d Examples: DirectX9: Fixes for multi-viewports. Avoid using a depth/stencil target for secondary viewport. (#2520, #2502) omar 2019-05-06 12:12:32 +0200
  • 9ddb8493d5 Examples: DirectX9: Fixes for multi-viewports, destroying all swap chains. (#2520, #2502) omar 2019-05-06 12:07:29 +0200
  • 3c9058214b Delete no need checks Yiyuan Zheng 2019-05-06 17:52:34 +0800
  • 76e61958fd Merge branch 'master' into docking omar 2019-05-06 10:16:43 +0200
  • d88121ff5b Examples: DirectX9/10/11: Taking reference to device + subsequent merge of this in docking will fix DX9 issue #2524 omar 2019-05-06 10:11:02 +0200
  • 6c196cf432 Examples Readme and Changelog tweaks, added #2527, re-ordered examples/README alphabetically. omar 2019-05-06 10:02:59 +0200
  • 5ecc9d5865 Examples: Metal: Add GLFW+Metal example Max Thrun 2019-05-01 18:31:42 -0700
  • 4f22a45cb5 Removed git merge leftovers ibachar 2019-05-04 15:54:02 +0300
  • 84506f9c4a Removed git merge leftovers ibachar 2019-05-04 15:54:02 +0300
  • 526e2303bc Window: Fixed SetNextWindowSizeConstraints() with non-rounded positions making windows drift. (#2067, #2530) omar 2019-05-03 19:09:44 +0200
  • 9c1f02a42c Misc: Made IMGUI_CHECKVERSION() macro also check for matching size of ImDrawIdx. omar 2019-05-03 18:40:36 +0200
  • e2166db282 Internals: Fixed incorrect repeat delay/rate calculation in IsMouseClicked() with repeat flag leading to involontary but thankfully doubling the rate. Using our standard function, making the multiplicator explicit. omar 2019-05-03 15:06:06 +0200
  • 2dc81057ec Selectable: With ImGuiSelectableFlags_AllowDoubleClick doesn't return true on the mouse button releas efollowing the double-click. Only first mouse release + second mouse down (double-click) returns true. Likewise for internal ButtonBehavior() with both _PressedOnClickRelease | _PressedOnDoubleClick. (#2503) omar 2019-05-03 14:28:57 +0200
  • 86f92fe756 Demo: Improved trees in columns demo. (#2136) omar 2019-05-02 20:19:53 +0200
  • ce19cb465f Internals: Rename GetContentRegionMaxScreen() -> GetWorkRectMax(). At this point this is mostly useful to facilitate merge of other branches. omar 2019-05-02 16:29:40 +0200
  • 825b61e4ba Merge branch 'master' into docking omar 2019-05-02 14:56:47 +0200
  • a1c432d1ad Internals: SettingsHandlerWindow_ReadLine uses context parameter. omar 2019-04-27 17:11:06 +0200
  • aaf7bca56f Examples: Metal: Add GLFW+Metal example Max Thrun 2019-05-01 18:31:42 -0700
  • ae405b83a4 Examples: Added missing per-renderer local changelogs. (#2037, #1639, #2452) omar 2019-04-30 22:28:29 +0200
  • 7c6ba3a1da ImDrawCallback_ResetRenderState: Added Metal. Max Thrun 2019-03-29 11:11:55 -0700
  • 5c1cd5c8c7 ImDrawCallback_ResetRenderState, Examples: Added support for reset render state callback. (#2037, #1639, #2452) omar 2019-04-30 22:15:59 +0200
  • 767734870a Fixed same-frame click/release bug Blaise Ritchie 2019-04-30 10:15:27 -0700
  • 03223a7ef6 Fix Docking branch of DX9 sample crash when exit program in x64 mode Yiyuan Zheng 2019-04-30 17:07:48 +0800
  • 57687249ba fix a mistake Yiyuan Zheng 2019-04-30 15:43:08 +0800
  • a38fcb4edf Fixed docked window borders to match undocked window borders Richard Mitton 2019-04-29 11:42:15 -0700
  • 3fbc0b7a9e Obsoleted GetContentRegionAvailWidth(), use GetContentRegionAvail().x instead. Kept inline redirection function. omar 2019-04-29 18:31:51 +0200
  • db2d58a68b Drag and Drop: Fixed drag source with ImGuiDragDropFlags_SourceAllowNullID and null ID from receiving click regardless of being covered by another window (it didn't honor correct hovering rules). (#2521) omar 2019-04-29 16:34:02 +0200
  • 52105049a3 Use Spaces instead of Tabs Yiyuan Zheng 2019-04-29 21:09:13 +0800
  • 7bbb5af3a7 Fix docking branch of DX9 sample crash when resize window Yiyuan Zheng 2019-04-29 20:34:10 +0800
  • 7e67aba286 Merge branch 'master' into docking omar 2019-04-29 13:06:55 +0200
  • 0f2852806c Amend 48a09a7 with changelog, breaking changes, tweak demo code for spacing. (#2518) omar 2019-04-29 12:44:17 +0200
  • 4c0f34fd5d Improved algorithm for mitre joints on thick lines Richard Mitton 2019-04-27 15:38:25 -0700
  • 4dec744795 Tidying up BeginMenu() code + comments. omar 2019-04-28 23:49:57 +0200
  • 842a720e72 Popups: Closes popup at the time of FocusWindow(). Fixes right-click from closing all popups instead of aiming at the hovered popup level (regression in 1.67's ae76a1fd). omar 2019-04-28 22:21:23 +0200
  • bda2cde68e Popups: Closing a popup restores the focused/nav window in place at the time of the popup opening, instead of restoring the window that was in the window stack at the time of the OpenPopup call. (#2517) Among other things, this allows opening a popup while no window are focused, and pressing Escape to clear the focus again. omar 2019-04-28 21:52:12 +0200
  • 3276b12765 Internals: Added DataTypeApplyOp, DataTypeApplyOpFromText to imgui_internal.h omar 2019-04-28 20:55:51 +0200
  • 09db2f6dec Fix 61d9258 when there is not scrollbar "Window: Fixed contents region being off by WindowBorderSize amount on the right when scrollbar is active." omar 2019-04-28 18:50:51 +0200
  • 4e81b2d093 Internals: Renaming. Renamed ImGuiPopupRef to ImGuiPopupData for consistency and added constructor. omar 2019-04-28 17:05:23 +0200
  • 3d363c91fd Internals: Exposed ImGuiDataTypeInfo, DataTypeGetInfo(), DataTypeFormatString(). Comments. omar 2019-04-28 14:49:15 +0200
  • 48a09a74a3 Improved algorithm for mitre joints on thick lines Richard Mitton 2019-04-27 15:38:25 -0700
  • 00b3c830db Internals: Begin: Moved OuterRectClipped/InnerMainRect/InnerClipRect computation higher up in the function, next to ContentsRect/WorkRect code. Removed commented out debug drawing code which is now available in Metrics window. omar 2019-04-26 23:21:30 +0200
  • 61d92580aa Window: Fixed contents region being off by WindowBorderSize amount on the right when scrollbar is active. omar 2019-04-26 23:17:24 +0200
  • 5d799d76ea Internals: Nav scrolling uses InnerMainRect instead of InnerClipRect. omar 2019-04-26 21:55:09 +0200
  • c5d83d8af2 Separator: Declare its thickness (1.0f) to the layout, making items around separator more symmetrical. omar 2019-04-26 22:25:30 +0200
  • a649d904d7 Examples: Emscripten: Fixed not enabling Docking and Nav by default. (#2494) omar 2019-04-26 00:28:28 +0200
  • dfb82d5c22 Merge branch 'master' into docking omar 2019-04-25 17:53:11 +0200
  • 56c3aaf6bd Nav: Fixed Drag/Slider functions going into text input mode when keyboard CTRL is held while pressing NavActivate. omar 2019-04-25 16:17:48 +0200