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
CIMGUI_APIboolImGui_IsMouseClickedEx(ImGuiMouseButtonbutton, boolrepeat/* = false */); // did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1.
1128
1128
CIMGUI_APIboolImGui_IsMouseReleased(ImGuiMouseButtonbutton); // did mouse button released? (went from Down to !Down)
1129
1129
CIMGUI_APIboolImGui_IsMouseDoubleClicked(ImGuiMouseButtonbutton); // did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true)
1130
+
CIMGUI_APIboolImGui_IsMouseReleasedWithDelay(ImGuiMouseButtonbutton, floatdelay); // delayed mouse release (use very sparingly!). Generally used with 'delay >= io.MouseDoubleClickTime' + combined with a 'io.MouseClickedLastCount==1' test. This is a very rarely used UI idiom, but some apps use this: e.g. MS Explorer single click on an icon to rename.
1130
1131
CIMGUI_APIintImGui_GetMouseClickedCount(ImGuiMouseButtonbutton); // return the number of successive mouse-clicks at the time where a click happen (otherwise 0).
CIMGUI_APIboolImGui_IsMouseHoveringRectEx(ImVec2r_min, ImVec2r_max, boolclip/* = true */); // is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block.
@@ -1996,10 +1997,16 @@ typedef enum
1996
1997
ImGuiColorEditFlags_NoDragDrop=1<<9, // // ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source.
1997
1998
ImGuiColorEditFlags_NoBorder=1<<10, // // ColorButton: disable border (which is enforced by default)
1998
1999
2000
+
// Alpha preview
2001
+
// - Prior to 1.91.8 (2025/01/21): alpha was made opaque in the preview by default using old name ImGuiColorEditFlags_AlphaPreview.
2002
+
// - We now display the preview as transparent by default. You can use ImGuiColorEditFlags_AlphaOpaque to use old behavior.
2003
+
// - The new flags may be combined better and allow finer controls.
2004
+
ImGuiColorEditFlags_AlphaOpaque=1<<11, // // ColorEdit, ColorPicker, ColorButton: disable alpha in the preview,. Contrary to _NoAlpha it may still be edited when calling ColorEdit4()/ColorPicker4(). For ColorButton() this does the same as _NoAlpha.
// User Options (right-click on widget to change some of them).
2000
2009
ImGuiColorEditFlags_AlphaBar=1<<16, // // ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker.
2001
-
ImGuiColorEditFlags_AlphaPreview=1<<17, // // ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque.
ImGuiColorEditFlags_HDR=1<<19, // // (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well).
2004
2011
ImGuiColorEditFlags_DisplayRGB=1<<20, // [Display] // ColorEdit: override _display_ type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex.
ImGuiColorEditFlags_AlphaPreview=0, // [Removed in 1.91.8] This is the default now. Will display a checkerboard unless ImGuiColorEditFlags_AlphaNoBg is set.
ImU16MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down
2598
2609
ImU16MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done.
2599
2610
boolMouseReleased[5]; // Mouse button went from Down to !Down
2611
+
doubleMouseReleasedTime[5]; // Time of last released (rarely used! but useful to handle delayed single-click when trying to disambiguate them from double-click).
2600
2612
boolMouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds.
2601
2613
boolMouseDownOwnedUnlessPopupClose[5]; // Track if button was clicked inside a dear imgui window.
2602
2614
boolMouseWheelRequestAxisSwap; // On a non-Mac system, holding SHIFT requests WheelY to perform the equivalent of a WheelX event. On a Mac system this is already enforced by the system.
0 commit comments