mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Constified many Graphics and Window methods
This commit is contained in:
@@ -45,27 +45,27 @@ public:
|
||||
virtual ~Window();
|
||||
|
||||
virtual bool setWindow(int width = 800, int height = 600, bool fullscreen = false, bool vsync = true, int fsaa = 0) = 0;
|
||||
virtual void getWindow(int &width, int &height, bool &fullscreen, bool &vsync, int &fsaa) = 0;
|
||||
virtual void getWindow(int &width, int &height, bool &fullscreen, bool &vsync, int &fsaa) const = 0;
|
||||
|
||||
virtual bool checkWindowSize(int width, int height, bool fullscreen) = 0;
|
||||
virtual WindowSize **getFullscreenSizes(int &n) = 0;
|
||||
virtual bool checkWindowSize(int width, int height, bool fullscreen) const = 0;
|
||||
virtual WindowSize **getFullscreenSizes(int &n) const = 0;
|
||||
|
||||
virtual int getWidth() = 0;
|
||||
virtual int getHeight() = 0;
|
||||
virtual int getWidth() const = 0;
|
||||
virtual int getHeight() const = 0;
|
||||
|
||||
virtual bool isCreated() = 0;
|
||||
virtual bool isCreated() const = 0;
|
||||
|
||||
virtual void setWindowTitle(std::string &title) = 0;
|
||||
virtual std::string getWindowTitle() = 0;
|
||||
virtual std::string getWindowTitle() const = 0;
|
||||
|
||||
virtual bool setIcon(love::image::ImageData *imgd) = 0;
|
||||
|
||||
// default no-op implementation
|
||||
virtual void swapBuffers();
|
||||
|
||||
virtual bool hasFocus() = 0;
|
||||
virtual bool hasFocus() const = 0;
|
||||
virtual void setMouseVisible(bool visible) = 0;
|
||||
virtual bool getMouseVisible() = 0;
|
||||
virtual bool getMouseVisible() const = 0;
|
||||
|
||||
//virtual static Window *getSingleton() = 0;
|
||||
// No virtual statics, of course, but you are supposed to implement this static.
|
||||
|
||||
Reference in New Issue
Block a user