Lines Matching refs:held
475 // 'Repeat' mode acts when held regardless of _PressedOn flags (see table above).
507 bool held = false;
518 held = true;
539 if (out_held) *out_held = held;
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);
680 window->DrawList->AddCircleFilled(center, ImMax(2.0f, radius), GetColorU32(held ? ImGuiCol_ButtonActive : ImGuiCol_ButtonHovered), 9);
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)
781 bool held = false;
784 ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus);
789 if (held && allow_interaction && grab_h_norm < 1.0f)
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);
1226 if (held || (g.HoveredId == id && g.HoveredIdPreviousFrame == id && g.HoveredIdTimer >= hover_visibility_delay))
1230 if (held)
1258 const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator);
1261 return held;
1305 bool hovered, held;
1306 bool pressed = ButtonBehavior(frame_bb, id, &hovered, &held);
1728 // This is called by DragBehavior() when the widget is active (held by mouse or being manipulated with Nav controls)
3126 // - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect.
4428 bool hovered, held;
4429 bool pressed = ButtonBehavior(bb, id, &hovered, &held);
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);
5076 bool hovered, held;
5077 bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags);
5091 const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
6453 bool hovered, held;
6454 bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags);
6460 if (!held)
6464 if (held && !tab_appearing && IsMouseDragging(0))
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));
6521 if (g.HoveredId == id && !held && g.HoveredIdNotActiveTimer > 0.50f)