Lines Matching refs:IO
427 if (CalcTypematicPressedRepeatAmount(g.HoveredIdTimer + 0.0001f, g.HoveredIdTimer + 0.0001f - g.IO.DeltaTime, 0.01f, 0.70f)) // FIXME: Our formula for CalcTypematicPressedRepeatAmount() is fishy
444 if (!(flags & ImGuiButtonFlags_NoKeyModifiers) || (!g.IO.KeyCtrl && !g.IO.KeyShift && !g.IO.KeyAlt))
452 if ((flags & ImGuiButtonFlags_PressedOnClickRelease) && g.IO.MouseClicked[0])
459 if (((flags & ImGuiButtonFlags_PressedOnClick) && g.IO.MouseClicked[0]) || ((flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseDoubleClicked[0]))
468 if ((flags & ImGuiButtonFlags_PressedOnRelease) && g.IO.MouseReleased[0])
470 if (!((flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[0] >= g.IO.KeyRepeatDelay)) // Repeat mode trumps <on release>
477 if ((flags & ImGuiButtonFlags_Repeat) && g.ActiveId == id && g.IO.MouseDownDuration[0] > 0.0f && IsMouseClicked(0, true))
515 g.ActiveIdClickOffset = g.IO.MousePos - bb.Min;
516 if (g.IO.MouseDown[0])
523 if (!((flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[0] >= g.IO.KeyRepeatDelay)) // Repeat mode trumps <on release>
792 float mouse_pos_v = horizontal ? g.IO.MousePos.x : g.IO.MousePos.y;
1232 ImVec2 mouse_delta_2d = g.IO.MousePos - g.ActiveIdClickOffset - bb_interact.Min;
1744 if (g.ActiveIdSource == ImGuiInputSource_Mouse && IsMousePosValid() && g.IO.MouseDragMaxDistanceSqr[0] > 1.0f*1.0f)
1746 adjust_delta = g.IO.MouseDelta[axis];
1747 if (g.IO.KeyAlt)
1749 if (g.IO.KeyShift)
1839 if (g.ActiveIdSource == ImGuiInputSource_Mouse && !g.IO.MouseDown[0])
1896 if (tab_focus_requested || (hovered && (g.IO.MouseClicked[0] || g.IO.MouseDoubleClicked[0])) || g.NavActivateId == id || (g.NavInputId == id && g.ScalarAsInputTextId != id))
1902 if (tab_focus_requested || g.IO.KeyCtrl || g.IO.MouseDoubleClicked[0] || g.NavInputId == id)
2147 if (!g.IO.MouseDown[0])
2153 const float mouse_abs_pos = g.IO.MousePos[axis];
2328 if (tab_focus_requested || (hovered && g.IO.MouseClicked[0]) || g.NavActivateId == id || (g.NavInputId == id && g.ScalarAsInputTextId != id))
2334 if (tab_focus_requested || g.IO.KeyCtrl || g.NavInputId == id)
2479 if ((hovered && g.IO.MouseClicked[0]) || g.NavActivateId == id || g.NavInputId == id)
2683 DataTypeApplyOp(data_type, '-', data_ptr, data_ptr, g.IO.KeyCtrl && step_fast ? step_fast : step);
2689 DataTypeApplyOp(data_type, '+', data_ptr, data_ptr, g.IO.KeyCtrl && step_fast ? step_fast : step);
2922 #ifdef __APPLE__ // FIXME: Move setting to IO structure
3139 ImGuiIO& io = g.IO;
3756 bool cursor_is_visible = (!g.IO.ConfigInputTextCursorBlink) || (g.InputTextState.CursorAnim <= 0.0f) || ImFmod(g.InputTextState.CursorAnim, 1.20f) <= 0.80f;
4109 ImGuiIO& io = g.IO;
4165 ImVec2 initial_off = g.IO.MouseClickedPos[0] - wheel_center;
4166 ImVec2 current_off = g.IO.MousePos - wheel_center;
4838 toggled |= g.IO.MouseDoubleClicked[0];
5299 if (hovered && inner_bb.Contains(g.IO.MousePos))
5301 const float t = ImClamp((g.IO.MousePos.x - inner_bb.Min.x) / (inner_bb.Max.x - inner_bb.Min.x), 0.0f, 0.9999f);
5494 SetNextWindowSize(ImVec2(g.IO.DisplaySize.x, g.NextWindowData.MenuBarOffsetMinVal.y + g.FontBaseSize + g.Style.FramePadding.y));
5652 ImVec2 ta = g.IO.MousePos - g.IO.MouseDelta;
5659 moving_within_opened_triangle = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos);
6110 const float scrolling_speed = (tab_bar->PrevFrameVisible + 1 < g.FrameCount) ? FLT_MAX : (g.IO.DeltaTime * g.FontSize * 70.0f);
6228 const float backup_repeat_delay = g.IO.KeyRepeatDelay;
6229 const float backup_repeat_rate = g.IO.KeyRepeatRate;
6230 g.IO.KeyRepeatDelay = 0.250f;
6231 g.IO.KeyRepeatRate = 0.200f;
6239 g.IO.KeyRepeatRate = backup_repeat_rate;
6240 g.IO.KeyRepeatDelay = backup_repeat_delay;
6469 if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < bb.Min.x)
6474 else if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > bb.Max.x)