Antkeeper  0.0.1
Public Member Functions | List of all members
app::sdl_window_manager Class Reference

#include <sdl-window-manager.hpp>

Inheritance diagram for app::sdl_window_manager:
app::window_manager

Public Member Functions

 sdl_window_manager ()
 Constructs an SDL window manager. More...
 
 ~sdl_window_manager () override
 Destructs an SDL window manager. More...
 
void update () override
 Updates all managed windows. More...
 
std::shared_ptr< windowcreate_window (const std::string &title, const math::ivec2 &windowed_position, const math::ivec2 &windowed_size, bool maximized, bool fullscreen, bool v_sync) override
 
std::size_t get_display_count () const override
 Returns the number of available displays. More...
 
const displayget_display (std::size_t index) const override
 Returns the display with the given index. More...
 
- Public Member Functions inherited from app::window_manager
virtual ~window_manager ()=default
 Destructs a window manager. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from app::window_manager
static std::unique_ptr< window_managerinstance ()
 Allocates and returns a window manager. More...
 

Detailed Description

Definition at line 36 of file sdl-window-manager.hpp.

Constructor & Destructor Documentation

◆ sdl_window_manager()

app::sdl_window_manager::sdl_window_manager ( )

Constructs an SDL window manager.

Definition at line 29 of file sdl-window-manager.cpp.

◆ ~sdl_window_manager()

app::sdl_window_manager::~sdl_window_manager ( )
override

Destructs an SDL window manager.

Definition at line 94 of file sdl-window-manager.cpp.

Member Function Documentation

◆ create_window()

std::shared_ptr< window > app::sdl_window_manager::create_window ( const std::string &  title,
const math::ivec2 windowed_position,
const math::ivec2 windowed_size,
bool  maximized,
bool  fullscreen,
bool  v_sync 
)
overridevirtual

Implements app::window_manager.

Definition at line 102 of file sdl-window-manager.cpp.

◆ get_display()

const display & app::sdl_window_manager::get_display ( std::size_t  index) const
overridevirtual

Returns the display with the given index.

Parameters
indexIndex of a display.
Returns
Display with the given index.

Implements app::window_manager.

Definition at line 427 of file sdl-window-manager.cpp.

◆ get_display_count()

std::size_t app::sdl_window_manager::get_display_count ( ) const
overridevirtual

Returns the number of available displays.

Implements app::window_manager.

Definition at line 422 of file sdl-window-manager.cpp.

◆ update()

void app::sdl_window_manager::update ( )
overridevirtual

Updates all managed windows.

This should be called once per frame.

Implements app::window_manager.

Definition at line 129 of file sdl-window-manager.cpp.


The documentation for this class was generated from the following files: