Go to the source code of this file.
Functions | |
OCTGUI_API void | adjust_to_screen (QRect &actual_geometry, const QRect &default_geometry) |
OCTGUI_API void | get_screen_geometry (int &width, int &height) |
OCTGUI_API QColor | interpolate_color (const QColor &col1, const QColor &col2, double fs, double fv) |
OCTGUI_API void adjust_to_screen | ( | QRect & | actual_geometry, |
const QRect & | default_geometry | ||
) |
Adjust geometry to be completely on a screen
actual_geometry | QRect with actual widget geometry; this is changed to the updated geometry which is on the screen. |
default_geometry | the default geometry that is used in case the actual geometry os on no available screen. |
Definition at line 60 of file gui-utils.cc.
Referenced by octave_dock_widget::handle_settings(), and find_dialog::restore_settings().
OCTGUI_API void get_screen_geometry | ( | int & | width, |
int & | height | ||
) |
Get the screen geometry of the actual screen.
width | integer variable for storing the screen width |
height | integer variable for storing the screen height |
Definition at line 51 of file gui-utils.cc.
Referenced by release_notes::release_notes(), community_news::construct(), and main_window::set_default_geometry().
OCTGUI_API QColor interpolate_color | ( | const QColor & | col1, |
const QColor & | col2, | ||
double | fs, | ||
double | fv | ||
) |
Deterimine an alternative color to col1
with less contrast to col2
. The HSV representation of the new color is calculated by
col1 | Base color to which the alternative has to be computed |
col2 | Color to which the the new color should have less contrast |
fs | Factor for changing the saturation |
fv | Factor for interpolating the brightness . For 0, and for 1, . |
Definition at line 39 of file gui-utils.cc.
References v2.
Referenced by led_indicator::style_sheet(), and file_editor_tab::update_lexer_settings().