| 464 | } |
| 465 | |
| 466 | Point2I GuiCanvas::getWindowSize() |
| 467 | { |
| 468 | // CodeReview Asserting on this breaks previous logic |
| 469 | // and code assumptions. It seems logical that we would |
| 470 | // handle this and return an error value rather than implementing |
| 471 | // if(!mPlatformWindow) whenever we need to call getWindowSize. |
| 472 | // This should help keep our API error free and easy to use, while |
| 473 | // cutting down on code duplication for sanity checking. [5/5/2007 justind] |
| 474 | if( !mPlatformWindow ) |
| 475 | return Point2I(-1,-1); |
| 476 | |
| 477 | return mPlatformWindow->getClientExtent(); |
| 478 | } |
| 479 | |
| 480 | void GuiCanvas::enableKeyboardTranslation() |
| 481 | { |