Logo Search packages:      
Sourcecode: widelands version File versions  Download package

void UI::Panel::set_mouse_pos ( const Point  p  )  [inherited]

Set mouse position relative to this panel

Definition at line 450 of file ui_panel.cc.

References WLApplication::get(), WLApplication::set_mouse_pos(), and UI::Panel::set_mouse_pos().

Referenced by UI::Panel::set_mouse_pos().

      const Point relative_p =
            p + Point(get_x() + get_lborder(), get_y() + get_tborder());
      if (_parent) _parent     ->set_mouse_pos(relative_p);
      else WLApplication::get()->set_mouse_pos(relative_p);

Generated by  Doxygen 1.6.0   Back to index