os/graphics/graphicsdeviceinterface/directgdiadaptation/swsrc/swdirectgdiellipse.h
Update contrib.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef SWDIRECTGDIELLIPSE_H_
17 #define SWDIRECTGDIELLIPSE_H_
28 A utility class to efficiently draw and fill ellipses
30 class TSwDirectGdiEllipse
34 Enumeration for the ellipse production life cycle
39 Ellipse has been initialised but has no area
43 The ellipse is drawn as two parabolas. These are in two sectors, the top and bottom
44 half of the rectangle. The first sector means the top parabola has been produced.
48 The parabola that occupies the bottom half of the rectangle has been produced.
52 The ellipse is complete
56 The ellipse has either a height or width of two units or less
57 and so takes the appearance of a line
62 void Construct(const TRect& aRect);
63 TBool SingleStep(TPoint& aTopLeft,TPoint& aTopRight,TPoint& aBottomLeft,TPoint& aBottomRight);
64 TBool NextStep(TPoint& aTopLeft,TPoint& aTopRight,TPoint& aBottomLeft,TPoint& aBottomRight);
65 TPoint Intersection(const TRect& aRect,const TPoint& aPoint);
67 TBool Output(TPoint& aTopLeft,TPoint& aTopRight,TPoint& aBottomLeft,TPoint& aBottomRight);
69 TEllipseStatus iStatus;
84 #endif /*SWDIRECTGDIELLIPSE_H_*/