equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-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 // |
|
15 |
|
16 #ifndef __BITDRAWORIENTATION_H__ |
|
17 #define __BITDRAWORIENTATION_H__ |
|
18 |
|
19 /** |
|
20 MDrawDeviceOrientation interface manages the orientation degrees of CFbsDrawDevice interface. |
|
21 |
|
22 The interface could be retrieved calling CFbsDrawDevice::GetInterface() with |
|
23 KOrientationInterfaceID as an argument. |
|
24 If the drawing device does not have support for moving origin, MDrawDeviceOrientation cannot be retrieved. |
|
25 |
|
26 MDrawDeviceOrientation interface lifetime is the same as the lifetime of CFbsDrawDevice |
|
27 interface, which creates it. |
|
28 Do not try to delete MDrawDeviceOrientation interface pointer! |
|
29 |
|
30 MDrawDeviceOrientation interface offers following method: |
|
31 Orientation() |
|
32 |
|
33 @see CFbsDrawDevice |
|
34 @internalTechnology |
|
35 */ |
|
36 class MDrawDeviceOrientation |
|
37 { |
|
38 public: |
|
39 /** |
|
40 Retrieves orientation. |
|
41 @return returns orientation degrees (0, 90, 180, 270). |
|
42 @internalTechnology |
|
43 */ |
|
44 virtual CFbsDrawDevice::TOrientation Orientation() = 0; |
|
45 }; |
|
46 |
|
47 #endif//__BITDRAWORIENTATION_H__ |