windowing/windowserver/nga/CLIENT/RWINDOW.CPP
changeset 45 36b2e23a8629
parent 36 01a6848ebfd7
child 76 6d325c59acb5
child 85 cdf2f6e5c390
equal deleted inserted replaced
36:01a6848ebfd7 45:36b2e23a8629
     1 // Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1994-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
  1886     __ASSERT_ALWAYS(aTfxCmdData.Length()<=KMaxWservStringSize, Panic(EW32PanicStringTooLong));
  1886     __ASSERT_ALWAYS(aTfxCmdData.Length()<=KMaxWservStringSize, Panic(EW32PanicStringTooLong));
  1887     TWsClCmdSendEffectCommand params(aTfxCmd,aTfxCmdData.Size(),this->iWsHandle);
  1887     TWsClCmdSendEffectCommand params(aTfxCmd,aTfxCmdData.Size(),this->iWsHandle);
  1888     Write(&params,sizeof(params),aTfxCmdData.Ptr(),aTfxCmdData.Size(),EWsWinOpSendEffectCommand);
  1888     Write(&params,sizeof(params),aTfxCmdData.Ptr(),aTfxCmdData.Size(),EWsWinOpSendEffectCommand);
  1889     }
  1889     }
  1890 
  1890 
  1891 EXPORT_C void RWindowBase::OverrideEffects(TBool aOneShot, TInt aAction, const TFileName& aResourceDir, const TFileName& aFilenamePhase1, const TFileName& aFilenamePhase2)
  1891 EXPORT_C void RWindowBase::OverrideEffects(TInt aAction, const TFileName& aResourceDir, const TFileName& aFilenameOutgoing, const TFileName& aFilenameIncoming, TBitFlags aFlags)
  1892 /**
  1892 /**
  1893 Overides the default animation for current window's transition effect by sent animation description.
  1893 Overides the default animation for current window's transition effect by sent animation description.
  1894 Please refer RWsSession::RegisterEffect() comments for more information on animation description.
  1894 Please refer RWsSession::RegisterEffect() comments for more information on animation description.
  1895 
  1895 
  1896 @param aOneShot A flag to see if the specified override should be applied once or on an ongoing basis
       
  1897 @param aAction The particular transition to set the animation for.
  1896 @param aAction The particular transition to set the animation for.
  1898 @param aResourceDir The name of the directory that contains the animation description files.
  1897 @param aResourceDir The name of the directory that contains the animation description files.
  1899 @param aFilenamePhase1 The file containing the description of the animation for the first phase(Phase1) of the transition.
  1898 @param aFilenameOutgoing The file containing the description of the animation for the outgoing phase of the transition. 
  1900 					   Specify KNullDesC for no Phase1 effect.
  1899 						 Specify KNullDesC for no outgoing phase effect.
  1901 @param aFilenamePhase2 The file containing the description of the animation for the second phase(Phase2) of the transition.
  1900 @param aFilenameIncoming The file containing the description of the animation for the incoming phase of the transition. 
  1902 					   Specify KNullDesC for no Phase2 effect.
  1901 						 Specify KNullDesC for no incoming phase effect.
       
  1902 @param aFlags Flag for the effect. Please see TTfxFlags for values this flag parameter can use.
  1903 
  1903 
  1904 @publishedPartner
  1904 @publishedPartner
  1905 */
  1905 */
  1906 	{
  1906 	{
  1907 	RTFXEffect tfxEffect(iWsHandle, iBuffer);
  1907 	RTFXEffect tfxEffect(iWsHandle, iBuffer);
  1908 	tfxEffect.OverrideTFXEffect(aOneShot, aAction, aResourceDir, aFilenamePhase1, aFilenamePhase2, RTFXEffect::ETFXWindow);
  1908 	tfxEffect.OverrideTFXEffect(RTFXEffect::ETFXWindow, aAction, 0, aResourceDir, aFilenameOutgoing, aFilenameIncoming, aFlags);
  1909 	}
  1909 	}
  1910 //////////////////////////// RDrawableWindow ////////////////////////////////
  1910 //////////////////////////// RDrawableWindow ////////////////////////////////
  1911 
  1911 
  1912 void RDrawableWindow::doScroll(const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect, TInt aOpcode)
  1912 void RDrawableWindow::doScroll(const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect, TInt aOpcode)
  1913 	{
  1913 	{