| 480 | //----------------------------------------------------------------------------- |
| 481 | |
| 482 | void GuiTabBookCtrl::onRender(Point2I offset, const RectI &updateRect) |
| 483 | { |
| 484 | RectI tabRect = mTabRect; |
| 485 | tabRect.point += offset; |
| 486 | RectI pageRect = mPageRect; |
| 487 | pageRect.point += offset; |
| 488 | |
| 489 | // We're so nice we'll store the old modulation before we clear it for our rendering! :) |
| 490 | ColorI oldModulation; |
| 491 | GFX->getDrawUtil()->getBitmapModulation( &oldModulation ); |
| 492 | |
| 493 | // Wipe it out |
| 494 | GFX->getDrawUtil()->clearBitmapModulation(); |
| 495 | |
| 496 | Parent::onRender(offset, updateRect); |
| 497 | |
| 498 | // Clip to tab area |
| 499 | RectI savedClipRect = GFX->getClipRect(); |
| 500 | RectI clippedTabRect = tabRect; |
| 501 | clippedTabRect.intersect( savedClipRect ); |
| 502 | GFX->setClipRect( clippedTabRect ); |
| 503 | |
| 504 | // Render our tabs |
| 505 | renderTabs( offset, tabRect ); |
| 506 | |
| 507 | // Restore Rect. |
| 508 | GFX->setClipRect( savedClipRect ); |
| 509 | |
| 510 | // Restore old modulation |
| 511 | GFX->getDrawUtil()->setBitmapModulation( oldModulation ); |
| 512 | } |
| 513 | |
| 514 | //----------------------------------------------------------------------------- |
| 515 |
nothing calls this directly
no test coverage detected