You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- used the ImTextureID value to create an ID. This was inconsistent with other functions, led to ID conflicts, and caused problems with engines using transient ImTextureID values.
58
+
- had a FramePadding override which was inconsistent with other functions and made the already-long signature even longer.
Copy file name to clipboardexpand all lines: imgui.cpp
+9-1
Original file line number
Diff line number
Diff line change
@@ -384,7 +384,15 @@ CODE
384
384
When you are not sure about an old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files.
385
385
You can read releases logs https://github.com/ocornut/imgui/releases for more details.
- used the ImTextureID value to create an ID. This was inconsistent with other functions, led to ID conflicts, and caused problems with engines using transient ImTextureID values.
391
+
- had a FramePadding override which was inconsistent with other functions and made the already-long signature even longer.
Copy file name to clipboardexpand all lines: imgui.h
+8-3
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Index of this file:
65
65
// Version
66
66
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens)
IMGUI_API boolSmallButton(constchar* label); // button with FramePadding=(0,0) to easily embed within text
494
494
IMGUI_API boolInvisibleButton(constchar* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0); // flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.)
495
495
IMGUI_API boolArrowButton(constchar* str_id, ImGuiDir dir); // square button with an arrow shape
IMGUI_API voidBullet(); // draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses
505
503
504
+
// Widgets: Images
505
+
// - Read about ImTextureID here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples
// - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items.
508
511
// - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created.
// Legacy API obsoleted in 1.89. Two differences with new ImageButton()
1080
+
// - new ImageButton() requires an explicit 'const char* str_id' Old ImageButton() used opaque imTextureId (created issue with: multiple buttons with same image, transient texture id values, opaque computation of ID)
1081
+
// - new ImageButton() always use style.FramePadding Old ImageButton() had an override argument.
1082
+
// If you need to change padding with new ImageButton() you can use PushStyleVar(ImGuiStyleVar_FramePadding, value), consistent with other Button functions.
0 commit comments