27 static bool enumerate_monitors(std::vector<monitor_description>& monitor_descriptions);
30 const std::string& title,
const std::string& window_type =
"viewer");
42 static void quit(
int exit_code = 0);
52#include <cgv/config/lib_end.h>
the application class is only a container for static methods that give access to the windows of the a...
static window_ptr create_window(int w, int h, const std::string &title, const std::string &window_type="viewer")
create a window of the given type, where all gui implementations must support the type "viewer"
static void copy_to_clipboard(const std::string &s)
copy text to the clipboard
static bool run()
run the main loop of the window system
static bool enumerate_monitors(std::vector< monitor_description > &monitor_descriptions)
fill the passed vector with a list of all monitors descriptions; returns false if no gui driver is av...
static window_ptr get_window(unsigned int i)
return the i-th created window
static void quit(int exit_code=0)
quit the application by closing all windows
static std::string paste_from_clipboard()
retreive text from clipboard
static bool remove_window(window_ptr w)
remove a window from the application's list of windows
static unsigned int get_nr_windows()
return the number of created windows
static bool set_focus(const_window_ptr)
set the input focus to the given window
namespace that holds the abstract gui interface
data::ref_ptr< window > window_ptr
ref counted pointer to &window
data::ref_ptr< const window > const_window_ptr
ref counted pointer to const window
this header is dependency free