ChaiLove API
0.28.0
|
Provides access to information about the user's system. More...
Public Member Functions | |
std::string | getOS () |
Gets the current operating system. More... | |
std::vector< int > | getVersion () |
Retreves the running ChaiLove version information. More... | |
std::string | getVersionString () |
Retreves the running ChaiLove version, as a string. More... | |
std::string | getUsername () |
Gets the current user's name, if available. More... | |
bool | execute (const std::string &command) |
Execute an operating system shell command. More... | |
std::string | getClipboardText () |
Gets text from the clipboard. More... | |
system & | setClipboardText (const std::string &text) |
Gets text from the clipboard. More... | |
Provides access to information about the user's system.
bool love::system::execute | ( | const std::string & | command | ) |
Execute an operating system shell command.
This is like the C system() function.
std::string love::system::getClipboardText | ( | ) |
Gets text from the clipboard.
Note: This is emulated, and not the actual system clipboard text.
std::string love::system::getOS | ( | ) |
Gets the current operating system.
std::string love::system::getUsername | ( | ) |
Gets the current user's name, if available.
When not available, will return an empty string.
std::vector<int> love::system::getVersion | ( | ) |
Retreves the running ChaiLove version information.
std::string love::system::getVersionString | ( | ) |
Retreves the running ChaiLove version, as a string.
system& love::system::setClipboardText | ( | const std::string & | text | ) |
Gets text from the clipboard.
text | The new text to hold in the system's clipboard. |