void LayoutManager::OnMouseScrollOffset(float x, float y) { const Vector2& pos = m_input->GetMousePosition(); ProcessPointer(pos.x, pos.y, y, Msg::MOUSEWHEEL, 0, PointerType::Mouse, 0); std::cout << "OnMouseScrollOffset" << std::endl; }
void LayoutManager::OnMouseButtonUp(MouseButton button) { Msg msg = Msg::PointerDown; int buttons = 0; switch (button) { case MouseButton::Left: buttons |= 0x01; break; case MouseButton::Right: buttons |= 0x02; break; case MouseButton::Middle: buttons |= 0x04; break; default:; } const Vector2& pos = m_input->GetMousePosition(); ProcessPointer(pos.x, pos.y, 0, Msg::PointerUp, buttons, PointerType::Mouse, 0); }
void Service::FormPointer() { if( trkLay.CurPos() >= 0 ) { int line_hgt = GetSclLevel(); int pos = Round(trkLay.FramesSz(trkLay.CurPos()) - shift.x); if( IsVisibleObj(pos, sclRct.Width()) ) { CairoStateSave save(cont); ProcessPointer(Point(pos, line_hgt)); } } }
void LayoutManager::OnMousePosition(float x, float y) { ProcessPointer(x, y, 0, UI::Msg::PointerMove, 0, UI::PointerType::Mouse, 0); }