equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Header containing Logical border interface: MGulLogicalBorder, and logical boreder set and get: GulTls. |
|
15 // |
|
16 |
|
17 #ifndef GULLOGICALBORDER_H |
|
18 #define GULLOGICALBORDER_H |
|
19 |
|
20 /** |
|
21 The MGulLogicalBorder class specifices an interface for logical borders. |
|
22 |
|
23 @internalTechnology*/ |
|
24 class MGulLogicalBorder |
|
25 { |
|
26 public: |
|
27 virtual void Draw(const TGulBorder& aBorder,CGraphicsContext& aGc, const TRect& aRect, const TGulBorder::TColors& aBorderColors) const=0; |
|
28 virtual TMargins Margins(const TGulBorder& aBorder) const=0; |
|
29 private: |
|
30 IMPORT_C virtual void MGulLogicalBorderReserved(); |
|
31 }; |
|
32 |
|
33 /** |
|
34 The GulTls class sets and gets the thread local storage for EGul. |
|
35 |
|
36 @internalTechnology*/ |
|
37 class GulTls |
|
38 { |
|
39 public: |
|
40 IMPORT_C static void SetLogicalBorder(MGulLogicalBorder* aLogicalBorder); |
|
41 IMPORT_C static const MGulLogicalBorder* LogicalBorder(); |
|
42 }; |
|
43 |
|
44 |
|
45 #endif /* GULLOGICALBORDER_H */ |