mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-26 16:05:45 +03:00
Docs: fixed typos/repeated words. (#9555)
This commit is contained in:
parent
623ba46120
commit
e728936797
5 changed files with 10 additions and 10 deletions
|
|
@ -114,7 +114,7 @@ extern "C" {
|
||||||
#define GLAPI extern
|
#define GLAPI extern
|
||||||
#endif
|
#endif
|
||||||
/* glcorearb.h is for use with OpenGL core profile implementations.
|
/* glcorearb.h is for use with OpenGL core profile implementations.
|
||||||
** It should should be placed in the same directory as gl.h and
|
** It should be placed in the same directory as gl.h and
|
||||||
** included as <GL/glcorearb.h>.
|
** included as <GL/glcorearb.h>.
|
||||||
**
|
**
|
||||||
** glcorearb.h includes only APIs in the latest OpenGL core profile
|
** glcorearb.h includes only APIs in the latest OpenGL core profile
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ Other Changes:
|
||||||
don't have the equivalent of `SDL_SetTextureScaleMode()` and the callback won't work with them.
|
don't have the equivalent of `SDL_SetTextureScaleMode()` and the callback won't work with them.
|
||||||
- Vulkan: added for support for multiple Vulkan contexts with custom loaders. (#6616) [@lstalmir]
|
- Vulkan: added for support for multiple Vulkan contexts with custom loaders. (#6616) [@lstalmir]
|
||||||
- WebGPU: fixed passing non-integer sizes to `wgpuRenderPassEncoderSetViewport()`
|
- WebGPU: fixed passing non-integer sizes to `wgpuRenderPassEncoderSetViewport()`
|
||||||
when when `FramebufferScale` is >1.0f. (#9515, #8628) [@WayU]
|
when `FramebufferScale` is >1.0f. (#9515, #8628) [@WayU]
|
||||||
- WebGPU: update to build with wgpu-native 29.0+. (#9377, #9532, #9530) [@lucascompython, @ivan-enzhaev]
|
- WebGPU: update to build with wgpu-native 29.0+. (#9377, #9532, #9530) [@lucascompython, @ivan-enzhaev]
|
||||||
- Examples:
|
- Examples:
|
||||||
- MSVC: disabled /JMC in Visual Studio projects (unnecessary overhead).
|
- MSVC: disabled /JMC in Visual Studio projects (unnecessary overhead).
|
||||||
|
|
@ -1755,7 +1755,7 @@ Non-breaking Fonts/Textures related changes:
|
||||||
- Fonts: ImFontAtlas::AddFontXXX() can fail more gracefully if error handling is configured
|
- Fonts: ImFontAtlas::AddFontXXX() can fail more gracefully if error handling is configured
|
||||||
to not assert (this will be better exposed via future font flags).
|
to not assert (this will be better exposed via future font flags).
|
||||||
- Fonts: added style.FontScaleBase scaling factor (previously called io.FontGlobalScale).
|
- Fonts: added style.FontScaleBase scaling factor (previously called io.FontGlobalScale).
|
||||||
- Fonts: added style.FontScaleDpi scaling factor. This is designed to be be changed on
|
- Fonts: added style.FontScaleDpi scaling factor. This is designed to be changed on
|
||||||
per-monitor/per-viewport basis, which `io.ConfigDpiScaleFonts` does automatically.
|
per-monitor/per-viewport basis, which `io.ConfigDpiScaleFonts` does automatically.
|
||||||
(which is why it is separate from FontScaleBase).
|
(which is why it is separate from FontScaleBase).
|
||||||
- Fonts: added optional font_size parameter to ImGui::PushFont() function.
|
- Fonts: added optional font_size parameter to ImGui::PushFont() function.
|
||||||
|
|
@ -2910,7 +2910,7 @@ Other changes:
|
||||||
- Backends: Vulkan: Remove Volk/ from volk.h #include directives. (#7722, #6582, #4854)
|
- Backends: Vulkan: Remove Volk/ from volk.h #include directives. (#7722, #6582, #4854)
|
||||||
[@martin-ejdestig]
|
[@martin-ejdestig]
|
||||||
- Examples: SDL3: Remove use of SDL_HINT_IME_NATIVE_UI since new SDL_HINT_IME_IMPLEMENTED_UI
|
- Examples: SDL3: Remove use of SDL_HINT_IME_NATIVE_UI since new SDL_HINT_IME_IMPLEMENTED_UI
|
||||||
values has a more suitable default for our case case.
|
values has a more suitable default for our case.
|
||||||
- Examples: GLFW+Vulkan, SDL+Vulkan: handle swap chain resize even without Vulkan
|
- Examples: GLFW+Vulkan, SDL+Vulkan: handle swap chain resize even without Vulkan
|
||||||
returning VK_SUBOPTIMAL_KHR, which doesn't seem to happen on Wayland. (#7671)
|
returning VK_SUBOPTIMAL_KHR, which doesn't seem to happen on Wayland. (#7671)
|
||||||
[@AndreiNego, @ocornut]
|
[@AndreiNego, @ocornut]
|
||||||
|
|
@ -4863,7 +4863,7 @@ Other Changes:
|
||||||
- ColorPicker4: Fixed picker being unable to select exact 1.0f color when dragging toward the edges
|
- ColorPicker4: Fixed picker being unable to select exact 1.0f color when dragging toward the edges
|
||||||
of the SV square (previously picked 0.999989986f). (#3517) [@rokups]
|
of the SV square (previously picked 0.999989986f). (#3517) [@rokups]
|
||||||
- Menus: Fixed vertical alignments of MenuItem() calls within a menu bar (broken in 1.84). (#4538)
|
- Menus: Fixed vertical alignments of MenuItem() calls within a menu bar (broken in 1.84). (#4538)
|
||||||
- Menus: Improve closing logic when moving diagonally in empty between between parent and child menus to
|
- Menus: Improve closing logic when moving diagonally in empty space between parent and child menus to
|
||||||
accommodate for varying font size and dpi.
|
accommodate for varying font size and dpi.
|
||||||
- Menus: Fixed crash when navigating left inside a child window inside a sub-menu. (#4510).
|
- Menus: Fixed crash when navigating left inside a child window inside a sub-menu. (#4510).
|
||||||
- Menus: Fixed an assertion happening in some situations when closing nested menus (broken in 1.83). (#4640)
|
- Menus: Fixed an assertion happening in some situations when closing nested menus (broken in 1.83). (#4640)
|
||||||
|
|
|
||||||
|
|
@ -230,7 +230,7 @@ CODE
|
||||||
This is to increase compatibility, increase maintainability and facilitate use from other languages.
|
This is to increase compatibility, increase maintainability and facilitate use from other languages.
|
||||||
- C++: ImVec2/ImVec4 do not expose math operators by default, because it is expected that you use your own math types.
|
- C++: ImVec2/ImVec4 do not expose math operators by default, because it is expected that you use your own math types.
|
||||||
See FAQ "How can I use my own math types instead of ImVec2/ImVec4?" for details about setting up imconfig.h for that.
|
See FAQ "How can I use my own math types instead of ImVec2/ImVec4?" for details about setting up imconfig.h for that.
|
||||||
We can can optionally export math operators for ImVec2/ImVec4 using IMGUI_DEFINE_MATH_OPERATORS, which we use internally.
|
We can optionally export math operators for ImVec2/ImVec4 using IMGUI_DEFINE_MATH_OPERATORS, which we use internally.
|
||||||
- C++: pay attention that ImVector<> manipulates plain-old-data and does not honor construction/destruction
|
- C++: pay attention that ImVector<> manipulates plain-old-data and does not honor construction/destruction
|
||||||
(so don't use ImVector in your code or at our own risk!).
|
(so don't use ImVector in your code or at our own risk!).
|
||||||
- Building: We don't use nor mandate a build system for the main library.
|
- Building: We don't use nor mandate a build system for the main library.
|
||||||
|
|
@ -12859,7 +12859,7 @@ bool ImGui::OpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags
|
||||||
// This is a helper to handle the simplest case of associating one named popup to one given widget.
|
// This is a helper to handle the simplest case of associating one named popup to one given widget.
|
||||||
// - To create a popup associated to the last item, you generally want to pass a NULL value to str_id.
|
// - To create a popup associated to the last item, you generally want to pass a NULL value to str_id.
|
||||||
// - To create a popup with a specific identifier, pass it in str_id.
|
// - To create a popup with a specific identifier, pass it in str_id.
|
||||||
// - This is useful when using using BeginPopupContextItem() on an item which doesn't have an identifier, e.g. a Text() call.
|
// - This is useful when using BeginPopupContextItem() on an item which doesn't have an identifier, e.g. a Text() call.
|
||||||
// - This is useful when multiple code locations may want to manipulate/open the same popup, given an explicit id.
|
// - This is useful when multiple code locations may want to manipulate/open the same popup, given an explicit id.
|
||||||
// - You may want to handle the whole on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters).
|
// - You may want to handle the whole on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters).
|
||||||
// This is essentially the same as:
|
// This is essentially the same as:
|
||||||
|
|
|
||||||
|
|
@ -538,7 +538,7 @@ inline float ImFloor(float f) { return
|
||||||
inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2(ImFloor(v.x), ImFloor(v.y)); }
|
inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2(ImFloor(v.x), ImFloor(v.y)); }
|
||||||
inline float ImTrunc64(float f) { return (float)(ImS64)(f); }
|
inline float ImTrunc64(float f) { return (float)(ImS64)(f); }
|
||||||
inline float ImRound64(float f) { return (float)(ImS64)(f + 0.5f); } // FIXME: Positive values only.
|
inline float ImRound64(float f) { return (float)(ImS64)(f + 0.5f); } // FIXME: Positive values only.
|
||||||
inline float ImCeilFast(float f) { int i = (int)f; return (float)(i + (f > (float)i)); } // Consider using the the bit-hack version (search for "0x1p120f").
|
inline float ImCeilFast(float f) { int i = (int)f; return (float)(i + (f > (float)i)); } // Consider using the bit-hack version (search for "0x1p120f").
|
||||||
inline int ImModPositive(int a, int b) { return (a + b) % b; }
|
inline int ImModPositive(int a, int b) { return (a + b) % b; }
|
||||||
inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; }
|
inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; }
|
||||||
inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); }
|
inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); }
|
||||||
|
|
@ -905,7 +905,7 @@ struct IMGUI_API ImDrawListSharedData
|
||||||
const ImVec4* TexUvLines; // UV of anti-aliased lines in the atlas (== FontAtlas->TexUvLines)
|
const ImVec4* TexUvLines; // UV of anti-aliased lines in the atlas (== FontAtlas->TexUvLines)
|
||||||
ImFontAtlas* FontAtlas; // Current font atlas
|
ImFontAtlas* FontAtlas; // Current font atlas
|
||||||
ImFont* Font; // Current font (used for simplified AddText overload)
|
ImFont* Font; // Current font (used for simplified AddText overload)
|
||||||
float FontSize; // Current font size (used for for simplified AddText overload)
|
float FontSize; // Current font size (used for simplified AddText overload)
|
||||||
float FontScale; // Current font scale (== FontSize / Font->FontSize)
|
float FontScale; // Current font scale (== FontSize / Font->FontSize)
|
||||||
float CurveTessellationMaxError; // Tessellation tolerance when using PathBezierCurveTo()
|
float CurveTessellationMaxError; // Tessellation tolerance when using PathBezierCurveTo()
|
||||||
float CircleTessellationMaxError; // Number of circle segments to use per pixel of radius for AddCircle() etc
|
float CircleTessellationMaxError; // Number of circle segments to use per pixel of radius for AddCircle() etc
|
||||||
|
|
|
||||||
|
|
@ -4795,7 +4795,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
|
||||||
IM_ASSERT(buf != NULL && buf_size >= 0);
|
IM_ASSERT(buf != NULL && buf_size >= 0);
|
||||||
IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackHistory) && (flags & ImGuiInputTextFlags_Multiline))); // Can't use both together (they both use up/down keys)
|
IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackHistory) && (flags & ImGuiInputTextFlags_Multiline))); // Can't use both together (they both use up/down keys)
|
||||||
IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackCompletion) && (flags & ImGuiInputTextFlags_AllowTabInput))); // Can't use both together (they both use tab key)
|
IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackCompletion) && (flags & ImGuiInputTextFlags_AllowTabInput))); // Can't use both together (they both use tab key)
|
||||||
IM_ASSERT(!((flags & ImGuiInputTextFlags_ElideLeft) && (flags & ImGuiInputTextFlags_Multiline))); // Multiline does not not work with left-trimming
|
IM_ASSERT(!((flags & ImGuiInputTextFlags_ElideLeft) && (flags & ImGuiInputTextFlags_Multiline))); // Multiline does not work with left-trimming
|
||||||
IM_ASSERT((flags & ImGuiInputTextFlags_WordWrap) == 0 || (flags & ImGuiInputTextFlags_Password) == 0); // WordWrap does not work with Password mode.
|
IM_ASSERT((flags & ImGuiInputTextFlags_WordWrap) == 0 || (flags & ImGuiInputTextFlags_Password) == 0); // WordWrap does not work with Password mode.
|
||||||
IM_ASSERT((flags & ImGuiInputTextFlags_WordWrap) == 0 || (flags & ImGuiInputTextFlags_Multiline) != 0); // WordWrap does not work in single-line mode.
|
IM_ASSERT((flags & ImGuiInputTextFlags_WordWrap) == 0 || (flags & ImGuiInputTextFlags_Multiline) != 0); // WordWrap does not work in single-line mode.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue