13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef __FBS_H__ |
18 #ifndef __FBSBITMAP__ |
19 #define __FBS_H__ |
19 #define __FBSBITMAP__ |
20 |
20 |
21 #include <e32base.h> |
21 #include <e32base.h> |
22 #include <gdi.h> |
22 |
23 #include <bitmap.h> |
23 enum TDisplayMode |
|
24 { |
|
25 ///No display mode |
|
26 ENoneCopy, |
|
27 ///Monochrome display mode (1 bpp) |
|
28 EGray2Copy, |
|
29 ///Four grayscales display mode (2 bpp) |
|
30 EGray4Copy, |
|
31 ///16 grayscales display mode (4 bpp) |
|
32 EGray16Copy, |
|
33 ///256 grayscales display mode (8 bpp) |
|
34 EGray256Copy, |
|
35 ///Low colour EGA 16 colour display mode (4 bpp) |
|
36 EColor16Copy, |
|
37 ///256 colour display mode (8 bpp) |
|
38 EColor256Copy, |
|
39 ///64,000 colour display mode (16 bpp) |
|
40 EColor64KCopy, |
|
41 ///True colour display mode (24 bpp) |
|
42 EColor16MCopy, |
|
43 ///(Not an actual display mode used for moving buffers containing bitmaps) |
|
44 ERgbCopy, |
|
45 ///4096 colour display (12 bpp). |
|
46 EColor4KCopy, |
|
47 EColor16MUCopy, |
|
48 ///Display mode with alpha (24bpp colour plus 8bpp alpha) |
|
49 EColor16MACopy, |
|
50 //Any new display mode should be insterted here! |
|
51 //There might be up to 255 display modes, so value of the last |
|
52 //inserted EColorXXX enum item should be less than 256 - |
|
53 //BC reasons! |
|
54 EColorLastCopy, |
|
55 }; |
24 |
56 |
25 class CFbsBitmap |
57 class CFbsBitmap |
26 { |
58 { |
|
59 |
|
60 |
27 public: |
61 public: |
28 |
62 |
29 CFbsBitmap(); |
63 CFbsBitmap(); |
30 ~CFbsBitmap(); |
64 ~CFbsBitmap(); |
31 |
65 |
32 |
66 |
33 TInt Create( const TSize& aSizeInPixels, TDisplayMode aDispMode); |
67 TInt Create( const TSize& aSizeInPixels, TDisplayMode aDispMode); |
34 |
68 |
35 TInt Load(const TDesC& aFileName,TInt32 aId=0,TBool aShareIfLoaded=ETrue); |
69 TInt CFbsBitmap::Load(const TDesC& /*aFileName*/, |
36 TInt Load(const TDesC& aFileName,TInt32 aId,TBool aShareIfLoaded,TUint aFileOffset); |
70 TInt32 /*aId*/,TBool /*aShareIfLoaded*/); |
37 TInt Load(RFile& aFile,TInt32 aId=0,TBool aShareIfLoaded=ETrue); |
|
38 TInt Load(RFile& aFile,TInt32 aId,TBool aShareIfLoaded,TUint aFileOffset); |
|
39 |
|
40 TInt Resize(const TSize& aSizeInPixels); |
|
41 TSize SizeInPixels() const; |
|
42 TSize value; |
|
43 |
71 |
|
72 |
|
73 TInt CFbsBitmap::Load(const TDesC& /*aFileName*/, |
|
74 TInt32 /*aId*/,TBool /*aShareIfLoaded*/, |
|
75 TUint /*aFileOffset*/); |
44 |
76 |
45 |
77 |
46 |
78 |
47 }; |
79 }; |
48 |
80 |
49 class CFbsFont |
|
50 { |
|
51 }; |
|
52 |
|
53 class RFbsSession |
|
54 { |
|
55 }; |
|
56 |
|
57 class CFbsTypefaceStore |
|
58 { |
|
59 }; |
|
60 |
|
61 #endif |
81 #endif |