Antkeeper
0.0.1
|
#include <window.hpp>
Public Member Functions | |
virtual void | set_title (const std::string &title)=0 |
Changes the title of the window. More... | |
virtual void | set_position (const math::ivec2 &position)=0 |
Changes the position of the window. More... | |
virtual void | set_size (const math::ivec2 &size)=0 |
Changes the size of the window. More... | |
virtual void | set_minimum_size (const math::ivec2 &size)=0 |
Sets the minimum size of the window. More... | |
virtual void | set_maximum_size (const math::ivec2 &size)=0 |
Sets the maximum size of the window. More... | |
virtual void | set_maximized (bool maximized)=0 |
Maximizes or unmaximizes the window. More... | |
virtual void | set_fullscreen (bool fullscreen)=0 |
Enables or disables fullscreen mode. More... | |
virtual void | set_v_sync (bool v_sync)=0 |
Enables or disables v-sync. More... | |
virtual void | make_current ()=0 |
Makes the window's graphics context current. More... | |
virtual void | swap_buffers ()=0 |
Swaps the front and back buffers of the window's graphics context. More... | |
const std::string & | get_title () const noexcept |
Returns the title of the window. More... | |
const math::ivec2 & | get_windowed_position () const noexcept |
Returns the windowed (non-maximized, non-fullscreen) position of the window, in display units. More... | |
const math::ivec2 & | get_position () const noexcept |
Returns the current position of the window, in display units. More... | |
const math::ivec2 & | get_windowed_size () const noexcept |
Returns the windowed (non-maximized, non-fullscreen) size of the window, in display units. More... | |
const math::ivec2 & | get_size () const noexcept |
Returns the current size of the window, in display units. More... | |
const math::ivec2 & | get_minimum_size () const noexcept |
Returns the minimum size of the window, in display units. More... | |
const math::ivec2 & | get_maximum_size () const noexcept |
Returns the maximum size of the window, in display units. More... | |
const math::ivec2 & | get_viewport_size () const noexcept |
Returns the current size of the window's drawable viewport, in pixels. More... | |
bool | is_maximized () const noexcept |
Returns true if the window is maximized, false otherwise. More... | |
bool | is_fullscreen () const noexcept |
Returns true if the window is in fullscreen mode, false otherwise. More... | |
bool | get_v_sync () const noexcept |
Returns true if the v-sync is enabled, false otherwise. More... | |
event::channel< window_closed_event > & | get_closed_channel () noexcept |
Returns the channel through which window closed events are published. More... | |
event::channel< window_focus_changed_event > & | get_focus_changed_channel () noexcept |
Returns the channel through which window focus changed events are published. More... | |
event::channel< window_maximized_event > & | get_maximized_channel () noexcept |
Returns the channel through which window maximized events are published. More... | |
event::channel< window_minimized_event > & | get_minimized_channel () noexcept |
Returns the channel through which window minimized events are published. More... | |
event::channel< window_moved_event > & | get_moved_channel () noexcept |
Returns the channel through which window moved events are published. More... | |
event::channel< window_resized_event > & | get_resized_channel () noexcept |
Returns the channel through which window resized events are published. More... | |
event::channel< window_restored_event > & | get_restored_channel () noexcept |
Returns the channel through which window restored events are published. More... | |
virtual const gl::pipeline & | get_graphics_pipeline () const noexcept=0 |
Returns the graphics pipeline associated with this window. More... | |
virtual gl::pipeline & | get_graphics_pipeline () noexcept=0 |
Returns the graphics pipeline associated with this window. More... | |
Protected Attributes | |
std::string | m_title |
math::ivec2 | m_windowed_position {0, 0} |
math::ivec2 | m_position {0, 0} |
math::ivec2 | m_windowed_size {0, 0} |
math::ivec2 | m_size {0, 0} |
math::ivec2 | m_minimum_size {0, 0} |
math::ivec2 | m_maximum_size {0, 0} |
math::ivec2 | m_viewport_size {0, 0} |
bool | m_maximized {false} |
bool | m_fullscreen {false} |
bool | m_v_sync {false} |
event::publisher< window_closed_event > | m_closed_publisher |
event::publisher< window_focus_changed_event > | m_focus_changed_publisher |
event::publisher< window_maximized_event > | m_maximized_publisher |
event::publisher< window_minimized_event > | m_minimized_publisher |
event::publisher< window_moved_event > | m_moved_publisher |
event::publisher< window_resized_event > | m_resized_publisher |
event::publisher< window_restored_event > | m_restored_publisher |
Friends | |
class | window_manager |
Definition at line 41 of file window.hpp.
|
inlinenoexcept |
Returns the channel through which window closed events are published.
Definition at line 183 of file window.hpp.
|
inlinenoexcept |
Returns the channel through which window focus changed events are published.
Definition at line 189 of file window.hpp.
|
pure virtualnoexcept |
Returns the graphics pipeline associated with this window.
Implemented in app::sdl_window.
|
pure virtualnoexcept |
Returns the graphics pipeline associated with this window.
Implemented in app::sdl_window.
|
inlinenoexcept |
Returns the channel through which window maximized events are published.
Definition at line 195 of file window.hpp.
|
inlinenoexcept |
Returns the maximum size of the window, in display units.
Definition at line 147 of file window.hpp.
|
inlinenoexcept |
Returns the channel through which window minimized events are published.
Definition at line 201 of file window.hpp.
|
inlinenoexcept |
Returns the minimum size of the window, in display units.
Definition at line 141 of file window.hpp.
|
inlinenoexcept |
Returns the channel through which window moved events are published.
Definition at line 207 of file window.hpp.
|
inlinenoexcept |
Returns the current position of the window, in display units.
Definition at line 123 of file window.hpp.
|
inlinenoexcept |
Returns the channel through which window resized events are published.
Definition at line 213 of file window.hpp.
|
inlinenoexcept |
Returns the channel through which window restored events are published.
Definition at line 219 of file window.hpp.
|
inlinenoexcept |
Returns the current size of the window, in display units.
Definition at line 135 of file window.hpp.
|
inlinenoexcept |
Returns the title of the window.
Definition at line 111 of file window.hpp.
|
inlinenoexcept |
Returns true
if the v-sync is enabled, false
otherwise.
Definition at line 171 of file window.hpp.
|
inlinenoexcept |
Returns the current size of the window's drawable viewport, in pixels.
Definition at line 153 of file window.hpp.
|
inlinenoexcept |
Returns the windowed (non-maximized, non-fullscreen) position of the window, in display units.
Definition at line 117 of file window.hpp.
|
inlinenoexcept |
Returns the windowed (non-maximized, non-fullscreen) size of the window, in display units.
Definition at line 129 of file window.hpp.
|
inlinenoexcept |
Returns true
if the window is in fullscreen mode, false
otherwise.
Definition at line 165 of file window.hpp.
|
inlinenoexcept |
Returns true
if the window is maximized, false
otherwise.
Definition at line 159 of file window.hpp.
|
pure virtual |
Makes the window's graphics context current.
Implemented in app::sdl_window.
|
pure virtual |
Enables or disables fullscreen mode.
fullscreen | true if the window should be in fullscreen mode, false otherwise. |
Implemented in app::sdl_window.
|
pure virtual |
Maximizes or unmaximizes the window.
maximized | true if the window should be maximized, false otherwise. |
Implemented in app::sdl_window.
|
pure virtual |
Sets the maximum size of the window.
size | Maximum size of the window, in display units. |
Implemented in app::sdl_window.
|
pure virtual |
Sets the minimum size of the window.
size | Minimum size of the window, in display units. |
Implemented in app::sdl_window.
|
pure virtual |
Changes the position of the window.
position | Position of the window, in display units. |
Implemented in app::sdl_window.
|
pure virtual |
Changes the size of the window.
size | Size of the window, in display units. |
Implemented in app::sdl_window.
|
pure virtual |
|
pure virtual |
Enables or disables v-sync.
v_sync | true if the v-sync should be enabled, false otherwise. |
Implemented in app::sdl_window.
|
pure virtual |
Swaps the front and back buffers of the window's graphics context.
Implemented in app::sdl_window.
|
friend |
Definition at line 225 of file window.hpp.
|
protected |
Definition at line 239 of file window.hpp.
|
protected |
Definition at line 240 of file window.hpp.
|
protected |
Definition at line 236 of file window.hpp.
|
protected |
Definition at line 235 of file window.hpp.
|
protected |
Definition at line 241 of file window.hpp.
|
protected |
Definition at line 233 of file window.hpp.
|
protected |
Definition at line 242 of file window.hpp.
|
protected |
Definition at line 232 of file window.hpp.
|
protected |
Definition at line 243 of file window.hpp.
|
protected |
Definition at line 229 of file window.hpp.
|
protected |
Definition at line 244 of file window.hpp.
|
protected |
Definition at line 245 of file window.hpp.
|
protected |
Definition at line 231 of file window.hpp.
|
protected |
Definition at line 227 of file window.hpp.
|
protected |
Definition at line 237 of file window.hpp.
|
protected |
Definition at line 234 of file window.hpp.
|
protected |
Definition at line 228 of file window.hpp.
|
protected |
Definition at line 230 of file window.hpp.