bool
ContainerWindow::OnMouseDouble(PixelScalar x, PixelScalar y)
{
  Window *child = EventChildAt(x, y);
  if (child != NULL)
    return child->OnMouseDouble(x - child->GetLeft(), y - child->GetTop());

  return PaintWindow::OnMouseDouble(x, y);
}
bool
ContainerWindow::OnMouseMove(PixelScalar x, PixelScalar y, unsigned keys)
{
  Window *child = EventChildAt(x, y);
  if (child != NULL)
    return child->OnMouseMove(x - child->GetLeft(), y - child->GetTop(), keys);

  return PaintWindow::OnMouseMove(x, y, keys);
}
bool
ContainerWindow::OnMouseWheel(PixelScalar x, PixelScalar y, int delta)
{
  Window *child = EventChildAt(x, y);
  if (child != NULL)
    return child->OnMouseWheel(x - child->GetLeft(), y - child->GetTop(),
                               delta);

  return PaintWindow::OnMouseWheel(x, y, delta);
}
Esempio n. 4
0
bool
ContainerWindow::OnMouseWheel(PixelScalar x, PixelScalar y, int delta)
{
  Window *child = EventChildAt(x, y);
  if (child != NULL) {
    child->OnMouseWheel(x - child->get_left(), y - child->get_top(), delta);
    return true;
  }

  return PaintWindow::OnMouseWheel(x, y, delta);
}
Esempio n. 5
0
bool
ContainerWindow::OnMouseDouble(PixelScalar x, PixelScalar y)
{
  Window *child = EventChildAt(x, y);
  if (child != NULL) {
    child->OnMouseDouble(x - child->get_left(), y - child->get_top());
    return true;
  }

  return PaintWindow::OnMouseDouble(x, y);
}
Esempio n. 6
0
bool
ContainerWindow::OnMouseMove(PixelScalar x, PixelScalar y, unsigned keys)
{
  Window *child = EventChildAt(x, y);
  if (child != NULL) {
    child->OnMouseMove(x - child->get_left(), y - child->get_top(), keys);
    return true;
  }

  return PaintWindow::OnMouseMove(x, y, keys);
}