Changeset 8651 in orxonox.OLD for branches/gui
- Timestamp:
- Jun 21, 2006, 1:07:45 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_table.cc
r8650 r8651 49 49 this->setClassID(CL_GLGUI_TABLE, "GLGuiTable"); 50 50 51 this->setBorderTop(10); 52 51 53 this->setFocusable(true); 52 54 this->setClickable(true); 55 53 56 } 54 57 … … 241 244 glBegin(GL_LINES); 242 245 243 glVertex2f( 0, 0);244 glVertex2f( 0, this->getSizeY2D());246 glVertex2f(columnPos, this->borderTop()); 247 glVertex2f(columnPos, this->getSizeY2D()); 245 248 for (i = 0; i < this->columnCount(); ++i) 246 249 { 247 250 columnPos +=this->_columnWidths[i]; 248 glVertex2f(columnPos, 0);251 glVertex2f(columnPos, this->borderTop()); 249 252 glVertex2f(columnPos, this->getSizeY2D()); 250 253 } 251 254 252 glVertex2f( 0, 0);253 glVertex2f(this->getSizeX2D(), 0);255 glVertex2f(this->borderLeft(), rowPos); 256 glVertex2f(this->getSizeX2D(), rowPos); 254 257 for (i = 0; i < this->rowCount(); ++i) 255 258 { 256 259 rowPos +=this->_rowHeights[i]; 257 glVertex2f( 0, rowPos);260 glVertex2f(this->borderLeft(), rowPos); 258 261 glVertex2f(this->getSizeX2D(), rowPos); 259 262 } … … 300 303 for (i = fromLeft; i < this->columnCount(); ++i) 301 304 { 302 this->_headers[i].setRelCoor2D(columnPos, 0);305 this->_headers[i].setRelCoor2D(columnPos, rowPos); 303 306 304 307 // not required, but a good idea :)
Note: See TracChangeset
for help on using the changeset viewer.