mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Added love.window.close (resolves issue #1059), and renamed love.window.isCreated to love.window.isOpen.
This commit is contained in:
@@ -44,6 +44,8 @@ public:
|
||||
bool setWindow(int width = 800, int height = 600, WindowSettings *settings = nullptr);
|
||||
void getWindow(int &width, int &height, WindowSettings &settings);
|
||||
|
||||
void close();
|
||||
|
||||
bool setFullscreen(bool fullscreen, FullscreenType fstype);
|
||||
bool setFullscreen(bool fullscreen);
|
||||
|
||||
@@ -60,7 +62,7 @@ public:
|
||||
void setPosition(int x, int y, int displayindex);
|
||||
void getPosition(int &x, int &y, int &displayindex);
|
||||
|
||||
bool isCreated() const;
|
||||
bool isOpen() const;
|
||||
|
||||
void setWindowTitle(const std::string &title);
|
||||
const std::string &getWindowTitle() const;
|
||||
@@ -139,7 +141,7 @@ private:
|
||||
|
||||
} curMode;
|
||||
|
||||
bool created;
|
||||
bool open;
|
||||
|
||||
bool mouseGrabbed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user