uiacceltk/hitchcock/Client/src/alftextureautosizeparams.cpp
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2007 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:   Texture autosize params
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "alf/alftextureautosizeparams.h"
       
    21 
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // 
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 EXPORT_C TAlfTextureAutoSizeParams::TAlfTextureAutoSizeParams() : 
       
    28         iSizeLowerThreshold(EMedium),
       
    29         iSizeUpperThreshold(EMedium),
       
    30         iMinSizeChange(EMedium),
       
    31         iDownsizeSettleThreshold(EMedium)
       
    32     {    
       
    33     };        
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // 
       
    37 // ---------------------------------------------------------------------------
       
    38 //
       
    39 EXPORT_C TInt TAlfTextureAutoSizeParams::SizeLowerThreshold() const
       
    40     {
       
    41     return iSizeLowerThreshold;    
       
    42     }
       
    43 
       
    44 // ---------------------------------------------------------------------------
       
    45 // 
       
    46 // ---------------------------------------------------------------------------
       
    47 //
       
    48 EXPORT_C void TAlfTextureAutoSizeParams::SetSizeLowerThreshold(TInt aSizeLowerThreshold)
       
    49     {
       
    50     iSizeLowerThreshold = aSizeLowerThreshold;    
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // 
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 EXPORT_C TInt TAlfTextureAutoSizeParams::SizeUpperThreshold() const
       
    58     {
       
    59     return iSizeUpperThreshold;    
       
    60     }
       
    61 
       
    62 // ---------------------------------------------------------------------------
       
    63 // 
       
    64 // ---------------------------------------------------------------------------
       
    65 //
       
    66 EXPORT_C void TAlfTextureAutoSizeParams::SetSizeUpperThreshold(TInt aSizeLowerThreshold)
       
    67     {
       
    68     iSizeUpperThreshold = aSizeLowerThreshold;        
       
    69     }
       
    70 
       
    71 // ---------------------------------------------------------------------------
       
    72 // 
       
    73 // ---------------------------------------------------------------------------
       
    74 //
       
    75 EXPORT_C TInt TAlfTextureAutoSizeParams::MinSizeChange() const
       
    76     {
       
    77     return iMinSizeChange;    
       
    78     }
       
    79 
       
    80 // ---------------------------------------------------------------------------
       
    81 // 
       
    82 // ---------------------------------------------------------------------------
       
    83 //
       
    84 EXPORT_C void TAlfTextureAutoSizeParams::SetMinSizeChange(TInt aMinSizeChange)
       
    85     {
       
    86     iMinSizeChange = aMinSizeChange;    
       
    87     }
       
    88 
       
    89 // ---------------------------------------------------------------------------
       
    90 // 
       
    91 // ---------------------------------------------------------------------------
       
    92 //
       
    93 EXPORT_C TInt TAlfTextureAutoSizeParams::DownsizeSettleThreshold() const
       
    94     {
       
    95     return iDownsizeSettleThreshold;    
       
    96     }
       
    97 
       
    98 // ---------------------------------------------------------------------------
       
    99 // 
       
   100 // ---------------------------------------------------------------------------
       
   101 //
       
   102 EXPORT_C void TAlfTextureAutoSizeParams::SetDownsizeSettleThreshold(TInt aDownsizeSettleThreshold)
       
   103     {
       
   104     iDownsizeSettleThreshold = aDownsizeSettleThreshold;    
       
   105     }