MCPcopy Create free account
hub / github.com/cmauri/eviacam / OnActionDoneEvent

Method OnActionDoneEvent

src/clickwindowcontroller.cpp:334–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void CClickWindowController::OnActionDoneEvent(const ActionDoneEvent& event) {
335 long x= event.GetPoint().x;
336 long y= event.GetPoint().y;
337
338 // If cursor is over click window the notification takes place when
339 // mouse event is received otherwise update internal state
340 if (!IsCursorOverWindow(x,y))
341 {
342 if (m_currentButton== CClickWindowController::DRAG)
343 {
344 if (!m_halfDragClick) m_halfDragClick= true;
345 else
346 {
347 m_halfDragClick= false;
348 m_currentButton= m_lockedButton;
349 }
350 }
351 else
352 m_currentButton= m_lockedButton;
353
354 m_pWindow->UpdateButtons(GetEnabled(),GetCurrentButton(), GetLockedButton());
355 }
356}
357
358// Called from window. Notifies that button has been clicked.
359void CClickWindowController::NotifyButtonClick (CClickWindowController::EButton button)

Callers

nothing calls this directly

Calls 2

GetPointMethod · 0.80
UpdateButtonsMethod · 0.45

Tested by

no test coverage detected