| 434 | //----------------------------------------------------------------------------- |
| 435 | |
| 436 | void GuiControl::onRender(Point2I offset, const RectI &updateRect) |
| 437 | { |
| 438 | RectI ctrlRect(offset, getExtent()); |
| 439 | |
| 440 | //if opaque, fill the update rect with the fill color |
| 441 | if ( mProfile->mOpaque ) |
| 442 | GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColor); |
| 443 | |
| 444 | //if there's a border, draw the border |
| 445 | if ( mProfile->mBorder ) |
| 446 | renderBorder(ctrlRect, mProfile); |
| 447 | |
| 448 | // Render Children |
| 449 | renderChildControls(offset, updateRect); |
| 450 | } |
| 451 | |
| 452 | //----------------------------------------------------------------------------- |
| 453 |
no test coverage detected