cpp-sdl2
C++ header-only SDL2 wrapper
sdl::clipboard Namespace Reference

Clipboard management functions. More...

Functions

bool has_text ()
 Returns true if clipboard has text. More...
 
std::string text ()
 Returns the content of the clipboard. More...
 
int get_text (std::string const &text)
 Set the clipboard to a specific value. More...
 

Detailed Description

Clipboard management functions.

Function Documentation

◆ get_text()

int sdl::clipboard::get_text ( std::string const &  text)
inline

Set the clipboard to a specific value.

Definition at line 198 of file utils.hpp.

◆ has_text()

bool sdl::clipboard::has_text ( )
inline

Returns true if clipboard has text.

Definition at line 186 of file utils.hpp.

◆ text()

std::string sdl::clipboard::text ( )
inline

Returns the content of the clipboard.

Definition at line 192 of file utils.hpp.