diff -r 000000000000 -r 15bf7259bb7c uiacceltk/hitchcock/Client/src/alftextureautosizeparams.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiacceltk/hitchcock/Client/src/alftextureautosizeparams.cpp Tue Feb 02 07:56:43 2010 +0200 @@ -0,0 +1,105 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Texture autosize params +* +*/ + + + +#include "alf/alftextureautosizeparams.h" + + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// +EXPORT_C TAlfTextureAutoSizeParams::TAlfTextureAutoSizeParams() : + iSizeLowerThreshold(EMedium), + iSizeUpperThreshold(EMedium), + iMinSizeChange(EMedium), + iDownsizeSettleThreshold(EMedium) + { + }; + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// +EXPORT_C TInt TAlfTextureAutoSizeParams::SizeLowerThreshold() const + { + return iSizeLowerThreshold; + } + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// +EXPORT_C void TAlfTextureAutoSizeParams::SetSizeLowerThreshold(TInt aSizeLowerThreshold) + { + iSizeLowerThreshold = aSizeLowerThreshold; + } + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// +EXPORT_C TInt TAlfTextureAutoSizeParams::SizeUpperThreshold() const + { + return iSizeUpperThreshold; + } + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// +EXPORT_C void TAlfTextureAutoSizeParams::SetSizeUpperThreshold(TInt aSizeLowerThreshold) + { + iSizeUpperThreshold = aSizeLowerThreshold; + } + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// +EXPORT_C TInt TAlfTextureAutoSizeParams::MinSizeChange() const + { + return iMinSizeChange; + } + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// +EXPORT_C void TAlfTextureAutoSizeParams::SetMinSizeChange(TInt aMinSizeChange) + { + iMinSizeChange = aMinSizeChange; + } + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// +EXPORT_C TInt TAlfTextureAutoSizeParams::DownsizeSettleThreshold() const + { + return iDownsizeSettleThreshold; + } + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// +EXPORT_C void TAlfTextureAutoSizeParams::SetDownsizeSettleThreshold(TInt aDownsizeSettleThreshold) + { + iDownsizeSettleThreshold = aDownsizeSettleThreshold; + }