mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-18 01:14:19 +00:00
Merge branch 'master' into docking
# Conflicts: # backends/imgui_impl_metal.mm # imgui.cpp # imgui_internal.h
This commit is contained in:
commit
d80347613a
12 changed files with 71 additions and 35 deletions
11
imgui.cpp
11
imgui.cpp
|
|
@ -1,4 +1,4 @@
|
|||
// dear imgui, v1.91.8
|
||||
// dear imgui, v1.91.9 WIP
|
||||
// (main code and documentation)
|
||||
|
||||
// Help:
|
||||
|
|
@ -438,6 +438,7 @@ CODE
|
|||
- likewise io.MousePos and GetMousePos() will use OS coordinates.
|
||||
If you query mouse positions to interact with non-imgui coordinates you will need to offset them, e.g. subtract GetWindowViewport()->Pos.
|
||||
|
||||
- 2025/02/03 (1.91.9) - removed ImFontConfig::GlyphExtraSpacing option which seems largely obsolete and unused. If you were using this please report it!
|
||||
- 2025/01/22 (1.91.8) - removed ImGuiColorEditFlags_AlphaPreview (made value 0): it is now the default behavior.
|
||||
prior to 1.91.8: alpha was made opaque in the preview by default _unless_ using ImGuiColorEditFlags_AlphaPreview. We now display the preview as transparent by default. You can use ImGuiColorEditFlags_AlphaOpaque to use old behavior.
|
||||
the new flags (ImGuiColorEditFlags_AlphaOpaque, ImGuiColorEditFlags_AlphaNoBg + existing ImGuiColorEditFlags_AlphaPreviewHalf) may be combined better and allow finer controls:
|
||||
|
|
@ -2072,6 +2073,7 @@ const char* ImStreolRange(const char* str, const char* str_end)
|
|||
|
||||
const char* ImStrbol(const char* buf_mid_line, const char* buf_begin) // find beginning-of-line
|
||||
{
|
||||
IM_ASSERT_PARANOID(buf_mid_line >= buf_begin && buf_mid_line <= buf_begin + strlen(buf_begin));
|
||||
while (buf_mid_line > buf_begin && buf_mid_line[-1] != '\n')
|
||||
buf_mid_line--;
|
||||
return buf_mid_line;
|
||||
|
|
@ -4541,8 +4543,11 @@ void ImGui::MarkItemEdited(ImGuiID id)
|
|||
return;
|
||||
if (g.ActiveId == id || g.ActiveId == 0)
|
||||
{
|
||||
// FIXME: Can't we fully rely on LastItemData yet?
|
||||
g.ActiveIdHasBeenEditedThisFrame = true;
|
||||
g.ActiveIdHasBeenEditedBefore = true;
|
||||
if (g.DeactivatedItemData.ID == id)
|
||||
g.DeactivatedItemData.HasBeenEditedBefore = true;
|
||||
}
|
||||
|
||||
// We accept a MarkItemEdited() on drag and drop targets (see https://github.com/ocornut/imgui/issues/1875#issuecomment-978243343)
|
||||
|
|
@ -4924,7 +4929,7 @@ ImGuiIO& ImGui::GetIO()
|
|||
}
|
||||
|
||||
// This variant exists to facilitate backends experimenting with multi-threaded parallel context. (#8069, #6293, #5856)
|
||||
ImGuiIO& ImGui::GetIOEx(ImGuiContext* ctx)
|
||||
ImGuiIO& ImGui::GetIO(ImGuiContext* ctx)
|
||||
{
|
||||
IM_ASSERT(ctx != NULL);
|
||||
return ctx->IO;
|
||||
|
|
@ -4937,7 +4942,7 @@ ImGuiPlatformIO& ImGui::GetPlatformIO()
|
|||
}
|
||||
|
||||
// This variant exists to facilitate backends experimenting with multi-threaded parallel context. (#8069, #6293, #5856)
|
||||
ImGuiPlatformIO& ImGui::GetPlatformIOEx(ImGuiContext* ctx)
|
||||
ImGuiPlatformIO& ImGui::GetPlatformIO(ImGuiContext* ctx)
|
||||
{
|
||||
IM_ASSERT(ctx != NULL);
|
||||
return ctx->PlatformIO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue