Beispiel #1
0
void
MacDecorator::Draw()
{
    STRACE("MacDecorator::Draw()\n");
    fDrawingEngine->SetDrawState(&fDrawState);

    _DrawFrame(fBorderRect);
    _DrawTab(fTabRect);
}
Beispiel #2
0
//! draws the tab, title, and buttons
void
Decorator::DrawTab()
{
	_DrawTab(fTabRect);
	_DrawZoom(fZoomRect);
	_DrawMinimize(fMinimizeRect);
	_DrawTitle(fTabRect);
	_DrawClose(fCloseRect);
}
Beispiel #3
0
void
WinDecorator::Draw(void)
{
	STRACE(("WinDecorator::Draw()\n"));

	fDrawingEngine->SetDrawState(&fDrawState);

	_DrawFrame(fBorderRect);
	_DrawTab(fTabRect);
}
Beispiel #4
0
void
WinDecorator::Draw(BRect update)
{
	STRACE(("WinDecorator::Draw(): ")); update.PrintToStream();

	fDrawingEngine->SetDrawState(&fDrawState);

	_DrawFrame(update);
	_DrawTab(update);
}
Beispiel #5
0
void
MacDecorator::Draw(BRect update)
{
    STRACE(("MacDecorator: Draw(%.1f,%.1f,%.1f,%.1f)\n",
            update.left, update.top, update.right, update.bottom));

    // We need to draw a few things: the tab, the borders,
    // and the buttons
    fDrawingEngine->SetDrawState(&fDrawState);

    _DrawFrame(update);
    _DrawTab(update);
}
Beispiel #6
0
//! draws the minimize button
void
Decorator::DrawMinimize()
{
	_DrawTab(fMinimizeRect);
}
Beispiel #7
0
//! Forces a complete decorator update
void
Decorator::Draw()
{
	_DrawFrame(fFrame);
	_DrawTab(fTabRect);
}
Beispiel #8
0
/*!	\brief Updates the decorator's look in the area \a rect

	The default version updates all areas which intersect the frame and tab.

	\param rect The area to update.
*/
void
Decorator::Draw(BRect rect)
{
	_DrawFrame(rect & fFrame);
	_DrawTab(rect & fTabRect);
}