lecui 1.0.0-alpha.20
lecui C++ user interface library
|
Manipulate the form's appearance. More...
#include <appearance.h>
Public Member Functions | |
appearance (form &fm) | |
Class constructor. More... | |
~appearance () | |
Class destructor. | |
appearance & | theme (themes theme) |
Set a preset theme. More... | |
themes | theme () |
Get the preset theme. More... | |
appearance & | theme (const lecui::color &color, const lecui::color &color_hot, const lecui::color &color_disabled, const lecui::color &color_text) |
Set the theme color. More... | |
bool & | shadow () |
Set or get the form shadow property. More... | |
bool | get_shadow () const |
Get the status of the form shadow. More... | |
appearance & | shadow (const bool &enable) |
Set the form shadow property. More... | |
lecui::color & | background () |
Get or set the form's background color. More... | |
lecui::color | get_background () const |
Get or the form's background color. More... | |
appearance & | background (const lecui::color &color) |
Set the form's background colors. More... | |
lecui::color & | title_bar () |
Get or set the background color of the title bar. More... | |
lecui::color | title_bar () const |
Get the background color of the title bar. More... | |
appearance & | title_bar (const lecui::color &color) |
Set the background color of the titlebar. More... | |
int & | main_icon () |
Get or set the ID of the main icon resource. More... | |
int | get_main_icon () const |
Get the ID of the main icon resource. More... | |
appearance & | main_icon (const int &main_icon) |
Set the ID of the main .ico resource. More... | |
int & | mini_icon () |
Get or set the ID of the small icon resource. More... | |
int | get_mini_icon () const |
Get the ID of the small icon resource. More... | |
appearance & | mini_icon (const int &mini_icon) |
Set the ID of the small .ico resource. More... | |
int & | caption_icon () |
Get or set the ID of the caption icon resource. More... | |
int | get_caption_icon () const |
Get the ID of the caption icon resource. More... | |
appearance & | caption_icon (const int &caption_icon) |
Set the ID of the caption icon resource. More... | |
Manipulate the form's appearance.
liblec::lecui::appearance::appearance | ( | form & | fm | ) |
Class constructor.
fm | A reference to the form. |
lecui::color & liblec::lecui::appearance::background | ( | ) |
Get or set the form's background color.
appearance & liblec::lecui::appearance::background | ( | const lecui::color & | color | ) |
Set the form's background colors.
color | The background color of the entire form. |
int & liblec::lecui::appearance::caption_icon | ( | ) |
Get or set the ID of the caption icon resource.
appearance & liblec::lecui::appearance::caption_icon | ( | const int & | caption_icon | ) |
Set the ID of the caption icon resource.
caption_icon | The resource ID of the caption icon .png. |
lecui::color liblec::lecui::appearance::get_background | ( | ) | const |
Get or the form's background color.
int liblec::lecui::appearance::get_caption_icon | ( | ) | const |
Get the ID of the caption icon resource.
int liblec::lecui::appearance::get_main_icon | ( | ) | const |
Get the ID of the main icon resource.
int liblec::lecui::appearance::get_mini_icon | ( | ) | const |
Get the ID of the small icon resource.
bool liblec::lecui::appearance::get_shadow | ( | ) | const |
Get the status of the form shadow.
int & liblec::lecui::appearance::main_icon | ( | ) |
Get or set the ID of the main icon resource.
appearance & liblec::lecui::appearance::main_icon | ( | const int & | main_icon | ) |
Set the ID of the main .ico resource.
main_icon | The ID of the main .ico resource. |
int & liblec::lecui::appearance::mini_icon | ( | ) |
Get or set the ID of the small icon resource.
appearance & liblec::lecui::appearance::mini_icon | ( | const int & | mini_icon | ) |
Set the ID of the small .ico resource.
mini_icon | The ID of the small .ico resource. |
bool & liblec::lecui::appearance::shadow | ( | ) |
Set or get the form shadow property.
appearance & liblec::lecui::appearance::shadow | ( | const bool & | enable | ) |
Set the form shadow property.
enable | Set to false to disable the shadow. |
The shadow is enabled by default if this method is never called.
themes liblec::lecui::appearance::theme | ( | ) |
Get the preset theme.
appearance & liblec::lecui::appearance::theme | ( | const lecui::color & | color, |
const lecui::color & | color_hot, | ||
const lecui::color & | color_disabled, | ||
const lecui::color & | color_text | ||
) |
Set the theme color.
color | The color of controls and the form border. |
color_hot | The color on-hovering over a control. |
color_disabled | The color when a control is disabled. |
color_text | The text color. |
appearance & liblec::lecui::appearance::theme | ( | themes | theme | ) |
Set a preset theme.
theme | The theme to set. |
This option has to be set early in the form's layout event, or better in the form's initialize event. Changing this later is not yet supported.
lecui::color & liblec::lecui::appearance::title_bar | ( | ) |
Get or set the background color of the title bar.
lecui::color liblec::lecui::appearance::title_bar | ( | ) | const |
Get the background color of the title bar.
appearance & liblec::lecui::appearance::title_bar | ( | const lecui::color & | color | ) |
Set the background color of the titlebar.
color | The background color of the titlebar. |