Lines Matching defs:hovered
415 bool hovered = ItemHoverable(bb, id);
417 // Drag source doesn't report as hovered
418 if (hovered && g.DragDropActive && g.DragDropPayload.SourceId == id && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoDisableHover))
419 hovered = false;
425 hovered = true;
438 if (hovered && (flags & ImGuiButtonFlags_AllowItemOverlap) && (g.HoveredIdPreviousFrame != id && g.HoveredIdPreviousFrame != 0))
439 hovered = false;
442 if (hovered)
486 // We report navigated item as hovered but we don't set g.HoveredId to not interfere with mouse.
488 hovered = true;
522 if (hovered && (flags & ImGuiButtonFlags_PressedOnClickRelease))
538 if (out_hovered) *out_hovered = hovered;
567 bool hovered, held;
568 bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags);
573 const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
620 bool hovered, held;
621 bool pressed = ButtonBehavior(bb, id, &hovered, &held);
643 bool hovered, held;
644 bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags);
647 const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
672 bool hovered, held;
673 bool pressed = ButtonBehavior(bb, id, &hovered, &held);
679 if (hovered)
698 bool hovered, held;
699 bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_None);
701 ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
702 if (hovered || held)
782 bool hovered = false;
784 ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus);
833 const ImU32 grab_col = GetColorU32(held ? ImGuiCol_ScrollbarGrabActive : hovered ? ImGuiCol_ScrollbarGrabHovered : ImGuiCol_ScrollbarGrab, alpha);
892 bool hovered, held;
893 bool pressed = ButtonBehavior(bb, id, &hovered, &held);
896 const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
924 bool hovered, held;
925 bool pressed = ButtonBehavior(total_bb, id, &hovered, &held);
934 RenderFrame(check_bb.Min, check_bb.Max, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), true, style.FrameRounding);
989 bool hovered, held;
990 bool pressed = ButtonBehavior(total_bb, id, &hovered, &held);
995 window->DrawList->AddCircleFilled(center, radius, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), 16);
1219 bool hovered, held;
1222 ButtonBehavior(bb_interact, id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap);
1258 const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator);
1305 bool hovered, held;
1306 bool pressed = ButtonBehavior(frame_bb, id, &hovered, &held);
1310 const ImU32 frame_col = GetColorU32(hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg);
1316 window->DrawList->AddRectFilled(ImVec2(frame_bb.Max.x - arrow_size, frame_bb.Min.y), frame_bb.Max, GetColorU32((popup_open || hovered) ? ImGuiCol_ButtonHovered : ImGuiCol_Button), style.FrameRounding, (w <= arrow_size) ? ImDrawCornerFlags_All : ImDrawCornerFlags_Right);
1883 const bool hovered = ItemHoverable(frame_bb, id);
1896 if (tab_focus_requested || (hovered && (g.IO.MouseClicked[0] || g.IO.MouseDoubleClicked[0])) || g.NavActivateId == id || (g.NavInputId == id && g.ScalarAsInputTextId != id))
2327 const bool hovered = ItemHoverable(frame_bb, id);
2328 if (tab_focus_requested || (hovered && g.IO.MouseClicked[0]) || g.NavActivateId == id || (g.NavInputId == id && g.ScalarAsInputTextId != id))
2478 const bool hovered = ItemHoverable(frame_bb, id);
2479 if ((hovered && g.IO.MouseClicked[0]) || g.NavActivateId == id || g.NavInputId == id)
3183 const bool hovered = ItemHoverable(frame_bb, id);
3184 if (hovered)
3211 const bool user_clicked = hovered && io.MouseClicked[0];
3302 if (select_all || (hovered && !is_osx && io.MouseDoubleClicked[0]))
3307 else if (hovered && is_osx && io.MouseDoubleClicked[0])
3315 if (hovered)
4428 bool hovered, held;
4429 bool pressed = ButtonBehavior(bb, id, &hovered, &held);
4476 if (!(flags & ImGuiColorEditFlags_NoTooltip) && hovered)
4827 bool hovered, held;
4828 bool pressed = ButtonBehavior(interact_bb, id, &hovered, &held, button_flags);
4864 const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
4890 if (hovered || selected)
5076 bool hovered, held;
5077 bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags);
5079 if (pressed || hovered)
5089 if (hovered || selected)
5091 const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
5271 const bool hovered = ItemHoverable(frame_bb, id);
5299 if (hovered && inner_bb.Contains(g.IO.MousePos))
5637 const bool hovered = enabled && ItemHoverable(window->DC.LastItemRect, id);
5664 want_close = (menu_is_open && !hovered && g.HoveredWindow == window && g.HoveredIdPreviousFrame != 0 && g.HoveredIdPreviousFrame != id && !moving_within_opened_triangle);
5665 want_open = (!menu_is_open && hovered && !moving_within_opened_triangle) || (!menu_is_open && hovered && pressed);
5686 else if (pressed || (hovered && menuset_is_open && !menu_is_open)) // First click to open, then hover to open others
6453 bool hovered, held;
6454 bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags);
6455 hovered |= (g.HoveredId == id);
6459 // Allow the close button to overlap unless we are dragging (in which case we don't want any overlapping tabs to be hovered)
6483 if (hovered && g.HoveredIdNotActiveTimer > 0.50f && bb.GetWidth() < tab->WidthContents)
6494 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));
6601 // We are relying on a subtle and confusing distinction between 'hovered' and 'g.HoveredId' which happens because we are using ImGuiButtonFlags_AllowOverlapMode + SetItemAllowOverlap()
6602 // 'hovered' will be true when hovering the Tab but NOT when hovering the close button
6604 // 'g.ActiveId==close_button_id' will be true when we are holding on the close button, in which case both hovered booleans are false