- Timestamp:
- Jun 20, 2006, 7:02:22 PM (18 years ago)
- Location:
- branches/gui/src/lib/gui/gl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_table.cc
r8633 r8647 273 273 float rowPos = 0.0f; 274 274 275 for (*row = 0; *row < this->rowCount(); *row++)276 { 277 if (pixelPosition. x > rowPos && pixelPosition.x< (rowPos += _rowHeights[*row]))275 for (*row = 0; *row < this->rowCount(); (*row)++) 276 { 277 if (pixelPosition.y > rowPos && pixelPosition.y < (rowPos += _rowHeights[*row])) 278 278 break; 279 279 } 280 for (*column = 0; *column < this->columnCount(); *column++)281 { 282 if (pixelPosition. y > columnPos && pixelPosition.y< (columnPos += _columnWidths[*column]))280 for (*column = 0; *column < this->columnCount(); (*column)++) 281 { 282 if (pixelPosition.x > columnPos && pixelPosition.x < (columnPos += _columnWidths[*column])) 283 283 break; 284 284 } 285 285 286 printf("%d%d\n", *row, *column);286 PRINTF(3)("Mouse Over row:%d Column:%d\n", *row, *column); 287 287 } 288 288 -
branches/gui/src/lib/gui/gl/glgui_widget.h
r8619 r8647 251 251 private: 252 252 static GLGuiWidget* _selected; //!< The currently selected Widget. 253 static GLGuiWidget* _focused; //!< The currently Focused Widget .254 static GLGuiWidget* _inputGrabber; //!< The Widget that grabs input .253 static GLGuiWidget* _focused; //!< The currently Focused Widget (mouse-focus). 254 static GLGuiWidget* _inputGrabber; //!< The Widget that grabs input (keyboard-focus). 255 255 256 256
Note: See TracChangeset
for help on using the changeset viewer.