X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fdisplay.h;h=5f84848d16781cb7a2ec76fa42e5f8d833674c6b;hb=1ea8498c4c729f849095e2f4aa3d282de2000a35;hp=f78aaff48448a67cd5532945a187e181ca72cc17;hpb=507fa60f32bd3f64840a2cdd1be5d68478432b55;p=libs%2Fgui.git diff --git a/source/graphics/display.h b/source/graphics/display.h index f78aaff..5f84848 100644 --- a/source/graphics/display.h +++ b/source/graphics/display.h @@ -1,12 +1,13 @@ #ifndef MSP_GRAPHICS_DISPLAY_H_ #define MSP_GRAPHICS_DISPLAY_H_ -#include #include #include +#include #include #include "errordialog.h" #include "monitor.h" +#include "mspgui_api.h" #include "videomode.h" namespace Msp { @@ -14,7 +15,7 @@ namespace Graphics { class Window; -class Display +class MSPGUI_API Display { public: struct Private; @@ -23,9 +24,9 @@ public: sigc::signal signal_lost_focus; private: - std::list monitors; + std::vector monitors; Monitor *primary_monitor = nullptr; - std::list modes; + std::vector modes; Private *priv = nullptr; ErrorDialog *err_dialog = nullptr; Window *focus_window = nullptr; @@ -39,8 +40,8 @@ public: void add_window(Window &); void remove_window(Window &); - const std::list &get_monitors() const { return monitors; } - const std::list &get_modes() const { return modes; } + const std::vector &get_monitors() const { return monitors; } + const std::vector &get_modes() const { return modes; } const VideoMode &get_desktop_mode() const; void set_mode(const VideoMode &, bool = false); void restore_mode();