Exemple #1
0
/**
This function draws the region specified
Andy - I would be happier if no region was specified here - the GC should incorporate that information
*/
void CWsWindow::Render(CFbsBitGc * aGc, const TRegion& aRegion)
	{
	WS_ASSERT_DEBUG(IsVisible() || (WinType() == EWinTypeRoot), EWsPanicScheduledRedraw);
	
	Accessed();
	iFlags |= EFlagDrawnToScreen;
	
	iRedraw->PreDrawWindow(aGc, aRegion);
	iRedraw->DrawWindow();
	iRedraw->PostDrawWindow(aGc);
	}
Exemple #2
0
/**
This function draws the region specified
*/
void CWsWindow::Render(MWsGraphicsContext& aGc, const TRegion& aWindowRegion, const TRegion& aWindowChildNodeRegion)
	{
	WS_ASSERT_DEBUG(IsVisible() || (WinType() == EWinTypeRoot), EWsPanicScheduledRedraw);

	AnnotateWindowRedrawStart(*this, aWindowRegion);
	
	Accessed();
	iFlags |= EFlagDrawnToScreen;
	
	aGc.Reset();
	iRedraw->PreDrawWindow(&aGc, aWindowRegion);
	iRedraw->DrawWindow();
	iRedraw->PostDrawWindow(&aGc, aWindowChildNodeRegion);
	}