Nana C++ Library. Reference for users.
What we need to use nana
|
Provides some functions to get the metrics of the monitors. More...
Classes | |
struct | implement |
Public Member Functions | |
screen () | |
void | reload () |
Reload has no preconditions, it's safe to call on moved-from. More... | |
std::size_t | count () const |
Returns the number of display monitors installed in the system. More... | |
display & | from_point (const point &) |
gets the display monitor that contains the specified point More... | |
display & | from_window (window) |
gets the display monitor that contains the specified window More... | |
display & | get_display (std::size_t index) const |
display & | get_primary () const |
void | for_each (std::function< void(display &)>) const |
applies a given function to all display monitors More... | |
Static Public Member Functions | |
::nana::size | desktop_size () |
gets the size in pixel of the whole virtual desktop More... | |
::nana::size | primary_monitor_size () |
Provides some functions to get the metrics of the monitors.
nana::screen::screen | ( | ) |
std::size_t nana::screen::count | ( | ) | const |
Returns the number of display monitors installed in the system.
|
static |
gets the size in pixel of the whole virtual desktop
void nana::screen::for_each | ( | std::function< void(display &)> | fn | ) | const |
applies a given function to all display monitors
gets the display monitor that contains the specified point
gets the display monitor that contains the specified window
display & nana::screen::get_display | ( | std::size_t | index | ) | const |
display & nana::screen::get_primary | ( | ) | const |
|
static |
gets the resolution in pixel of the primary monitor, if there is only one monitor installed in the system, the return value of primary_monitor_size is equal to desktop_size's.
void nana::screen::reload | ( | ) |
Reload has no preconditions, it's safe to call on moved-from.