TAknLayoutRect Class Reference
Low level rectangle management based on European LAF document (can be used by application's custom controls)
This allows you to draw images, rectangles, lines or just calculate rectangles based on LAF spec.
This class reads AVKON_LAYOUT_RECT resources.
Instances of this class should be placed inside controls for reading low level layout from resources.
Public Member Functions |
---|
| TAknLayoutRect() |
IMPORT_C TRgb | Color() |
IMPORT_C void | DrawImage(CBitmapContext &, CFbsBitmap *, CFbsBitmap *) |
IMPORT_C void | DrawOutLineRect(CWindowGc &) |
IMPORT_C void | DrawRect(CWindowGc &) |
IMPORT_C void | LayoutRect(const TRect &, TInt) |
IMPORT_C void | LayoutRect(const TRect &, TResourceReader &) |
IMPORT_C void | LayoutRect(const TRect &, const AknLayoutUtils::SAknLayoutRect &) |
IMPORT_C void | LayoutRect(const TRect &, const TAknWindowLineLayout &) |
IMPORT_C void | LayoutRect(const TRect &, TInt, TInt, TInt, TInt, TInt, TInt, TInt) |
IMPORT_C TRect | Rect() |
TBool
| Valid() |
Constructor & Destructor Documentation
Member Functions Documentation
Color()
IMPORT_C TRgb | Color | ( | ) | const |
Color() can be called from control's Draw() method.
DO NOT CALL it in SizeChanged(), ConstructL() or ActivateL() method, because it messes up color scheme changes. Especially if you're using colors 226-248. If you store color values, be prepared to update TRgb's you store when color palette is changed! Best thing to do is to make your Draw() methods call AKN_LAF_COLOR().
DrawImage(CBitmapContext &, CFbsBitmap *, CFbsBitmap *)
DrawOutLineRect(CWindowGc &)
IMPORT_C void | DrawOutLineRect | ( | CWindowGc & | aGc | ) | const |
LayoutRect(const TRect &, TInt)
IMPORT_C void | LayoutRect | ( | const TRect & | aParent, |
| TInt | aResourceId |
| ) | |
LayoutRect should be called from control's SizeChanged() method.
LayoutRect(const TRect &, TResourceReader &)
LayoutRect(const TRect &, const AknLayoutUtils::SAknLayoutRect &)
LayoutRect(const TRect &, const TAknWindowLineLayout &)
LayoutRect(const TRect &, TInt, TInt, TInt, TInt, TInt, TInt, TInt)
Rect()
IMPORT_C TRect | Rect | ( | ) | const |
Rect() can be called from control's Draw() or in SizeChanged() as input for some other table's layout code.
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.