Raylib C++  1.0.0
Encapsulates the raylib library
Static Public Member Functions | List of all members
raylib::window::System Class Reference

Some basic information about the system (screen, monitors, clipboard, ...) More...

#include <System.hpp>

Collaboration diagram for raylib::window::System:
Collaboration graph

Static Public Member Functions

static int getScreenWidth ()
 Get current screen width. More...
 
static int getScreenHeight ()
 Get current screen height. More...
 
static Vector2i getScreenSize ()
 Get the screen size. More...
 
static int getMonitorCount ()
 Get number of connected monitors. More...
 
static int getCurrentMonitor ()
 Get current connected monitor (index) More...
 
static Vector2f getMonitorPosition (int monitorIndex)
 Get specified monitor position. More...
 
static int getMonitorWidth (int monitorIndex)
 Get specified monitor width (max available by monitor) More...
 
static int getMonitorHeight (int monitorIndex)
 Get specified monitor height (max available by monitor) More...
 
static Vector2i getMonitorSize (int monitorIndex)
 Get specified monitor size. More...
 
static int getMonitorPhysicalWidth (int monitorIndex)
 Get specified monitor physical width in millimetres. More...
 
static int getMonitorPhysicalHeight (int monitorIndex)
 Get specified monitor physical height in millimetres. More...
 
static Vector2i getMonitorPhysicalSize (int monitorIndex)
 Get specified monitor physical size. More...
 
static int getMonitorRefreshRate (int monitorIndex)
 Get specified monitor refresh rate. More...
 
static Vector2f getWindowPosition ()
 Get window position XY on monitor. More...
 
static Vector2f getWindowScaleDPI ()
 Get window scale DPI factor. More...
 
static std::string getMonitorName (int monitorIndex)
 Get the human-readable, UTF-8 encoded name of the primary monitor. More...
 
static void setClipboardText (const std::string &text)
 Set clipboard text content. More...
 
static std::string getClipboardText ()
 Get clipboard text content. More...
 

Detailed Description

Some basic information about the system (screen, monitors, clipboard, ...)

Member Function Documentation

◆ getClipboardText()

std::string raylib::window::System::getClipboardText ( )
static

Get clipboard text content.

Returns
the clipboard text

◆ getCurrentMonitor()

int raylib::window::System::getCurrentMonitor ( )
static

Get current connected monitor (index)

Returns
the current connected monitor (index)

◆ getMonitorCount()

int raylib::window::System::getMonitorCount ( )
static

Get number of connected monitors.

Returns
the number of connected monitors

◆ getMonitorHeight()

int raylib::window::System::getMonitorHeight ( int  monitorIndex)
static

Get specified monitor height (max available by monitor)

Parameters
monitorIndexthe monitor index
Returns
the monitor height

◆ getMonitorName()

std::string raylib::window::System::getMonitorName ( int  monitorIndex)
static

Get the human-readable, UTF-8 encoded name of the primary monitor.

Parameters
monitorIndexthe monitor index
Returns
the monitor name

◆ getMonitorPhysicalHeight()

int raylib::window::System::getMonitorPhysicalHeight ( int  monitorIndex)
static

Get specified monitor physical height in millimetres.

Parameters
monitorIndexthe monitor index
Returns
the monitor physical height

◆ getMonitorPhysicalSize()

Vector2i raylib::window::System::getMonitorPhysicalSize ( int  monitorIndex)
static

Get specified monitor physical size.

Parameters
monitorIndexthe monitor index
Returns
the monitor physical size

◆ getMonitorPhysicalWidth()

int raylib::window::System::getMonitorPhysicalWidth ( int  monitorIndex)
static

Get specified monitor physical width in millimetres.

Parameters
monitorIndexthe monitor index
Returns
the monitor physical width

◆ getMonitorPosition()

Vector2f raylib::window::System::getMonitorPosition ( int  monitorIndex)
static

Get specified monitor position.

Parameters
monitorIndexthe monitor index
Returns
the monitor position
Here is the call graph for this function:

◆ getMonitorRefreshRate()

int raylib::window::System::getMonitorRefreshRate ( int  monitorIndex)
static

Get specified monitor refresh rate.

Parameters
monitorIndexthe monitor index
Returns
the monitor refresh rate

◆ getMonitorSize()

Vector2i raylib::window::System::getMonitorSize ( int  monitorIndex)
static

Get specified monitor size.

Parameters
monitorIndexthe monitor index
Returns
the monitor size

◆ getMonitorWidth()

int raylib::window::System::getMonitorWidth ( int  monitorIndex)
static

Get specified monitor width (max available by monitor)

Parameters
monitorIndexthe monitor index
Returns
the monitor width

◆ getScreenHeight()

int raylib::window::System::getScreenHeight ( )
static

Get current screen height.

Returns
the screen height

◆ getScreenSize()

Vector2i raylib::window::System::getScreenSize ( )
static

Get the screen size.

Returns
the screen size

◆ getScreenWidth()

int raylib::window::System::getScreenWidth ( )
static

Get current screen width.

Returns
the screen width

◆ getWindowPosition()

Vector2f raylib::window::System::getWindowPosition ( )
static

Get window position XY on monitor.

Returns
the window position XY
Here is the call graph for this function:

◆ getWindowScaleDPI()

Vector2f raylib::window::System::getWindowScaleDPI ( )
static

Get window scale DPI factor.

Returns
the window scale DPI factor
Here is the call graph for this function:

◆ setClipboardText()

void raylib::window::System::setClipboardText ( const std::string &  text)
static

Set clipboard text content.

Parameters
textthe text to set

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