Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
Window Class Reference

#include <Window.hpp>

Public Member Functions

 Window (const WindowSettings &window_settings=WindowSettings())
 
virtual ~Window ()
 
const std::pair< std::int32_t, std::int32_t > & GetSize () const noexcept
 
std::int32_t GetWidth () const noexcept
 
std::int32_t GetHeight () const noexcept
 
const std::pair< std::int32_t, std::int32_t > & GetFrameBufferSize () noexcept
 
std::int32_t GetFrameBufferWidth () noexcept
 
std::int32_t GetFrameBufferHeight () noexcept
 
float GetAspectRatio () const noexcept
 
const GLFWwindow * GetGLFWwindow () const noexcept
 
GLFWwindow * GetGLFWwindow () noexcept
 
const std::string & GetTitle () const noexcept
 
const std::pair< std::int32_t, std::int32_t > & GetMinimumSize () const noexcept
 
const std::pair< std::int32_t, std::int32_t > & GetMaximumSize () const noexcept
 
const std::pair< std::int32_t, std::int32_t > & GetPosition () const noexcept
 
std::int32_t GetSwapInterval () const noexcept
 
bool ShouldClose () const noexcept
 
bool IsHidden () const noexcept
 
bool IsVisible () const noexcept
 
bool IsMaximized () const noexcept
 
bool IsMinimized () const noexcept
 
bool IsFocused () const noexcept
 
bool IsResizable () const noexcept
 
bool IsDecorated () const noexcept
 
bool IsFullscreen () const noexcept
 
std::int32_t GetRefreshRate () noexcept
 
std::pair< std::int32_t, std::int32_t > GetMonitorSize () noexcept
 
void SetEventCallback (const EventCallback &callback) noexcept
 
void SetMinimumSize (const std::int32_t minimum_width, const std::int32_t minimum_height) noexcept
 
void SetMaximumSize (const std::int32_t maximum_width, const std::int32_t maximum_height) noexcept
 
void SetShouldClose (const bool close) const noexcept
 
void SetSwapInterval (const std::int32_t interval) noexcept
 
void SetTitle (const std::string &title, const std::unique_ptr< std::uint32_t > &fps, const std::unique_ptr< RAMInfo > &ram_info, const std::unique_ptr< CPUInfo > &cpu_info) noexcept
 
void SetPosition (const std::int32_t x, const std::int32_t y) const noexcept
 
void SetIcon (const std::string &icon_path) noexcept
 
void SetIcon (const byte *iconData, std::size_t iconDataSize) noexcept
 
void SetCursor (CursorMode mode) noexcept
 
void SetCursor (const std::string &image_path, const std::int32_t xhot, const std::int32_t yhot) noexcept
 
void DisableCursor () const noexcept
 
void EnableCursor () const noexcept
 
void HideCursor () const noexcept
 
void SetCursorPosition (const double xPos, const double yPos) const noexcept
 
void Minimize () const noexcept
 
void Maximize () const noexcept
 
void Restore () const noexcept
 
void Hide () const noexcept
 
void Show () const noexcept
 
void Focus () const noexcept
 
void SetFullscreen (bool full_screen) noexcept
 
void SetRefreshRate (const std::int32_t refresh_rate) noexcept
 

Friends

class Application
 

Detailed Description

Definition at line 26 of file Window.hpp.

Constructor & Destructor Documentation

◆ Window()

Window::Window ( const WindowSettings window_settings = WindowSettings())

◆ ~Window()

virtual Window::~Window ( )
virtual

Member Function Documentation

◆ DisableCursor()

void Window::DisableCursor ( ) const
noexcept

◆ EnableCursor()

void Window::EnableCursor ( ) const
noexcept

◆ Focus()

void Window::Focus ( ) const
noexcept

◆ GetAspectRatio()

float Window::GetAspectRatio ( ) const
noexcept

◆ GetFrameBufferHeight()

std::int32_t Window::GetFrameBufferHeight ( )
noexcept

◆ GetFrameBufferSize()

const std::pair<std::int32_t, std::int32_t>& Window::GetFrameBufferSize ( )
noexcept

◆ GetFrameBufferWidth()

std::int32_t Window::GetFrameBufferWidth ( )
noexcept

◆ GetGLFWwindow() [1/2]

const GLFWwindow* Window::GetGLFWwindow ( ) const
noexcept

◆ GetGLFWwindow() [2/2]

GLFWwindow* Window::GetGLFWwindow ( )
noexcept

◆ GetHeight()

std::int32_t Window::GetHeight ( ) const
noexcept

◆ GetMaximumSize()

const std::pair<std::int32_t, std::int32_t>& Window::GetMaximumSize ( ) const
noexcept

◆ GetMinimumSize()

const std::pair<std::int32_t, std::int32_t>& Window::GetMinimumSize ( ) const
noexcept

◆ GetMonitorSize()

std::pair<std::int32_t, std::int32_t> Window::GetMonitorSize ( )
noexcept

◆ GetPosition()

const std::pair<std::int32_t, std::int32_t>& Window::GetPosition ( ) const
noexcept

◆ GetRefreshRate()

std::int32_t Window::GetRefreshRate ( )
noexcept

◆ GetSize()

const std::pair<std::int32_t, std::int32_t>& Window::GetSize ( ) const
noexcept

◆ GetSwapInterval()

std::int32_t Window::GetSwapInterval ( ) const
noexcept

◆ GetTitle()

const std::string& Window::GetTitle ( ) const
noexcept

◆ GetWidth()

std::int32_t Window::GetWidth ( ) const
noexcept

◆ Hide()

void Window::Hide ( ) const
noexcept

◆ HideCursor()

void Window::HideCursor ( ) const
noexcept

◆ IsDecorated()

bool Window::IsDecorated ( ) const
noexcept

◆ IsFocused()

bool Window::IsFocused ( ) const
noexcept

◆ IsFullscreen()

bool Window::IsFullscreen ( ) const
noexcept

◆ IsHidden()

bool Window::IsHidden ( ) const
noexcept

◆ IsMaximized()

bool Window::IsMaximized ( ) const
noexcept

Return true if the windows is maximized

◆ IsMinimized()

bool Window::IsMinimized ( ) const
noexcept

◆ IsResizable()

bool Window::IsResizable ( ) const
noexcept

◆ IsVisible()

bool Window::IsVisible ( ) const
noexcept

◆ Maximize()

void Window::Maximize ( ) const
noexcept

◆ Minimize()

void Window::Minimize ( ) const
noexcept

◆ Restore()

void Window::Restore ( ) const
noexcept

◆ SetCursor() [1/2]

void Window::SetCursor ( const std::string &  image_path,
const std::int32_t  xhot,
const std::int32_t  yhot 
)
noexcept

◆ SetCursor() [2/2]

void Window::SetCursor ( CursorMode  mode)
noexcept

◆ SetCursorPosition()

void Window::SetCursorPosition ( const double  xPos,
const double  yPos 
) const
noexcept

◆ SetEventCallback()

void Window::SetEventCallback ( const EventCallback &  callback)
noexcept

◆ SetFullscreen()

void Window::SetFullscreen ( bool  full_screen)
noexcept

◆ SetIcon() [1/2]

void Window::SetIcon ( const byte *  iconData,
std::size_t  iconDataSize 
)
noexcept

◆ SetIcon() [2/2]

void Window::SetIcon ( const std::string &  icon_path)
noexcept

◆ SetMaximumSize()

void Window::SetMaximumSize ( const std::int32_t  maximum_width,
const std::int32_t  maximum_height 
)
noexcept

◆ SetMinimumSize()

void Window::SetMinimumSize ( const std::int32_t  minimum_width,
const std::int32_t  minimum_height 
)
noexcept

◆ SetPosition()

void Window::SetPosition ( const std::int32_t  x,
const std::int32_t  y 
) const
noexcept

◆ SetRefreshRate()

void Window::SetRefreshRate ( const std::int32_t  refresh_rate)
noexcept

◆ SetShouldClose()

void Window::SetShouldClose ( const bool  close) const
noexcept

◆ SetSwapInterval()

void Window::SetSwapInterval ( const std::int32_t  interval)
noexcept

◆ SetTitle()

void Window::SetTitle ( const std::string &  title,
const std::unique_ptr< std::uint32_t > &  fps,
const std::unique_ptr< RAMInfo > &  ram_info,
const std::unique_ptr< CPUInfo > &  cpu_info 
)
noexcept

◆ ShouldClose()

bool Window::ShouldClose ( ) const
noexcept

◆ Show()

void Window::Show ( ) const
noexcept

Friends And Related Function Documentation

◆ Application

friend class Application
friend

Definition at line 325 of file Window.hpp.


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