|
lxgui
|
Represents the window in which the UI is displayed. More...
#include <input_window.hpp>
Public Member Functions | |
| window (source &src) | |
| Initializes this window with a chosen input source. | |
| window (const window &)=delete | |
| window (window &&)=delete | |
| window & | operator= (const window &)=delete |
| window & | operator= (window &&)=delete |
| utils::ustring | get_clipboard_content () |
| Retrieve a copy of the clipboard content. | |
| void | set_clipboard_content (const utils::ustring &content) |
| Replace the content of the clipboard. | |
| void | set_mouse_cursor (const std::string &file_name, const gui::vector2i &hot_spot) |
| Sets the mouse cursor to a given image on disk. | |
| void | reset_mouse_cursor () |
| Sets the mouse cursor back to the default (arrow). | |
| float | get_interface_scaling_factor_hint () const |
| Return the interface scaling factor suggested by the operating system. | |
| const gui::vector2ui & | get_dimensions () const |
| Get the window size (in pixels) | |
| const source & | get_source () const |
| Returns the input source. | |
| source & | get_source () |
| Returns the input source. | |
Public Attributes | |
| utils::signal< void(const gui::vector2ui &)> | on_window_resized |
| Signal triggered whenever the window is resized or changes resolution. | |
Represents the window in which the UI is displayed.
Definition at line 14 of file input_window.hpp.
|
explicit |
Initializes this window with a chosen input source.
| src | The input source |
Definition at line 7 of file input_window.cpp.
|
delete |
|
delete |
| utils::ustring lxgui::input::window::get_clipboard_content | ( | ) |
Retrieve a copy of the clipboard content.
Definition at line 14 of file input_window.cpp.
| const gui::vector2ui & lxgui::input::window::get_dimensions | ( | ) | const |
Get the window size (in pixels)
Definition at line 30 of file input_window.cpp.
| float lxgui::input::window::get_interface_scaling_factor_hint | ( | ) | const |
Return the interface scaling factor suggested by the operating system.
Definition at line 34 of file input_window.cpp.
| source & lxgui::input::window::get_source | ( | ) |
| const source & lxgui::input::window::get_source | ( | ) | const |
| void lxgui::input::window::reset_mouse_cursor | ( | ) |
Sets the mouse cursor back to the default (arrow).
Definition at line 26 of file input_window.cpp.
| void lxgui::input::window::set_clipboard_content | ( | const utils::ustring & | content | ) |
Replace the content of the clipboard.
| content | The new clipboard content |
Definition at line 18 of file input_window.cpp.
| void lxgui::input::window::set_mouse_cursor | ( | const std::string & | file_name, |
| const gui::vector2i & | hot_spot | ||
| ) |
Sets the mouse cursor to a given image on disk.
| file_name | The cursor image |
| hot_spot | The pixel position of the tip of the pointer in the image |
Definition at line 22 of file input_window.cpp.
| utils::signal<void(const gui::vector2ui&)> lxgui::input::window::on_window_resized |
Signal triggered whenever the window is resized or changes resolution.
Arguments:
Definition at line 84 of file input_window.hpp.