textinput/peninputarc/inc/peninputlayoutcontrolinc/peninputfloatctrl.h
branchRCL_3
changeset 44 ecbabf52600f
equal deleted inserted replaced
43:ebd48d2de13c 44:ecbabf52600f
       
     1 /*
       
     2 * Copyright (c) 2006-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0""
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  header file of Floating window
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_PENINPUTFLOATINGCTRL_H
       
    20 #define C_PENINPUTFLOATINGCTRL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include <coecntrl.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  *  CPeninputFloatingCtrl
       
    31  * 
       
    32  */
       
    33 NONSHARABLE_CLASS(CPeninputFloatingCtrl): public CCoeControl
       
    34     {
       
    35 public: // Constructors
       
    36     /**
       
    37      * C++ default constructor.
       
    38      * 
       
    39      * @since S60 v5.0
       
    40      * @return None
       
    41      */   
       
    42     CPeninputFloatingCtrl();
       
    43     
       
    44     /**
       
    45      * C++ destructor
       
    46      *
       
    47      * @since S60 v5.0
       
    48      * @return None
       
    49      */
       
    50     ~CPeninputFloatingCtrl();
       
    51 
       
    52 public: // from base class CCoeControl
       
    53     /**
       
    54      * From CCoeControl
       
    55      * Draw this control
       
    56      * 
       
    57      * @since S60 v5.0
       
    58      * @param aRect the rectangle of this view that needs updating
       
    59      * @return None
       
    60      */    
       
    61     virtual void Draw( const TRect& aRect ) const;
       
    62   
       
    63 public:
       
    64     /**
       
    65      * Show this floating control
       
    66      * 
       
    67      * @since S60 v5.0
       
    68      * @param aRect rect of control, in screen coord-sys
       
    69      * @return None
       
    70      */
       
    71     void Show( const TRect& aRect );
       
    72 
       
    73     /**
       
    74      * Show this floating control
       
    75      * 
       
    76      * @since S60 v5.0
       
    77      * @param aRect rect of control, in screen coord-sys
       
    78      * @param aOrdinalPos Ordinal position
       
    79      * @param aOrdinalPriority Ordinal priority
       
    80      * @return None
       
    81      */
       
    82     void Show( const TRect& aRect, TInt aOrdinalPos, TInt aOrdinalPriority );
       
    83     
       
    84     /**
       
    85      * Hide this floating control
       
    86      * 
       
    87      * @since S60 v5.0
       
    88      * @return None
       
    89      */
       
    90     void Hide();
       
    91     
       
    92     /**
       
    93      * Test if transparency is supported by this control
       
    94      * 
       
    95      * @since S60 v5.0
       
    96      * @return ETrue if support
       
    97      */
       
    98     TBool SupportTransparent() const;
       
    99     
       
   100 protected:
       
   101     /**
       
   102      * Symbian constructor
       
   103      * 
       
   104      * @since S60 v5.0
       
   105      * @return None
       
   106      */
       
   107     void BaseConstructL();
       
   108     
       
   109 private:
       
   110     TBool iSupportTransparent;
       
   111     };
       
   112 
       
   113 #endif // C_PENINPUTFLOATINGCTRL_H