Remove orientation leftovers.
[SDL.s60v3.git] / symbian / include / internal / epoc_sdl.h
blob18a0f0ea0b8e57858c0fe0deeb9f5e4560b08a4b
1 #ifndef EPOCSDL_H
2 #define EPOCSDL_H
4 #include <e32def.h>
5 #include <e32std.h>
6 #include <gdi.h>
7 #include <w32std.h>
8 #include <aknappui.h>
9 #include <queue>
10 #include "SDL_config_symbian.h"
12 #define PANIC(x) Panic(x, __LINE__)
13 #define PANIC_IF_ERROR(x) (x == KErrNone || Panic(x, __LINE__))
15 TInt Panic(TInt aErr, TInt aLine);
17 typedef void (*TSdlCleanupOperation) (void* aThis);
19 class CEventQueue
21 public:
22 void Append(const TWsEvent& aEvent) { m_queue.push(aEvent); }
23 const TWsEvent Shift();
24 bool HasData();
26 private:
27 std::queue<TWsEvent> m_queue;
30 class TSdlCleanupItem
32 public:
33 TSdlCleanupItem(TSdlCleanupOperation aOperation, void* aItem);
34 TSdlCleanupOperation iOperation;
35 void* iItem;
36 TThreadId iThread;
39 class EpocSdlEnv
41 public:
42 enum {ELastService=100};
43 static void Request(TInt aService);
44 static CEventQueue& EventQueue();
45 static TDisplayMode DisplayMode();
46 static TInt Argc();
47 static char** Argv();
48 static TBool IsDsaAvailable();
49 static TInt AllocSurface(const TSize& aSize, TDisplayMode aMode);
50 static void UnlockHwSurface();
51 static TUint8* LockHwSurface();
52 static void UpdateSwSurface();
53 static TBool AddUpdateRect(TUint8* aAddress, const TRect& aUpdateRect, const TRect& aTargetRect);
54 static TInt SetPalette(TInt aFirstcolor, TInt aColorCount, TUint32* aPalette);
55 static void WaitDsaAvailable();
56 static TInt AppendCleanupItem(const TSdlCleanupItem& aItem);
57 static void RemoveCleanupItem(void* aItem);
58 static void CleanupItems();
59 static void FreeSurface();
60 static TInt ApplyGlesDsa();
61 static RWindow* Window();
62 static void UpdateWholeScreen(bool val);
63 static bool GetUpdateWholeScreen();
64 static void SetOrientation(CAknAppUi::TAppUiOrientation orientation, const TSize& aSize, TDisplayMode aMode);
67 #endif