Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5391 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_widget.cc


Ignore:
Timestamp:
Oct 16, 2005, 1:37:41 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more gui-definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_widget.cc

    r5387 r5391  
    3939
    4040
     41bool GLGuiWidget::focusOverWidget(float x, float y)
     42{
     43  if (this->getAbsCoor2D().x < x && this->getAbsCoor2D().x+ this->getSizeX2D() > x &&
     44      this->getAbsCoor2D().y < y && this->getAbsCoor2D().y+ this->getSizeX2D() > y)
     45    return true;
     46  else
     47    return false;
     48}
     49
     50
    4151/**
    4252 * initializes the GUI-element
Note: See TracChangeset for help on using the changeset viewer.