Window class. Provides access to common properties of operating system level windows.
More...
#include <foray_window.hpp>
Window class. Provides access to common properties of operating system level windows.
◆ Window() [1/3]
foray::osi::Window::Window |
( |
| ) |
|
◆ Window() [2/3]
foray::osi::Window::Window |
( |
const Window & |
other | ) |
|
|
delete |
◆ Window() [3/3]
foray::osi::Window::Window |
( |
const Window && |
other | ) |
|
|
delete |
◆ ~Window()
virtual foray::osi::Window::~Window |
( |
| ) |
|
|
virtual |
◆ assertThreadIsOwner()
virtual void foray::osi::Window::assertThreadIsOwner |
( |
| ) |
|
|
protectedvirtual |
◆ Create()
virtual void foray::osi::Window::Create |
( |
| ) |
|
|
virtual |
Creates the OS level window based on the parameters of the window object.
◆ Destroy()
virtual void foray::osi::Window::Destroy |
( |
| ) |
|
|
virtual |
Destroys the OS side of the window.
◆ DisplayMode() [1/2]
◆ DisplayMode() [2/2]
void foray::osi::Window::DisplayMode |
( |
EDisplayMode |
mode, |
|
|
bool |
preserveSize = false |
|
) |
| |
◆ Exists()
bool foray::osi::Window::Exists |
( |
| ) |
const |
|
inline |
Check if the window exists on an OS level.
- Returns
- true if window exists
◆ FindBySDLId()
static Window * foray::osi::Window::FindBySDLId |
( |
uint32_t |
id | ) |
|
|
static |
◆ GetOrCreateSurfaceKHR()
virtual VkSurfaceKHR foray::osi::Window::GetOrCreateSurfaceKHR |
( |
VkInstance |
instance | ) |
|
|
virtual |
◆ GetSdlWindowHandle()
SDL_Window * foray::osi::Window::GetSdlWindowHandle |
( |
| ) |
const |
|
inline |
◆ GetVkSurfaceExtensions()
virtual std::vector< const char * > foray::osi::Window::GetVkSurfaceExtensions |
( |
| ) |
const |
|
virtual |
◆ HandleEvent()
virtual void foray::osi::Window::HandleEvent |
( |
const Event * |
event | ) |
|
|
virtual |
◆ HandleEvent_Closed()
◆ HandleEvent_Resized()
◆ operator=()
void foray::osi::Window::operator= |
( |
const Window & |
other | ) |
|
|
delete |
◆ Position() [1/2]
VkOffset2D foray::osi::Window::Position |
( |
| ) |
const |
|
inline |
◆ Position() [2/2]
void foray::osi::Window::Position |
( |
const VkOffset2D |
pos | ) |
|
◆ SDLId()
virtual uint32_t foray::osi::Window::SDLId |
( |
| ) |
const |
|
virtual |
◆ Size() [1/2]
VkExtent2D foray::osi::Window::Size |
( |
| ) |
const |
|
inline |
(Getter) WindowPtr Size
- Returns
- Hardware-Level size in Pixels
◆ Size() [2/2]
void foray::osi::Window::Size |
( |
const VkExtent2D |
size | ) |
|
(Setter) WindowPtr Size. Only works in windowed display modes.
- Parameters
-
size | Hardware-Level size in Pixels |
◆ Title() [1/2]
const std::string & foray::osi::Window::Title |
( |
| ) |
const |
|
inline |
◆ Title() [2/2]
void foray::osi::Window::Title |
( |
const std::string & |
title | ) |
|
(Setter) WindowPtr Title
- Parameters
-
title | utf-8 encoded null terminated source to copy the updated title from |
◆ Windows()
static std::vector< Window * > & foray::osi::Window::Windows |
( |
| ) |
|
|
static |
◆ mDisplayId
int32_t foray::osi::Window::mDisplayId |
|
protected |
◆ mDisplayMode
◆ mFullScreenSize
VkExtent2D foray::osi::Window::mFullScreenSize |
|
protected |
◆ mHandle
SDL_Window* foray::osi::Window::mHandle = nullptr |
|
protected |
◆ mId
uint32_t foray::osi::Window::mId |
|
protected |
◆ mOwningThreadID
SDL_threadID foray::osi::Window::mOwningThreadID |
|
protected |
◆ mPosition
VkOffset2D foray::osi::Window::mPosition |
|
protected |
◆ mSurface
VkSurfaceKHR foray::osi::Window::mSurface = nullptr |
|
protected |
◆ mTitle
std::string foray::osi::Window::mTitle |
|
protected |
◆ mWindowedSize
VkExtent2D foray::osi::Window::mWindowedSize |
|
protected |
◆ sWindows
std::vector<Window*> foray::osi::Window::sWindows = std::vector<Window*>() |
|
inlinestaticprotected |
◆ WINDOWPOS_AUTO
const int32_t foray::osi::Window::WINDOWPOS_AUTO = INT32_MAX |
|
static |
The documentation for this class was generated from the following file: