33#ifndef DVD_DISPLAY_WINDOW_INL_
34#define DVD_DISPLAY_WINDOW_INL_
132 template<
typename... Args>
135 if constexpr(
sizeof...(Args) > 0)
137 SDL_SetWindowTitle( _sdlWindow, Util::StringFormat<string>( format,
static_cast<Args&&
>(args)... ).c_str());
141 SDL_SetWindowTitle( _sdlWindow, format);
bool hasFocus() const noexcept
void handleChangeWindowType(WindowType newWindowType)
bool hidden() const noexcept
bool maximized() const noexcept
bool minimized() const noexcept
Rect< I32 > windowViewport() const noexcept
void clearEventListeners(WindowEvent windowEvent)
void changeToPreviousType()
std::array< EventListeners, to_base(WindowEvent::COUNT)> _eventListeners
const Rect< I32 > & renderingViewport() const noexcept
bool isHovered() const noexcept
bool decorated() const noexcept
Rect< I32 > _renderingViewport
void setPosition(I32 x, I32 y, bool global=false, bool offset=false)
Window positioning is handled by SDL.
DELEGATE< void > _destroyCbk
bool fullscreen() const noexcept
const char * title() const noexcept
void destroyCbk(const DELEGATE< void > &destroyCbk)
U8 prevOpacity() const noexcept
vec2< U16 > getDimensions() const noexcept
SDL_Window * getRawWindow() const noexcept
void changeType(WindowType newType)
DELEGATE< bool, const WindowEventArgs & > EventListener
void addEventListener(WindowEvent windowEvent, const EventListener &listener)
Handle console commands that start with a forward slash.
DELEGATE_STD< Ret, Args... > DELEGATE
constexpr I32 to_I32(const T value)
constexpr auto to_base(const Type value) -> Type