ScummVM API documentation
win32.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef PLATFORM_SDL_WIN32_H
23 #define PLATFORM_SDL_WIN32_H
24 
25 #include "backends/platform/sdl/sdl.h"
26 #include "backends/platform/sdl/win32/win32-window.h"
27 
28 class OSystem_Win32 final : public OSystem_SDL {
29 public:
30  OSystem_Win32();
31 
32  void init() override;
33  void initBackend() override;
34 
35 #ifdef USE_OPENGL
36  GraphicsManagerType getDefaultGraphicsManager() const override;
37 #endif
38 
39  void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0) override;
40 
41  bool hasFeature(Feature f) override;
42 
43  bool displayLogFile() override;
44 
45  bool openUrl(const Common::String &url) override;
46 
47  void logMessage(LogMessageType::Type type, const char *message) override;
48 
49  Common::String getSystemLanguage() const override;
50 
51  // Default paths
52  Common::Path getDefaultIconsPath() override;
53  Common::Path getDefaultDLCsPath() override;
54  Common::Path getScreenshotsPath() override;
55 
56 protected:
59 
60  // Override createAudioCDManager() to get our Windows-specific
61  // version.
63 
64  HWND getHwnd() { return ((SdlWindow_Win32*)_window)->getHwnd(); }
65 
66  uint32 getOSDoubleClickTime() const override;
67 
68 private:
69  bool _isPortable;
70  bool detectPortableConfigFile();
71 
72 #if defined(USE_JPEG)
73  void initializeJpegLibraryForWin95();
74 #endif
75 };
76 
77 #endif
Definition: sdl.h:46
Definition: str.h:59
SdlWindow * _window
Definition: sdl.h:143
Feature
Definition: system.h:403
Definition: path.h:52
Type
Definition: log.h:33
void init() override
Definition: archive.h:312
bool openUrl(const Common::String &url) override
void initBackend() override
Definition: win32.h:28
void logMessage(LogMessageType::Type type, const char *message) override
bool displayLogFile() override
AudioCDManager * createAudioCDManager() override
Common::Path getDefaultLogFileName() override
Common::Path getDefaultConfigFileName() override
Definition: audiocd.h:33
void addSysArchivesToSearchSet(Common::SearchSet &s, int priority=0) override
Common::String getSystemLanguage() const override
bool hasFeature(Feature f) override