Changeset 5391 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_widget.cc
- Timestamp:
- Oct 16, 2005, 1:37:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_widget.cc
r5387 r5391 39 39 40 40 41 bool 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 41 51 /** 42 52 * initializes the GUI-element
Note: See TracChangeset
for help on using the changeset viewer.