Lines Matching refs:aSize
150 Size aSize( Application::GetDefaultDevice()->PixelToLogic( getPreferredSize(), MAP_100TH_MM ) ); in AdjustToMaxRect() local
153 if( aSize.Height() != 0 && aSize.Width() != 0 ) in AdjustToMaxRect()
160 ( aSize.Height() > aMaxSize.Height() ) || in AdjustToMaxRect()
161 ( aSize.Width() > aMaxSize.Width() ) )&& in AdjustToMaxRect()
162 aSize.Height() && aMaxSize.Height() ) in AdjustToMaxRect()
164 float fGrfWH = (float)aSize.Width() / in AdjustToMaxRect()
165 (float)aSize.Height(); in AdjustToMaxRect()
172 aSize.Width() = (long)(aMaxSize.Height() * fGrfWH); in AdjustToMaxRect()
173 aSize.Height()= aMaxSize.Height(); in AdjustToMaxRect()
177 aSize.Width() = aMaxSize.Width(); in AdjustToMaxRect()
178 aSize.Height()= (long)(aMaxSize.Width() / fGrfWH); in AdjustToMaxRect()
187 aPos.X() -= aSize.Width() / 2; in AdjustToMaxRect()
188 aPos.Y() -= aSize.Height() / 2; in AdjustToMaxRect()
189 SetLogicRect( Rectangle( aPos, aSize ) ); in AdjustToMaxRect()