Lines Matching defs:hovered
515 bool hovered = ItemHoverable(bb, id);
517 // Drag source doesn't report as hovered
518 if (hovered && g.DragDropActive && g.DragDropPayload.SourceId == id && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoDisableHover))
519 hovered = false;
525 hovered = true;
539 if (hovered && (flags & ImGuiButtonFlags_AllowItemOverlap) && (g.HoveredIdPreviousFrame != id && g.HoveredIdPreviousFrame != 0))
540 hovered = false;
543 if (hovered)
603 // We report navigated item as hovered but we don't set g.HoveredId to not interfere with mouse.
606 hovered = true;
639 bool release_in = hovered && (flags & ImGuiButtonFlags_PressedOnClickRelease) != 0;
664 if (out_hovered) *out_hovered = hovered;
694 bool hovered, held;
695 bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags);
698 const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
748 bool hovered, held;
749 bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags);
771 bool hovered, held;
772 bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags);
775 const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
808 bool hovered, held;
809 bool pressed = ButtonBehavior(bb_interact, id, &hovered, &held);
817 if (hovered)
836 bool hovered, held;
837 bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_None);
840 ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
843 if (hovered || held)
945 bool hovered = false;
946 ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus);
987 const ImU32 grab_col = GetColorU32(held ? ImGuiCol_ScrollbarGrabActive : hovered ? ImGuiCol_ScrollbarGrabHovered : ImGuiCol_ScrollbarGrab, alpha);
1037 bool hovered, held;
1038 bool pressed = ButtonBehavior(bb, id, &hovered, &held);
1041 const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
1091 bool hovered, held;
1092 bool pressed = ButtonBehavior(total_bb, id, &hovered, &held);
1101 RenderFrame(check_bb.Min, check_bb.Max, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), true, style.FrameRounding);
1200 bool hovered, held;
1201 bool pressed = ButtonBehavior(total_bb, id, &hovered, &held);
1206 window->DrawList->AddCircleFilled(center, radius, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), 16);
1444 bool hovered, held;
1447 ButtonBehavior(bb_interact, id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap);
1448 if (hovered)
1453 if (held || (hovered && g.HoveredIdPreviousFrame == id && g.HoveredIdTimer >= hover_visibility_delay))
1485 const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator);
1584 bool hovered, held;
1585 bool pressed = ButtonBehavior(bb, id, &hovered, &held);
1595 const ImU32 frame_col = GetColorU32(hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg);
1602 ImU32 bg_col = GetColorU32((popup_open || hovered) ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
2406 const bool hovered = ItemHoverable(frame_bb, id);
2411 const bool clicked = (hovered && g.IO.MouseClicked[0]);
2412 const bool double_clicked = (hovered && g.IO.MouseDoubleClicked[0]);
2426 if (g.ActiveId == id && hovered && g.IO.MouseReleased[0] && !IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR))
2442 const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg);
3024 const bool hovered = ItemHoverable(frame_bb, id);
3029 const bool clicked = (hovered && g.IO.MouseClicked[0]);
3049 const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg);
3187 const bool hovered = ItemHoverable(frame_bb, id);
3188 if ((hovered && g.IO.MouseClicked[0]) || g.NavActivateId == id || g.NavActivateInputId == id)
3197 const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg);
4020 const bool hovered = ItemHoverable(frame_bb, id);
4021 if (hovered)
4030 const bool user_clicked = hovered && io.MouseClicked[0];
4179 if (select_all || (hovered && !is_osx && io.MouseDoubleClicked[0]))
4184 else if (hovered && is_osx && io.MouseDoubleClicked[0])
4192 if (hovered)
5462 bool hovered, held;
5463 bool pressed = ButtonBehavior(bb, id, &hovered, &held);
5521 if (!(flags & ImGuiColorEditFlags_NoTooltip) && hovered)
5911 bool hovered, held;
5912 bool pressed = ButtonBehavior(interact_bb, id, &hovered, &held, button_flags);
5963 const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
5982 if (hovered || selected)
5984 const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
6210 bool hovered, held;
6211 bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags);
6225 if (pressed || (hovered && (flags & ImGuiSelectableFlags_SetNavIdOnHover)))
6245 hovered = true;
6246 if (hovered || selected)
6248 const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
6442 const bool hovered = ItemHoverable(frame_bb, id);
6473 if (hovered && inner_bb.Contains(g.IO.MousePos))
6533 // Return hovered index or -1 if none are hovered.
6894 const bool hovered = (g.HoveredId == id) && enabled;
6920 if (menu_is_open && !hovered && g.HoveredWindow == window && g.HoveredIdPreviousFrame != 0 && g.HoveredIdPreviousFrame != id && !moving_toward_other_child_menu)
6926 else if (!menu_is_open && hovered && !moving_toward_other_child_menu) // Hover to open
6942 else if (pressed || (hovered && menuset_is_open && !menu_is_open)) // First click to open, then hover to open others
7649 // Include spacing after tab, so when mouse cursor is between tabs we would not continue checking further tabs that are not hovered.
7992 bool hovered, held;
7993 bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags);
7997 // Allow the close button to overlap unless we are dragging (in which case we don't want any overlapping tabs to be hovered)
8019 if (hovered && g.HoveredIdNotActiveTimer > TOOLTIP_DELAY && bb.GetWidth() < tab->ContentWidth)
8030 const ImU32 tab_col = GetColorU32((held || hovered) ? ImGuiCol_TabHovered : tab_contents_visible ? (tab_bar_focused ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive) : (tab_bar_focused ? ImGuiCol_Tab : ImGuiCol_TabUnfocused));
8165 // We are relying on a subtle and confusing distinction between 'hovered' and 'g.HoveredId' which happens because we are using ImGuiButtonFlags_AllowOverlapMode + SetItemAllowOverlap()
8166 // 'hovered' will be true when hovering the Tab but NOT when hovering the close button
8168 // 'g.ActiveId==close_button_id' will be true when we are holding on the close button, in which case both hovered booleans are false