cgv
cgv::gui::application Class Reference

the application class is only a container for static methods that give access to the windows of the application More...

#include <application.h>

Static Public Member Functions

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 available
 
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 bool remove_window (window_ptr w)
 remove a window from the application's list of windows
 
static bool set_focus (const_window_ptr)
 set the input focus to the given window
 
static unsigned int get_nr_windows ()
 return the number of created windows
 
static window_ptr get_window (unsigned int i)
 return the i-th created window
 
static bool run ()
 run the main loop of the window system
 
static void quit (int exit_code=0)
 quit the application by closing all windows
 
static void copy_to_clipboard (const std::string &s)
 copy text to the clipboard
 
static std::string paste_from_clipboard ()
 retreive text from clipboard
 

Detailed Description

the application class is only a container for static methods that give access to the windows of the application


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