136 bool create_window(const std::
string& title,
int desired_width,
int desired_height) noexcept;
173 bool create_window(const std::
string& title,
int desired_width,
int desired_height,
int screen_x,
174 int screen_y) noexcept;
void set_callback_window_closed(std::function< void(void)> &&callback) noexcept
The provided callback function will be called when the user uses the OS to close the window.
bool is_full_screen() noexcept
Is the window a fullscreen window?
EVENT_HOOK void on_window_closed()
The declaration of the optional on_window_closed function to implement in your doodle program.
EVENT_HOOK void on_window_focus_changed(bool is_focused)
The declaration of the optional on_window_focus_changed function to implement in your doodle program.
bool create_window() noexcept
Create a default window.
void set_callback_window_resized(std::function< void(int, int)> &&callback) noexcept
The provided callback function is called whenever the window is resized by the user.
void set_window_title(const std::string &new_title) noexcept
Set a new title for the window.
bool is_window_closed() noexcept
Is the window closed?
void show_cursor(bool show_it=true) noexcept
This function will allow you to hide or show the mouse cursor.
void close_window() noexcept
Programmatically close the window.
void toggle_full_screen() noexcept
Switch back and forth between fullscreen and windowed mode.
void update_window() noexcept
Update the doodle application.
EVENT_HOOK void on_window_resized(int new_width, int new_height)
The declaration of the optional on_window_resized function to implement in your doodle program.
bool WindowIsFocused
Confirms if the window a doodle program is in is "focused," meaning that the doodle will accept mouse...
void set_callback_window_focus_changed(std::function< void(bool)> &&callback) noexcept
THe provided callback function will be called when the window gains or loses focus.