#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_Utils.hpp>
Public Member Functions | |
| const wxRect & | get_rect () const |
| bool | get_maximized () const |
| void | sanitize_for_display (const wxRect &screen_rect) |
| void | center_for_display (const wxRect &screen_rect) |
| std::string | serialize () const |
Static Public Member Functions | |
| static WindowMetrics | from_window (wxTopLevelWindow *window) |
| static boost::optional< WindowMetrics > | deserialize (const std::string &str) |
Private Member Functions | |
| WindowMetrics () | |
Private Attributes | |
| wxRect | rect |
| bool | maximized |
|
inlineprivate |
References maximized.
Referenced by deserialize(), and from_window().
| void Slic3r::GUI::WindowMetrics::center_for_display | ( | const wxRect & | screen_rect | ) |
|
static |
References WindowMetrics(), maximized, rect, and Slic3r::unescape_strings_cstyle().
Referenced by Slic3r::GUI::GUI_App::on_init_inner(), and Slic3r::GUI::GUI_App::window_pos_restore().
|
static |
References WindowMetrics(), maximized, and rect.
Referenced by Slic3r::GUI::GUI_App::window_pos_center(), Slic3r::GUI::GUI_App::window_pos_sanitize(), and Slic3r::GUI::GUI_App::window_pos_save().
|
inline |
|
inline |
| void Slic3r::GUI::WindowMetrics::sanitize_for_display | ( | const wxRect & | screen_rect | ) |
References rect.
| std::string Slic3r::GUI::WindowMetrics::serialize | ( | ) | const |
References maximized, and rect.
Referenced by Slic3r::GUI::operator<<(), and Slic3r::GUI::GUI_App::window_pos_save().
|
private |
Referenced by WindowMetrics(), deserialize(), from_window(), get_maximized(), and serialize().
|
private |
Referenced by center_for_display(), deserialize(), from_window(), get_rect(), sanitize_for_display(), and serialize().