This simplifies things a bit as there's no need to declare dummy typedefs
for MonitorHandle and ModeHandle if they are not used. It also makes the
upcoming Android support a lot easier to accomplish.
namespace Graphics {
typedef CocoaDisplay *DisplayHandle;
-typedef int MonitorHandle;
-typedef int ModeHandle;
+
+struct PlatformDisplayPrivate
+{
+};
} // namespace Graphics
} // namespace Msp
namespace Msp {
namespace Graphics {
-struct Display::Private
+struct Display::Private: PlatformDisplayPrivate
{
DisplayHandle display;
std::map<WindowHandle, Window *> windows;
- std::vector<MonitorHandle> monitors;
- std::vector<ModeHandle> modes;
};
} // namespace Graphics
namespace Graphics {
typedef void *DisplayHandle;
-typedef std::string MonitorHandle;
-typedef int ModeHandle;
+
+struct PlatformDisplayPrivate
+{
+ std::vector<std::string> monitors;
+};
} // namespace Graphics
} // namespace Msp
namespace Graphics {
typedef ::Display *DisplayHandle;
+
+struct PlatformDisplayPrivate
+{
#ifdef WITH_XRANDR
-typedef RROutput MonitorHandle;
-typedef RRMode ModeHandle;
-#else
-typedef int MonitorHandle;
-typedef int ModeHandle;
+ std::vector<RROutput> monitors;
+ std::vector<RRMode> modes;
#endif
+};
} // namespace Graphics
} // namespace Msp