javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/inc/swtuiutils.h
branchRCL_3
changeset 24 0fd27995241b
parent 19 04becd199f91
child 34 71c436fe3ce0
equal deleted inserted replaced
20:f9bb0fca356a 24:0fd27995241b
    83      * @param aShell
    83      * @param aShell
    84      */
    84      */
    85     void ShellActivabilityChanged(MSwtShell& aShell);
    85     void ShellActivabilityChanged(MSwtShell& aShell);
    86 
    86 
    87     /**
    87     /**
    88      * Sets the pointerGrabbingControl
       
    89      * Calling with NULL of course unsets.
       
    90      */
       
    91     void SetPointerCaptureControl(MSwtControl* aControl);
       
    92 
       
    93     /**
       
    94      * Returns the current control that is grabbing the pointer events.
       
    95      */
       
    96     MSwtControl* PointerCaptureControl();
       
    97 
       
    98     /**
       
    99      * Sets next focused control. This function is called when app lost focus, which stores
    88      * Sets next focused control. This function is called when app lost focus, which stores
   100      * a pointer of control that can be focused when app gains focus again.
    89      * a pointer of control that can be focused when app gains focus again.
   101      * Calling with NULL of course unsets.
    90      * Calling with NULL of course unsets.
   102      * @param aNextFocusedControl The pointer of control that can be focused when app gains focus again.
    91      * @param aNextFocusedControl The pointer of control that can be focused when app gains focus again.
   103      */
    92      */
   193 
   182 
   194     /**
   183     /**
   195      * Highest inline control default font. See InlineReferenceFontHeight.
   184      * Highest inline control default font. See InlineReferenceFontHeight.
   196      */
   185      */
   197     const CFont& InlineReferenceFont() const;
   186     const CFont& InlineReferenceFont() const;
   198     
   187 
   199     void HideIndicator(TInt aId);
   188     void HideIndicator(TInt aId);
   200     void HideIndicators();
   189     void HideIndicators();
   201 
   190 
   202 // From MSwtUiUtils
   191 // From MSwtUiUtils
   203 public:
   192 public:
   235     TInt ScrollBarBreadth(const CEikScrollBar* aBar);
   224     TInt ScrollBarBreadth(const CEikScrollBar* aBar);
   236     TBool NaviKeyInput() const;
   225     TBool NaviKeyInput() const;
   237     void SetNaviKeyInput(TBool aStatus);
   226     void SetNaviKeyInput(TBool aStatus);
   238     void SetCbaVisible(TBool aVisible);
   227     void SetCbaVisible(TBool aVisible);
   239     MSwtControl* GetPointerGrabbingControl();
   228     MSwtControl* GetPointerGrabbingControl();
       
   229     TRect TaskTipRect() const;
       
   230     void SetPointerCaptureControl(MSwtControl* aControl);
       
   231     MSwtControl* PointerCaptureControl();
   240 
   232 
   241 protected:
   233 protected:
   242     void HandleFreeRamEventL(TInt aEventType);
   234     void HandleFreeRamEventL(TInt aEventType);
   243     
   235 
   244 // From MSwtAppFocusObserver
   236 // From MSwtAppFocusObserver
   245 public:
   237 public:
   246     void HandleAppFocusChangeL(TBool aFocused);
   238     void HandleAppFocusChangeL(TBool aFocused);
   247 
   239 
   248 // From MEikStatusPaneObserver
   240 // From MEikStatusPaneObserver
   262 private:
   254 private:
   263     /**
   255     /**
   264      * Display reference needed for getting CEikEnv for now.
   256      * Display reference needed for getting CEikEnv for now.
   265      */
   257      */
   266     MSwtDisplay& iDisplay;
   258     MSwtDisplay& iDisplay;
   267     
   259 
   268     /**
   260     /**
   269      * All shells.
   261      * All shells.
   270      * Not own.
   262      * Not own.
   271      */
   263      */
   272     RPointerArray<MSwtShell> iShells;
   264     RPointerArray<MSwtShell> iShells;
   383 
   375 
   384     /**
   376     /**
   385      * Cached scrollbar breadth. Valid till next resolution change.
   377      * Cached scrollbar breadth. Valid till next resolution change.
   386      */
   378      */
   387     TInt iScrollBarBreadth;
   379     TInt iScrollBarBreadth;
   388     
   380 
   389     /**
   381     /**
   390      * Inline reference stuff
   382      * Inline reference stuff
   391      */
   383      */
   392     mutable const CFont* iInlineFont;
   384     mutable const CFont* iInlineFont;
   393     mutable TInt iInlineFontHeight;
   385     mutable TInt iInlineFontHeight;
   394     mutable TMargins8 iInlinePadding; 
   386     mutable TMargins8 iInlinePadding;
   395     
   387 
   396     /**
   388     /**
   397      * Key input flag.
   389      * Key input flag.
   398      */
   390      */
   399     TBool iNaviKeyInput;
   391     TBool iNaviKeyInput;
   400 };
   392 };