idlehomescreen/xmluirendering/uiengine/inc/xnuiengineimpl.h
branchRCL_3
changeset 9 f966699dea19
parent 0 f72a12da539e
child 16 9674c1a575e9
equal deleted inserted replaced
5:c743ef5928ba 9:f966699dea19
    56     const TInt ELayoutUI = 0x01;
    56     const TInt ELayoutUI = 0x01;
    57     const TInt ERenderUI = 0x02;
    57     const TInt ERenderUI = 0x02;
    58     const TInt ERefreshMenu = 0x04;
    58     const TInt ERefreshMenu = 0x04;
    59     const TInt EIgnoreState = 0x08;
    59     const TInt EIgnoreState = 0x08;
    60     const TInt EViewDirty = 0x10;
    60     const TInt EViewDirty = 0x10;
    61     const TInt EEffectStarted = 0x20;
    61     const TInt EEffectStarted = 0x20;    
    62     const TInt EFirstPassDraw = 0x40;
       
    63     }
    62     }
    64 	
    63 	
    65 NONSHARABLE_STRUCT( TXnDirtyRegion )
    64 NONSHARABLE_STRUCT( TXnDirtyRegion )
    66     {
    65     {
    67     RRegion         iRegion;      
    66     RRegion         iRegion;      
    70     ~TXnDirtyRegion()
    69     ~TXnDirtyRegion()
    71         {
    70         {
    72         iRegion.Close();
    71         iRegion.Close();
    73         }
    72         }
    74     };
    73     };
    75         
    74 
       
    75 
       
    76 NONSHARABLE_STRUCT( TXnSplitScreenState )
       
    77     {
       
    78     /** Partial screen editor node. Not own */
       
    79     CXnNode* iPartialScreenEditorNode;
       
    80     /** Is partial screen input open */
       
    81     TBool isPartialScreenOpen;
       
    82     /** Partial screen block progression. Own. */
       
    83     HBufC8* iPartialScreenBlock;
       
    84     /** Is partial screen enabled*/
       
    85     TBool isPartialScreenEnabled;
       
    86     
       
    87     ~TXnSplitScreenState()
       
    88         {
       
    89         delete iPartialScreenBlock;
       
    90         }
       
    91     };
       
    92 
    76 
    93 
    77 // Class declaration
    94 // Class declaration
    78 
    95 
    79 /**
    96 /**
    80  *  Layout calculation and UI rendering mechanism
    97  *  Layout calculation and UI rendering mechanism
   449      * @return the hittest
   466      * @return the hittest
   450      */
   467      */
   451     CXnHitTest& HitTest() const;
   468     CXnHitTest& HitTest() const;
   452 
   469 
   453     /**
   470     /**
   454      * Positions stylus popup according given position
       
   455      * 
       
   456      * @since S60 5.1         
       
   457      * @param aNode stylus popup node
       
   458      * @param aReference a reference node where popup should fit
       
   459      * @param aPosition stylus popup position to set. 
       
   460      */
       
   461     void PositionStylusPopupL( CXnNode& aNode, CXnNode& aReference,
       
   462         const TPoint& aPosition );
       
   463 
       
   464     /**
       
   465      * Gets theme resource file
   471      * Gets theme resource file
   466      * 
   472      * 
   467      * @since S60 5.1         
   473      * @since S60 5.1         
   468      * @param aPath path from which file is found
   474      * @param aPath path from which file is found
   469      * @param aFile file to which resource is set
   475      * @param aFile file to which resource is set
   493      * 
   499      * 
   494      * @since Series 60 5.0
   500      * @since Series 60 5.0
   495      * @param aDispather Event dispatcher     
   501      * @param aDispather Event dispatcher     
   496      */                    
   502      */                    
   497     void SetEventDispatcher( CXnKeyEventDispatcher* aDispatcher );
   503     void SetEventDispatcher( CXnKeyEventDispatcher* aDispatcher );
   498     
   504 
       
   505     /**
       
   506      * Enables partial touch input
       
   507      * 
       
   508      * @since Series 60 5.2
       
   509      * @param aNode Editor Node
       
   510      * @param TBool Partial input is enabled      
       
   511      */      
       
   512     void EnablePartialTouchInput( CXnNode& aNode, TBool aEnable );
       
   513 
       
   514     /**
       
   515      * Is partial input active
       
   516      * 
       
   517      * @since Series 60 5.2
       
   518      * @return TBool is partial input active      
       
   519      */      
       
   520     TBool IsPartialInputActive();
       
   521         
   499 private:
   522 private:
   500     
   523     
   501     IMPORT_C static void EnableRenderUi( TAny* aAny );
   524     IMPORT_C static void EnableRenderUi( TAny* aAny );
   502         
   525         
   503 private:
   526 private:
   551     TXnDirtyRegion* FindDirtyRegionL( CXnNode& aNode );
   574     TXnDirtyRegion* FindDirtyRegionL( CXnNode& aNode );
   552 
   575 
   553     void AddRedrawRectL( TRect aRect, CXnNode& aNode );
   576     void AddRedrawRectL( TRect aRect, CXnNode& aNode );
   554 
   577 
   555     void ReportScreenDeviceChangeL();
   578     void ReportScreenDeviceChangeL();
       
   579     
       
   580     /**
       
   581       * Handle partial touch input
       
   582       * 
       
   583       * @since Series 60 5.2
       
   584       * @param TInt aType 
       
   585       */ 
       
   586     void HandlePartialTouchInputL( TInt aType );
       
   587 
       
   588     /**
       
   589       * Set node visible
       
   590       * 
       
   591       * @since Series 60 5.2
       
   592       * @param aNode node to hide/show
       
   593       * @param TBool aVisible boolean to set node visible      
       
   594       */      
       
   595     void SetNodeVisibleL( CXnNode* aNode, TBool aVisible );
       
   596 
       
   597     /**
       
   598       * Set partial screen block
       
   599       * 
       
   600       * @since Series 60 5.2 
       
   601       * @param TDesC8 aBlockProgression set layout direction
       
   602       */     
       
   603     void SetPartialScreenBlockProgressionL( const TDesC8& aBlockProgression );
       
   604     
       
   605     /**
       
   606       * Store partial screen block
       
   607       * 
       
   608       * @since Series 60 5.2 
       
   609       * @param TDesC8 aBlockProgression set layout direction
       
   610       */     
       
   611     void StorePartialScreenBlockProgressionL();
   556 	
   612 	
   557 private:
   613 private:
   558     //Derived functions
   614     //Derived functions
   559     
   615     
   560     /** 
   616     /** 
   666     CXnEditMode* iEditMode;
   722     CXnEditMode* iEditMode;
   667     /** Owned. hittest */
   723     /** Owned. hittest */
   668     CXnHitTest* iHitTest;
   724     CXnHitTest* iHitTest;
   669     /** Disable count */
   725     /** Disable count */
   670     TInt iDisableCount;   
   726     TInt iDisableCount;   
       
   727 	/**Split screen states*/
       
   728     TXnSplitScreenState iSplitScreenState;
   671     };
   729     };
   672 
   730 
   673 #endif      // _CXNUIENGINEIMPL_H
   731 #endif      // _CXNUIENGINEIMPL_H