void CAknKeyLockControl::ShowKeylockCba()
    {
    RDrawableWindow* cbaWindow = iKeyLockCba->ButtonGroup()->AsControl()->DrawableWindow();
    cbaWindow->SetFaded(EFalse, RWindowTreeNode::EFadeWindowOnly);
    cbaWindow->SetOrdinalPosition(0,1);
    cbaWindow->SetNonFading(ETrue);
    }
示例#2
0
//The Gc activate function ensures the correct window refreshing (clearing) and relative placement of origin for offscreen
//bitmap images.
void CTransGc::Activate(RDrawableWindow& aWindow)
	{				
		CancelClippingRect();
								
		//Alpha clear the redraw rect;
		iFbsBitGc.SetBrushColor(TRgb(0,0,0,0)); //Alpha transparent 			
		SetDrawMode(CGraphicsContext::EDrawModeWriteAlpha);	
		
		//The new Gc Origin is the current window position relative to our main iWindowOrigin
		TPoint p = aWindow.AbsPosition();	
		p -= iWindowOrigin;
		iGcOrigin = p;
		
		//ensure the drawing functions to draw to the correct origin
		iFbsBitGc.SetOrigin(p);

		//Only clear this Gc if a new window (and hence different rect) is applied 
		if (iWin!=&aWindow)		
			{
			//Save the window 
			iWin = &aWindow;
			TRect rect;
			//Get the redraw rectangle
			rect = aWindow.GetDrawRect();		
			//Clear the drawing region
			Clear(rect); 

			}			
		
		SetDrawMode(CGraphicsContext::EDrawModePEN);		
	}
void QSoftKeyManagerPrivateS60::ensureCbaVisibilityAndResponsiviness(CEikButtonGroupContainer &cba)
{
    RDrawableWindow *cbaWindow = cba.DrawableWindow();
    Q_ASSERT_X(cbaWindow, Q_FUNC_INFO, "Native CBA does not have window!");
    // Make sure CBA is visible, i.e. CBA window is on top
    cbaWindow->SetOrdinalPosition(0);
    // Qt shares same CBA instance between top-level widgets,
    // make sure we are not faded by underlying window.
    cbaWindow->SetFaded(EFalse, RWindowTreeNode::EFadeIncludeChildren);
    // Modal dialogs capture pointer events, but shared cba instance
    // shall stay responsive. Raise pointer capture priority to keep
    // softkeys responsive in modal dialogs
    cbaWindow->SetPointerCapturePriority(1);
}
示例#4
0
void LoggingWindowGc::Activate(RDrawableWindow &aDevice) {
  TPoint p = aDevice.Position();
  TSize s = aDevice.Size();
  RDebug::Print(_L("Activate: window"));
  CWindowGc::Activate(aDevice);
}