Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
WindowSettings Struct Reference

#include <WindowSettings.hpp>

Public Member Functions

 WindowSettings ()=default
 
 WindowSettings (const Config &config)
 
std::string toString () noexcept
 

Public Attributes

std::string title = "Enigma"
 
std::int32_t width = 960
 
std::int32_t height = 720
 
std::int32_t minimum_width = GLFW_DONT_CARE
 
std::int32_t minimum_height = GLFW_DONT_CARE
 
std::int32_t maximum_width = GLFW_DONT_CARE
 
std::int32_t maximum_height = GLFW_DONT_CARE
 
std::int32_t refresh_rate = GLFW_DONT_CARE
 
std::uint32_t samples = 4
 
std::int32_t swap_interval = 2
 
bool fullscreen = false
 
bool decorated = true
 
bool resizable = true
 
bool focused = true
 
bool maximized = false
 
bool floating = false
 
bool visible = true
 
bool auto_iconify = true
 
bool show_fps = false
 
bool show_ram_usage = false
 
bool show_cpu_usage = false
 

Detailed Description

Definition at line 11 of file WindowSettings.hpp.

Constructor & Destructor Documentation

◆ WindowSettings() [1/2]

WindowSettings::WindowSettings ( )
default

Default construct WindowSettings with default values

◆ WindowSettings() [2/2]

WindowSettings::WindowSettings ( const Config config)
inlineexplicit

Construct WindowSettings from a Config file (.ini)

Definition at line 141 of file WindowSettings.hpp.

Member Function Documentation

◆ toString()

std::string WindowSettings::toString ( )
inlinenoexcept

Definition at line 165 of file WindowSettings.hpp.

Member Data Documentation

◆ auto_iconify

bool WindowSettings::auto_iconify = true

Definition at line 119 of file WindowSettings.hpp.

◆ decorated

bool WindowSettings::decorated = true

Definition at line 84 of file WindowSettings.hpp.

◆ floating

bool WindowSettings::floating = false

Definition at line 108 of file WindowSettings.hpp.

◆ focused

bool WindowSettings::focused = true

Definition at line 96 of file WindowSettings.hpp.

◆ fullscreen

bool WindowSettings::fullscreen = false

Definition at line 77 of file WindowSettings.hpp.

◆ height

std::int32_t WindowSettings::height = 720

Definition at line 25 of file WindowSettings.hpp.

◆ maximized

bool WindowSettings::maximized = false

Definition at line 101 of file WindowSettings.hpp.

◆ maximum_height

std::int32_t WindowSettings::maximum_height = GLFW_DONT_CARE

Definition at line 45 of file WindowSettings.hpp.

◆ maximum_width

std::int32_t WindowSettings::maximum_width = GLFW_DONT_CARE

Definition at line 40 of file WindowSettings.hpp.

◆ minimum_height

std::int32_t WindowSettings::minimum_height = GLFW_DONT_CARE

Definition at line 35 of file WindowSettings.hpp.

◆ minimum_width

std::int32_t WindowSettings::minimum_width = GLFW_DONT_CARE

Definition at line 30 of file WindowSettings.hpp.

◆ refresh_rate

std::int32_t WindowSettings::refresh_rate = GLFW_DONT_CARE

Definition at line 56 of file WindowSettings.hpp.

◆ resizable

bool WindowSettings::resizable = true

Definition at line 90 of file WindowSettings.hpp.

◆ samples

std::uint32_t WindowSettings::samples = 4

Definition at line 61 of file WindowSettings.hpp.

◆ show_cpu_usage

bool WindowSettings::show_cpu_usage = false

Definition at line 134 of file WindowSettings.hpp.

◆ show_fps

bool WindowSettings::show_fps = false

Definition at line 124 of file WindowSettings.hpp.

◆ show_ram_usage

bool WindowSettings::show_ram_usage = false

Definition at line 129 of file WindowSettings.hpp.

◆ swap_interval

std::int32_t WindowSettings::swap_interval = 2

Definition at line 71 of file WindowSettings.hpp.

◆ title

std::string WindowSettings::title = "Enigma"

Definition at line 15 of file WindowSettings.hpp.

◆ visible

bool WindowSettings::visible = true

Definition at line 113 of file WindowSettings.hpp.

◆ width

std::int32_t WindowSettings::width = 960

Definition at line 20 of file WindowSettings.hpp.


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