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

void UI::Panel::set_can_focus ( bool  yes  )  [inherited]

Set if this panel can receive the keyboard focus

Definition at line 533 of file ui_panel.cc.

References UI::Panel::_focus, and UI::Panel::pf_can_focus.

Referenced by UI::Edit_Box::handle_key(), UI::Edit_Box::handle_mousepress(), and UI::Edit_Box::~Edit_Box().


      if (yes) _flags |= pf_can_focus;
   else {
            _flags &= ~pf_can_focus;

            if (_parent && _parent->_focus == this)
                  _parent->_focus = 0;

Generated by  Doxygen 1.6.0   Back to index