textinput/peninputarc/inc/peninputlayoutcontrolinc/peninputlayoutbutton.inl
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Inline function for button base and dragbar
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 //class CButtonBase
       
    20 
       
    21 // ---------------------------------------------------------------------------
       
    22 // Is button dimmed?
       
    23 // ---------------------------------------------------------------------------
       
    24 //    
       
    25 inline TBool CButtonBase::IsDimmed()
       
    26     {
       
    27     return iDimmed;
       
    28     }
       
    29 
       
    30 
       
    31 // ---------------------------------------------------------------------------
       
    32 // Set button bitmap stretchable status
       
    33 // ---------------------------------------------------------------------------
       
    34 //    
       
    35 inline void CButtonBase::SetBmpStretchable(TBool aFlag)
       
    36     {
       
    37     iStretchable = aFlag;    
       
    38     }
       
    39     
       
    40 // ---------------------------------------------------------------------------
       
    41 // get button bitmap stretchable status
       
    42 // ---------------------------------------------------------------------------
       
    43 //    
       
    44 inline TBool CButtonBase::BmpStretchable()
       
    45     {
       
    46     return iStretchable;    
       
    47     }
       
    48     
       
    49 // ---------------------------------------------------------------------------
       
    50 // set caption font color
       
    51 // ---------------------------------------------------------------------------
       
    52 //    
       
    53 inline void CButtonBase::SetCaptionColor(const TRgb& aCol)
       
    54     {
       
    55     iCaptionColor = aCol;
       
    56     }
       
    57     
       
    58 // ---------------------------------------------------------------------------
       
    59 // set caption shadow font color
       
    60 // ---------------------------------------------------------------------------
       
    61 //       
       
    62 inline void CButtonBase::SetCaptionShadowColor(const TRgb& aCol)    
       
    63     {
       
    64     iCaptionShadowColor = aCol;
       
    65     }
       
    66 //class CDragBar
       
    67 // ---------------------------------------------------------------------------
       
    68 // Get dragbar draging status
       
    69 // ---------------------------------------------------------------------------
       
    70 //
       
    71 inline TBool CDragBar::IsDragging()
       
    72     {
       
    73     return iIsDragging;
       
    74     }  
       
    75 
       
    76 // ---------------------------------------------------------------------------
       
    77 // Enable/Disable dragbar's draging feature
       
    78 // ---------------------------------------------------------------------------
       
    79 //
       
    80 inline void CDragBar::EnableDragging(TBool aFlag)
       
    81     {
       
    82     iDraggingEnabled = aFlag;
       
    83     }
       
    84 
       
    85 // ---------------------------------------------------------------------------
       
    86 // Set the redraw interval while moving
       
    87 // ---------------------------------------------------------------------------
       
    88 //
       
    89 inline void CDragBar::SetRedrawInterval(TTimeIntervalMicroSeconds32 aTime)
       
    90     {
       
    91     iDrawInterval = aTime;
       
    92     }
       
    93 //end of class CDragBar
       
    94 
       
    95 //end of class CButtonBase