The xtd::forms::style_sheets::style_sheet allows you to specify an xtd style sheet.
Public Fields | |
static const style_sheet | empty |
Provides an empty xtd::forms::style_sheets::style_sheet object. | |
Public Static Events | |
static event< style_sheet, event_handler > | style_sheet_changed |
Occurs when the value of the xtd::forms::style_sheets::style_sheet::current_style_sheet property changes. | |
Public Constructors | |
style_sheet () | |
Initialize a new xtd::forms::style_sheets::style_sheet instance. | |
style_sheet (const xtd::string &css_text) | |
Initialize a new xtd::forms::style_sheets::style_sheet instance from specified css forrmated text. | |
Public Properties | |
xtd::forms::style_sheets::button | button () const noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::button | button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet button for specified pseudo state. | |
const buttons_t & | buttons () const noexcept |
Gets the style sheet buttons collection of this instance. | |
xtd::forms::style_sheets::control | control () const noexcept |
Gets the style sheet control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::control | control (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet control for specified pseudo state. | |
const controls_t & | controls () const noexcept |
Gets the style sheet controls collection of this instance. | |
xtd::forms::style_sheets::button | flat_button () const noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::button | flat_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet button for specified pseudo state. | |
const buttons_t & | flat_buttons () const noexcept |
Gets the style sheet buttons collection of this instance. | |
xtd::forms::style_sheets::toggle_button | flat_toggle_button () const noexcept |
Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::toggle_button | flat_toggle_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet toggle_button for specified pseudo state. | |
const toggle_buttons_t & | flat_toggle_buttons () const noexcept |
Gets the style sheet toggle_buttons collection of this instance. | |
xtd::forms::style_sheets::form | form () const noexcept |
Gets the style sheet form for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::form | form (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet form for specified pseudo state. | |
const forms_t & | forms () const noexcept |
Gets the style sheet forms collection of this instance. | |
bool | is_system_style_sheet () const noexcept |
Gets a value indicate if this instance is system style sheet. | |
xtd::forms::style_sheets::label | label () const noexcept |
Gets the style sheet label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::label | label (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet label for specified pseudo state. | |
const labels_t & | labels () const noexcept |
Gets the style sheet labels collection of this instance. | |
xtd::forms::style_sheets::link_label | link_label () const noexcept |
Gets the style sheet link_label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::link_label | link_label (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet link_label for specified pseudo state. | |
const link_labels_t & | link_labels () const noexcept |
Gets the style sheet link_label collection of this instance. | |
xtd::forms::style_sheets::panel | panel () const noexcept |
Gets the style sheet panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::panel | panel (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet panel for specified pseudo state. | |
const panels_t & | panels () const noexcept |
Gets the style sheet panels collection of this instance. | |
xtd::forms::style_sheets::button | popup_button () const noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::button | popup_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet button for specified pseudo state. | |
const buttons_t & | popup_buttons () const noexcept |
Gets the style sheet buttons collection of this instance. | |
xtd::forms::style_sheets::toggle_button | popup_toggle_button () const noexcept |
Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::toggle_button | popup_toggle_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet toggle_button for specified pseudo state. | |
const toggle_buttons_t & | popup_toggle_buttons () const noexcept |
Gets the style sheet toggle_buttons collection of this instance. | |
xtd::forms::style_sheets::status_bar | status_bar () const noexcept |
Gets the style sheet status_bar for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::status_bar | status_bar (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet status_bar for specified pseudo state. | |
const status_bars_t & | status_bars () const noexcept |
Gets the style sheet status_bar collection of this instance. | |
xtd::forms::style_sheets::status_bar_panel | status_bar_panel () const noexcept |
Gets the style sheet status bar panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::status_bar_panel | status_bar_panel (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet status bar panel for specified pseudo state. | |
const status_bar_panels_t & | status_bar_panels () const noexcept |
Gets the style sheet status bar panels collection of this instance. | |
const xtd::forms::style_sheets::system_colors & | system_colors () const noexcept |
Gets The style sheet system colors of this instance. | |
const xtd::forms::style_sheets::theme & | theme () const noexcept |
Gets The style sheet theme of this instance. | |
xtd::forms::style_sheets::toggle_button | toggle_button () const noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::toggle_button | toggle_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet button for specified pseudo state. | |
const toggle_buttons_t & | toggle_buttons () const noexcept |
Gets the style sheet buttons collection of this instance. | |
xtd::forms::style_sheets::tool_bar | tool_bar () const noexcept |
Gets the style sheet tool_bar for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::tool_bar | tool_bar (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet tool_bar for specified pseudo state. | |
const tool_bars_t & | tool_bars () const noexcept |
Gets the style sheet tool_bars collection of this instance. | |
xtd::forms::style_sheets::tool_bar_button | tool_bar_button () const noexcept |
Gets the style sheet tool bar button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::tool_bar_button | tool_bar_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet tool bar button for specified pseudo state. | |
const tool_bar_buttons_t & | tool_bar_buttons () const noexcept |
Gets the style sheet tool bar buttons collection of this instance. | |
xtd::forms::style_sheets::user_control | user_control () const noexcept |
Gets the style sheet user_control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::user_control | user_control (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet user_control for specified pseudo state. | |
const user_controls_t & | user_controls () const noexcept |
Gets the style sheet user_control collection of this instance. | |
Public Methods | |
bool | equals (const style_sheet &other) const noexcept override |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
template<typename object_a_t , typename object_b_t > | |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
Public Static Properties | |
static const style_sheet & | current_style_sheet () noexcept |
Gets current xtd::forms::style_sheets::style_sheet style sheet. | |
static void | current_style_sheet (const style_sheet &value) |
Sets current xtd::forms::style_sheets::style_sheet style sheet. | |
static const style_sheets_t & | style_sheets () noexcept |
Gets the installed xtd::forms::style_sheets::style_sheet style sheets. | |
static const style_sheet_names_t & | style_sheet_names () noexcept |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet names. | |
static const style_sheet & | system_style_sheet () noexcept |
Gets system xtd::forms::style_sheets::style_sheet style sheet. | |
Public Static Methods | |
static buttons_t | button_from_css (const xtd::string &css_text) |
Gets the style sheet buttons collection from specified css string. | |
static controls_t | control_from_css (const xtd::string &css_text) |
Gets the style sheet controls collection from specified css string. | |
static style_sheet | get_style_sheet_from_name (const xtd::string &name) |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name. | |
static style_sheet | get_style_sheet_from_file (const xtd::string &file_name) |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name. | |
static style_sheet | get_style_sheet_from_path (const xtd::string &path_name) |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name. | |
static forms_t | form_from_css (const xtd::string &css_text) |
Gets the style sheet forms collection from specified css string. | |
static xtd::forms::style_sheets::system_colors | system_colors_from_css (const xtd::string &css_text) |
Gets the style sheet system colors from specified css string. | |
static xtd::forms::style_sheets::theme | theme_from_css (const xtd::string &css_text) |
Gets the style sheet theme from specified css string. | |
static std::tuple< xtd::forms::style_sheets::border_type, int32, int32 > | to_border_type (xtd::forms::border_style border) |
Converts xtd::forms::border_style in std::tuple<xtd::forms::style_sheets::border_type, int32, int32>. | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::iequatable< style_sheet > | |
virtual bool | equals (const style_sheet &) const noexcept=0 |
Indicates whether the current object is equal to another object of the same type. | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. | |
template<typename object_t > | |
xtd::uptr< object_t > | memberwise_clone () const |
Creates a shallow copy of the current object. | |
virtual xtd::string | to_string () const noexcept |
Returns a xtd::string that represents the current object. | |
Static Public Member Functions inherited from xtd::object | |
template<typename object_a_t , typename object_b_t > | |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
template<typename object_a_t , typename object_b_t > | |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
using xtd::forms::style_sheets::style_sheet::buttons_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::button> |
Represents a style sheet buttons collection.
using xtd::forms::style_sheets::style_sheet::controls_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::control> |
Represents a style sheet controls collection.
using xtd::forms::style_sheets::style_sheet::forms_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::form> |
Represents a style sheet forms collection.
using xtd::forms::style_sheets::style_sheet::labels_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::label> |
Represents a style sheet labels collection.
using xtd::forms::style_sheets::style_sheet::link_labels_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::link_label> |
Represents a style sheet link_label collection.
using xtd::forms::style_sheets::style_sheet::panels_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::panel> |
Represents a style sheet panels collection.
using xtd::forms::style_sheets::style_sheet::style_sheets_t = std::map<xtd::string, style_sheet> |
Represents a style_sheets collection.
using xtd::forms::style_sheets::style_sheet::style_sheet_names_t = std::vector<xtd::string> |
Represents a style_sheet names collection.
using xtd::forms::style_sheets::style_sheet::status_bars_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::status_bar> |
Represents a style sheet tool_bars collection.
using xtd::forms::style_sheets::style_sheet::status_bar_panels_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::status_bar_panel> |
Represents a style sheet buttons collection.
using xtd::forms::style_sheets::style_sheet::toggle_buttons_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::toggle_button> |
Represents a style sheet toggle buttons collection.
using xtd::forms::style_sheets::style_sheet::tool_bars_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::tool_bar> |
Represents a style sheet tool_bars collection.
using xtd::forms::style_sheets::style_sheet::tool_bar_buttons_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::tool_bar_button> |
Represents a style sheet buttons collection.
using xtd::forms::style_sheets::style_sheet::user_controls_t = std::map<xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::user_control> |
Represents a style sheet user_controls collection.
xtd::forms::style_sheets::style_sheet::style_sheet | ( | ) |
Initialize a new xtd::forms::style_sheets::style_sheet instance.
|
explicit |
Initialize a new xtd::forms::style_sheets::style_sheet instance from specified css forrmated text.
css_text | The css forrmated text that contains the style sheet definition. |
|
noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet button for specified pseudo state.
|
noexcept |
Gets the style sheet buttons collection of this instance.
|
noexcept |
Gets the style sheet control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet control for specified pseudo state.
|
noexcept |
Gets the style sheet controls collection of this instance.
|
noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet button for specified pseudo state.
|
noexcept |
Gets the style sheet buttons collection of this instance.
|
noexcept |
Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet toggle_button for specified pseudo state.
|
noexcept |
Gets the style sheet toggle_buttons collection of this instance.
|
noexcept |
Gets the style sheet form for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet form for specified pseudo state.
|
noexcept |
Gets the style sheet forms collection of this instance.
|
noexcept |
Gets a value indicate if this instance is system style sheet.
|
noexcept |
Gets the style sheet label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet label for specified pseudo state.
|
noexcept |
Gets the style sheet labels collection of this instance.
|
noexcept |
Gets the style sheet link_label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet link_label for specified pseudo state.
|
noexcept |
Gets the style sheet link_label collection of this instance.
|
noexcept |
Gets the style sheet panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet panel for specified pseudo state.
|
noexcept |
Gets the style sheet panels collection of this instance.
|
noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet button for specified pseudo state.
|
noexcept |
Gets the style sheet buttons collection of this instance.
|
noexcept |
Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet toggle_button for specified pseudo state.
|
noexcept |
Gets the style sheet toggle_buttons collection of this instance.
|
noexcept |
Gets the style sheet status_bar for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet status_bar for specified pseudo state.
|
noexcept |
Gets the style sheet status_bar collection of this instance.
|
noexcept |
Gets the style sheet status bar panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet status bar panel for specified pseudo state.
|
noexcept |
Gets the style sheet status bar panels collection of this instance.
|
noexcept |
Gets The style sheet system colors of this instance.
|
noexcept |
Gets The style sheet theme of this instance.
|
noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet button for specified pseudo state.
|
noexcept |
Gets the style sheet buttons collection of this instance.
|
noexcept |
Gets the style sheet tool_bar for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet tool_bar for specified pseudo state.
|
noexcept |
Gets the style sheet tool_bars collection of this instance.
|
noexcept |
Gets the style sheet tool bar button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet tool bar button for specified pseudo state.
|
noexcept |
Gets the style sheet tool bar buttons collection of this instance.
|
noexcept |
Gets the style sheet user_control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet user_control for specified pseudo state.
|
noexcept |
Gets the style sheet user_control collection of this instance.
|
staticnoexcept |
Gets current xtd::forms::style_sheets::style_sheet style sheet.
|
static |
Sets current xtd::forms::style_sheets::style_sheet style sheet.
value | The current xtd::forms::style_sheets::style_sheet style sheet. |
|
staticnoexcept |
Gets the installed xtd::forms::style_sheets::style_sheet style sheets.
|
staticnoexcept |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet names.
|
staticnoexcept |
Gets system xtd::forms::style_sheets::style_sheet style sheet.
|
static |
Gets the style sheet buttons collection from specified css string.
css_text | The css string that contains button definition. |
|
static |
Gets the style sheet controls collection from specified css string.
css_text | The css string that contains control definition. |
|
static |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.
xtd::argument_exception | The style sheet name not tvalid. |
|
static |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.
xtd::argument_exception | The style sheet name not tvalid. |
|
static |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.
xtd::argument_exception | The style sheet name not tvalid. |
|
static |
Gets the style sheet forms collection from specified css string.
css_text | The css string that contains forms definition. |
|
static |
Gets the style sheet system colors from specified css string.
css_text | The css string that contains system colors definition. |
|
static |
Gets the style sheet theme from specified css string.
css_text | The css string that contains theme definition. |
|
static |
Converts xtd::forms::border_style in std::tuple<xtd::forms::style_sheets::border_type, int32, int32>.
border | The forms::border_style to convert. |
|
virtualnoexcept |
Determines whether the specified object is equal to the current object.
obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
inlinestaticnoexcept |
Determines whether the specified object instances are considered equal.
object_a | The first object to compare. |
object_b | The second object to compare. |
|
static |
Provides an empty xtd::forms::style_sheets::style_sheet object.
|
static |
Occurs when the value of the xtd::forms::style_sheets::style_sheet::current_style_sheet property changes.