libER 0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
from::CS::CSWindow Class Reference

The singleton responsible for managing the game window and graphics settings. More...

#include <window.hpp>

Inheritance diagram for from::CS::CSWindow:
from::FD4::FD4ComponentBase

Classes

struct  graphics_settings
 

Public Types

enum class  screen_mode : int { window = 0 , fullscreen = 1 , borderless_window = 2 }
 The window screen mode.
 
enum class  quality_level : int {
  off = 0 , low = 1 , medium = 2 , high = 3 ,
  max = 4
}
 The quality of a graphics_settings entry.
 

Public Member Functions

window_handle_type get_window_handle () const
 Return a Win32 API window handle for the main Elden Ring game window.
 
window_position_type get_window_position () const
 Return a read-only view of the window position (if the game is in windowed mode)
 
window_size_type get_window_size () const
 Return a read-only view of the window width and height.
 
bool is_window_fullscreen () const
 Check if the window is currently full screen.
 
bool is_window_focused_previous () const
 Check if the window was focused on the previous frame.
 
bool is_window_focused () const
 Check if the window is currently focused.
 
graphics_settingsget_graphics_settings ()
 Return the current graphics quality settings.
 
const graphics_settingsget_graphics_settings () const
 Return the current graphics quality settings.
 
void set_graphics_settings (const graphics_settings &graphics_settings)
 Set the graphics quality settings.
 
- Public Member Functions inherited from from::FD4::FD4ComponentBase
virtual LIBERAPI DLRF::DLRuntimeClassget_runtime_class () noexcept
 Get the runtime class object.
 

Detailed Description

The singleton responsible for managing the game window and graphics settings.

Member Function Documentation

◆ is_window_fullscreen()

bool from::CS::CSWindow::is_window_fullscreen ( ) const
inline

Check if the window is currently full screen.

This is always true in fullscreen mode and false otherwise


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