ReXGlue SDK
Loading...
Searching...
No Matches
rex::ui::UISettings Class Referencefinal
Inheritance diagram for rex::ui::UISettings:
[legend]

Public Member Functions

 REX_SETTING (std::string, driver, "sdl3", "UI driver, none for headless in an app that does not require a UI", kStartupOnly)
 REX_SETTING (std::string, title, "", "Window title, the app name when empty")
 REX_SETTING (i32, window_width, 0, "Window width, 0 for the video mode width", Range{0, 16384})
 REX_SETTING (i32, window_height, 0, "Window height, 0 for the video mode height", Range{0, 16384})
 REX_SETTING (bool, fullscreen, true, "Fullscreen")
 REX_SETTING (bool, fullscreen_exclusive, false, "Exclusive fullscreen")
 REX_SETTING (i32, monitor, 0, "Display to open on", Range{0, 16})
 REX_SETTING (i32, min_width, 0, "Smallest window width", Range{0, 16384})
 REX_SETTING (i32, min_height, 0, "Smallest window height", Range{0, 16384})
 REX_SETTING (std::string, aspect_ratio, "stretch", "Window shape", Allowed("stretch", "4:3", "5:4", "3:2", "16:10", "16:9", "21:9", "32:9"))
 REX_SETTING (std::string, resolution, "", "Video mode preset or WxH, empty to use the ui.video_mode_* settings")
 REX_SETTING (i32, video_mode_width, 1280, "Video mode width the title sees", Range{640, 4095}, kRestart)
 REX_SETTING (i32, video_mode_height, 720, "Video mode height the title sees", Range{480, 4095}, kRestart)
 REX_SETTING (f64, video_mode_refresh_rate, 60.0, "Refresh rate the title sees", Range{24.0, 240.0}, kRestart)
 REX_SETTING (f64, cursor_timeout, 0.0, "Seconds before an idle cursor hides, 0 never hides", Range{0.0, 3600.0})
Public Member Functions inherited from rex::SettingOwner
 SettingOwner (std::string_view scope)
virtual ~SettingOwner ()
const std::string & GetScope () const
std::span< SettingBase *const > GetOwnedSettings () const

Additional Inherited Members

Protected Member Functions inherited from rex::NonCopyable
 NonCopyable (const NonCopyable &)=delete
NonCopyable & operator= (const NonCopyable &)=delete

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