xtd 1.0.0
Loading...
Searching...
No Matches
xtd::forms::style_sheets::style_sheet Class Referencefinal
Inheritance diagram for xtd::forms::style_sheets::style_sheet:
xtd::iequatable< style_sheet > xtd::object xtd::interface xtd::extensions::equality_operators< style_sheet, iequatable< style_sheet > >

Definition

The xtd::forms::style_sheets::style_sheet allows you to specify an xtd style sheet.

class forms_export_ style_sheet final : public xtd::iequatable<style_sheet>, public xtd::object
style_sheet()
Initialize a new xtd::forms::style_sheets::style_sheet instance.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
Inheritance
xtd::objectxtd::forms::style_sheets::style_sheet
Implements
xtd::iequatable <>
Header
#include <xtd/forms/style_sheets/style_sheet>
Namespace
xtd::forms::style_sheets
Library
xtd.forms
Remarks
This class is used by xtd::forms::style_sheets::ibox_model.
For more information, see Style sheets overview.

Public Aliases

using buttons_t
 Represents a style sheet buttons collection.
using controls_t
 Represents a style sheet controls collection.
using forms_t
 Represents a style sheet forms collection.
using labels_t
 Represents a style sheet labels collection.
using link_labels_t
 Represents a style sheet link_label collection.
using panels_t
 Represents a style sheet panels collection.
using style_sheets_t
 Represents a style_sheets collection.
using style_sheet_names_t
 Represents a style_sheet names collection.
using status_bars_t
 Represents a style sheet tool_bars collection.
using status_bar_panels_t
 Represents a style sheet buttons collection.
using toggle_buttons_t
 Represents a style sheet toggle buttons collection.
using tool_bars_t
 Represents a style sheet tool_bars collection.
using tool_bar_buttons_t
 Represents a style sheet buttons collection.
using user_controls_t
 Represents a style sheet user_controls collection.

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_handlerstyle_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

auto button () const noexcept -> xtd::forms::style_sheets::button
 Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto button (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::button
 Gets the style sheet button for specified pseudo state.
auto buttons () const noexcept -> const buttons_t &
 Gets the style sheet buttons collection of this instance.
auto control () const noexcept -> xtd::forms::style_sheets::control
 Gets the style sheet control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto control (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::control
 Gets the style sheet control for specified pseudo state.
auto controls () const noexcept -> const controls_t &
 Gets the style sheet controls collection of this instance.
auto flat_button () const noexcept -> xtd::forms::style_sheets::button
 Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto flat_button (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::button
 Gets the style sheet button for specified pseudo state.
auto flat_buttons () const noexcept -> const buttons_t &
 Gets the style sheet buttons collection of this instance.
auto flat_toggle_button () const noexcept -> xtd::forms::style_sheets::toggle_button
 Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto flat_toggle_button (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::toggle_button
 Gets the style sheet toggle_button for specified pseudo state.
auto flat_toggle_buttons () const noexcept -> const toggle_buttons_t &
 Gets the style sheet toggle_buttons collection of this instance.
auto form () const noexcept -> xtd::forms::style_sheets::form
 Gets the style sheet form for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto form (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::form
 Gets the style sheet form for specified pseudo state.
auto forms () const noexcept -> const forms_t &
 Gets the style sheet forms collection of this instance.
auto is_system_style_sheet () const noexcept -> bool
 Gets a value indicate if this instance is system style sheet.
auto label () const noexcept -> xtd::forms::style_sheets::label
 Gets the style sheet label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto label (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::label
 Gets the style sheet label for specified pseudo state.
auto labels () const noexcept -> const labels_t &
 Gets the style sheet labels collection of this instance.
auto link_label () const noexcept -> xtd::forms::style_sheets::link_label
 Gets the style sheet link_label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto link_label (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::link_label
 Gets the style sheet link_label for specified pseudo state.
auto link_labels () const noexcept -> const link_labels_t &
 Gets the style sheet link_label collection of this instance.
auto panel () const noexcept -> xtd::forms::style_sheets::panel
 Gets the style sheet panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto panel (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::panel
 Gets the style sheet panel for specified pseudo state.
auto panels () const noexcept -> const panels_t &
 Gets the style sheet panels collection of this instance.
auto popup_button () const noexcept -> xtd::forms::style_sheets::button
 Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto popup_button (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::button
 Gets the style sheet button for specified pseudo state.
auto popup_buttons () const noexcept -> const buttons_t &
 Gets the style sheet buttons collection of this instance.
auto popup_toggle_button () const noexcept -> xtd::forms::style_sheets::toggle_button
 Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto popup_toggle_button (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::toggle_button
 Gets the style sheet toggle_button for specified pseudo state.
auto popup_toggle_buttons () const noexcept -> const toggle_buttons_t &
 Gets the style sheet toggle_buttons collection of this instance.
auto status_bar () const noexcept -> xtd::forms::style_sheets::status_bar
 Gets the style sheet status_bar for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto status_bar (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::status_bar
 Gets the style sheet status_bar for specified pseudo state.
auto status_bars () const noexcept -> const status_bars_t &
 Gets the style sheet status_bar collection of this instance.
auto status_bar_panel () const noexcept -> xtd::forms::style_sheets::status_bar_panel
 Gets the style sheet status bar panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto status_bar_panel (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::status_bar_panel
 Gets the style sheet status bar panel for specified pseudo state.
auto status_bar_panels () const noexcept -> const status_bar_panels_t &
 Gets the style sheet status bar panels collection of this instance.
auto system_colors () const noexcept -> const xtd::forms::style_sheets::system_colors &
 Gets The style sheet system colors of this instance.
auto theme () const noexcept -> const xtd::forms::style_sheets::theme &
 Gets The style sheet theme of this instance.
auto toggle_button () const noexcept -> xtd::forms::style_sheets::toggle_button
 Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto toggle_button (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::toggle_button
 Gets the style sheet button for specified pseudo state.
auto toggle_buttons () const noexcept -> const toggle_buttons_t &
 Gets the style sheet buttons collection of this instance.
auto tool_bar () const noexcept -> xtd::forms::style_sheets::tool_bar
 Gets the style sheet tool_bar for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto tool_bar (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::tool_bar
 Gets the style sheet tool_bar for specified pseudo state.
auto tool_bars () const noexcept -> const tool_bars_t &
 Gets the style sheet tool_bars collection of this instance.
auto tool_bar_button () const noexcept -> xtd::forms::style_sheets::tool_bar_button
 Gets the style sheet tool bar button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto tool_bar_button (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::tool_bar_button
 Gets the style sheet tool bar button for specified pseudo state.
auto tool_bar_buttons () const noexcept -> const tool_bar_buttons_t &
 Gets the style sheet tool bar buttons collection of this instance.
auto user_control () const noexcept -> xtd::forms::style_sheets::user_control
 Gets the style sheet user_control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
auto user_control (xtd::forms::style_sheets::pseudo_state state) const noexcept -> xtd::forms::style_sheets::user_control
 Gets the style sheet user_control for specified pseudo state.
auto user_controls () const noexcept -> const user_controls_t &
 Gets the style sheet user_control collection of this instance.

Public Methods

auto equals (const xtd::object &obj) const noexcept -> bool override
 Determines whether the specified object is equal to the current object.
auto equals (const style_sheet &other) const noexcept -> bool override
 Determines whether the specified object is equal to the current object.
auto get_hash_code () const noexcept -> xtd::usize override
 Serves as a hash function for a particular type.

Public Static Properties

static auto current_style_sheet () noexcept -> const style_sheet &
 Gets current xtd::forms::style_sheets::style_sheet style sheet.
static auto current_style_sheet (const style_sheet &value) -> void
 Sets current xtd::forms::style_sheets::style_sheet style sheet.
static auto style_sheets () noexcept -> const style_sheets_t &
 Gets the installed xtd::forms::style_sheets::style_sheet style sheets.
static auto style_sheet_names () noexcept -> const style_sheet_names_t &
 Gets the installed xtd::forms::style_sheets::style_sheet style sheet names.
static auto system_style_sheet () noexcept -> const style_sheet &
 Gets system xtd::forms::style_sheets::style_sheet style sheet.

Public Static Methods

static auto button_from_css (const xtd::string &css_text) -> buttons_t
 Gets the style sheet buttons collection from specified css string.
static auto control_from_css (const xtd::string &css_text) -> controls_t
 Gets the style sheet controls collection from specified css string.
static auto get_style_sheet_from_name (const xtd::string &name) -> style_sheet
 Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.
static auto get_style_sheet_from_file (const xtd::string &file_name) -> style_sheet
 Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.
static auto get_style_sheet_from_path (const xtd::string &path_name) -> style_sheet
 Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.
static auto form_from_css (const xtd::string &css_text) -> forms_t
 Gets the style sheet forms collection from specified css string.
static auto system_colors_from_css (const xtd::string &css_text) -> xtd::forms::style_sheets::system_colors
 Gets the style sheet system colors from specified css string.
static auto theme_from_css (const xtd::string &css_text) -> xtd::forms::style_sheets::theme
 Gets the style sheet theme from specified css string.
static auto to_border_type (xtd::forms::border_style border) -> std::tuple< xtd::forms::style_sheets::border_type, int32, int32 >
 Converts xtd::forms::border_style in std::tuple<xtd::forms::style_sheets::border_type, int32, int32>.

Additional Inherited Members

virtual auto equals (const style_sheet &) const noexcept -> bool=0
 Indicates whether the current object is equal to another object of the same type.
 object ()=default
 Create a new instance of the ultimate base class object.
virtual auto get_type () const noexcept -> type_object
 Gets the type of the current instance.
template<typename object_t>
auto memberwise_clone () const -> xtd::unique_ptr_object< object_t >
 Creates a shallow copy of the current object.
virtual auto to_string () const -> xtd::string
 Returns a xtd::string that represents the current object.
template<typename object_a_t, typename object_b_t>
static auto equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool
 Determines whether the specified object instances are considered equal.
template<typename object_a_t, typename object_b_t>
static auto reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool
 Determines whether the specified object instances are the same instance.

Member Typedef Documentation

◆ buttons_t

Represents a style sheet buttons collection.

◆ controls_t

Represents a style sheet controls collection.

◆ forms_t

Represents a style sheet forms collection.

◆ labels_t

Represents a style sheet labels collection.

◆ link_labels_t

Represents a style sheet link_label collection.

◆ panels_t

Represents a style sheet panels collection.

◆ style_sheets_t

◆ style_sheet_names_t

◆ status_bars_t

Represents a style sheet tool_bars collection.

◆ status_bar_panels_t

Represents a style sheet buttons collection.

◆ toggle_buttons_t

Represents a style sheet toggle buttons collection.

◆ tool_bars_t

Represents a style sheet tool_bars collection.

◆ tool_bar_buttons_t

Represents a style sheet buttons collection.

◆ user_controls_t

Represents a style sheet user_controls collection.

Constructor & Destructor Documentation

◆ style_sheet() [1/2]

xtd::forms::style_sheets::style_sheet::style_sheet ( )

Initialize a new xtd::forms::style_sheets::style_sheet instance.

◆ style_sheet() [2/2]

xtd::forms::style_sheets::style_sheet::style_sheet ( const xtd::string & css_text)
explicit

Initialize a new xtd::forms::style_sheets::style_sheet instance from specified css forrmated text.

Parameters
css_textThe css forrmated text that contains the style sheet definition.
Remarks
For more information, see Style sheets overview.

Member Function Documentation

◆ button() [1/2]

auto xtd::forms::style_sheets::style_sheet::button ( ) const -> xtd::forms::style_sheets::button
nodiscardnoexcept

Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ button() [2/2]

auto xtd::forms::style_sheets::style_sheet::button ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::button
nodiscardnoexcept

Gets the style sheet button for specified pseudo state.

Returns
A style_sheet button.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ buttons()

auto xtd::forms::style_sheets::style_sheet::buttons ( ) const -> const buttons_t &
nodiscardnoexcept

Gets the style sheet buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ control() [1/2]

auto xtd::forms::style_sheets::style_sheet::control ( ) const -> xtd::forms::style_sheets::control
nodiscardnoexcept

Gets the style sheet control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ control() [2/2]

auto xtd::forms::style_sheets::style_sheet::control ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::control
nodiscardnoexcept

Gets the style sheet control for specified pseudo state.

Returns
A style_sheet control.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ controls()

auto xtd::forms::style_sheets::style_sheet::controls ( ) const -> const controls_t &
nodiscardnoexcept

Gets the style sheet controls collection of this instance.

Returns
The style sheet controls collection.

◆ flat_button() [1/2]

auto xtd::forms::style_sheets::style_sheet::flat_button ( ) const -> xtd::forms::style_sheets::button
nodiscardnoexcept

Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ flat_button() [2/2]

auto xtd::forms::style_sheets::style_sheet::flat_button ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::button
nodiscardnoexcept

Gets the style sheet button for specified pseudo state.

Returns
A style_sheet button.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ flat_buttons()

auto xtd::forms::style_sheets::style_sheet::flat_buttons ( ) const -> const buttons_t &
nodiscardnoexcept

Gets the style sheet buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ flat_toggle_button() [1/2]

auto xtd::forms::style_sheets::style_sheet::flat_toggle_button ( ) const -> xtd::forms::style_sheets::toggle_button
nodiscardnoexcept

Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ flat_toggle_button() [2/2]

auto xtd::forms::style_sheets::style_sheet::flat_toggle_button ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::toggle_button
nodiscardnoexcept

Gets the style sheet toggle_button for specified pseudo state.

Returns
A style_sheet button.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ flat_toggle_buttons()

auto xtd::forms::style_sheets::style_sheet::flat_toggle_buttons ( ) const -> const toggle_buttons_t &
nodiscardnoexcept

Gets the style sheet toggle_buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ form() [1/2]

auto xtd::forms::style_sheets::style_sheet::form ( ) const -> xtd::forms::style_sheets::form
nodiscardnoexcept

Gets the style sheet form for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet form for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ form() [2/2]

auto xtd::forms::style_sheets::style_sheet::form ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::form
nodiscardnoexcept

Gets the style sheet form for specified pseudo state.

Returns
A style_sheet form.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ forms()

auto xtd::forms::style_sheets::style_sheet::forms ( ) const -> const forms_t &
nodiscardnoexcept

Gets the style sheet forms collection of this instance.

Returns
The style sheet forms collection.

◆ is_system_style_sheet()

auto xtd::forms::style_sheets::style_sheet::is_system_style_sheet ( ) const -> bool
nodiscardnoexcept

Gets a value indicate if this instance is system style sheet.

Returns
true if the current instance is system style sheet; otherwise false.
Remarks
This method return true only if the current instance is equal to xtd::forms::style_sheets::style_sheet::system_style_sheet.

◆ label() [1/2]

auto xtd::forms::style_sheets::style_sheet::label ( ) const -> xtd::forms::style_sheets::label
nodiscardnoexcept

Gets the style sheet label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ label() [2/2]

auto xtd::forms::style_sheets::style_sheet::label ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::label
nodiscardnoexcept

Gets the style sheet label for specified pseudo state.

Returns
A style_sheet label.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ labels()

auto xtd::forms::style_sheets::style_sheet::labels ( ) const -> const labels_t &
nodiscardnoexcept

Gets the style sheet labels collection of this instance.

Returns
The style sheet labels collection.

◆ link_label() [1/2]

auto xtd::forms::style_sheets::style_sheet::link_label ( ) const -> xtd::forms::style_sheets::link_label
nodiscardnoexcept

◆ link_label() [2/2]

auto xtd::forms::style_sheets::style_sheet::link_label ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::link_label
nodiscardnoexcept

Gets the style sheet link_label for specified pseudo state.

Returns
A style_sheet link_label.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ link_labels()

auto xtd::forms::style_sheets::style_sheet::link_labels ( ) const -> const link_labels_t &
nodiscardnoexcept

Gets the style sheet link_label collection of this instance.

Returns
The style sheet link_label collection.

◆ panel() [1/2]

auto xtd::forms::style_sheets::style_sheet::panel ( ) const -> xtd::forms::style_sheets::panel
nodiscardnoexcept

Gets the style sheet panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ panel() [2/2]

auto xtd::forms::style_sheets::style_sheet::panel ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::panel
nodiscardnoexcept

Gets the style sheet panel for specified pseudo state.

Returns
A style_sheet panel.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ panels()

auto xtd::forms::style_sheets::style_sheet::panels ( ) const -> const panels_t &
nodiscardnoexcept

Gets the style sheet panels collection of this instance.

Returns
The style sheet panels collection.

◆ popup_button() [1/2]

auto xtd::forms::style_sheets::style_sheet::popup_button ( ) const -> xtd::forms::style_sheets::button
nodiscardnoexcept

Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ popup_button() [2/2]

auto xtd::forms::style_sheets::style_sheet::popup_button ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::button
nodiscardnoexcept

Gets the style sheet button for specified pseudo state.

Returns
A style_sheet button.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ popup_buttons()

auto xtd::forms::style_sheets::style_sheet::popup_buttons ( ) const -> const buttons_t &
nodiscardnoexcept

Gets the style sheet buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ popup_toggle_button() [1/2]

auto xtd::forms::style_sheets::style_sheet::popup_toggle_button ( ) const -> xtd::forms::style_sheets::toggle_button
nodiscardnoexcept

Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ popup_toggle_button() [2/2]

auto xtd::forms::style_sheets::style_sheet::popup_toggle_button ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::toggle_button
nodiscardnoexcept

Gets the style sheet toggle_button for specified pseudo state.

Returns
A style_sheet button.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ popup_toggle_buttons()

auto xtd::forms::style_sheets::style_sheet::popup_toggle_buttons ( ) const -> const toggle_buttons_t &
nodiscardnoexcept

Gets the style sheet toggle_buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ status_bar() [1/2]

auto xtd::forms::style_sheets::style_sheet::status_bar ( ) const -> xtd::forms::style_sheets::status_bar
nodiscardnoexcept

◆ status_bar() [2/2]

auto xtd::forms::style_sheets::style_sheet::status_bar ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::status_bar
nodiscardnoexcept

Gets the style sheet status_bar for specified pseudo state.

Returns
A style_sheet status_bar.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ status_bars()

auto xtd::forms::style_sheets::style_sheet::status_bars ( ) const -> const status_bars_t &
nodiscardnoexcept

Gets the style sheet status_bar collection of this instance.

Returns
The style sheet status_bar collection.

◆ status_bar_panel() [1/2]

auto xtd::forms::style_sheets::style_sheet::status_bar_panel ( ) const -> xtd::forms::style_sheets::status_bar_panel
nodiscardnoexcept

Gets the style sheet status bar panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet status bar panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ status_bar_panel() [2/2]

auto xtd::forms::style_sheets::style_sheet::status_bar_panel ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::status_bar_panel
nodiscardnoexcept

Gets the style sheet status bar panel for specified pseudo state.

Returns
A style_sheet status bar panel.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ status_bar_panels()

auto xtd::forms::style_sheets::style_sheet::status_bar_panels ( ) const -> const status_bar_panels_t &
nodiscardnoexcept

Gets the style sheet status bar panels collection of this instance.

Returns
The style sheet status bar panels collection.

◆ system_colors()

auto xtd::forms::style_sheets::style_sheet::system_colors ( ) const -> const xtd::forms::style_sheets::system_colors &
nodiscardnoexcept

Gets The style sheet system colors of this instance.

Returns
The style sheet systel colors collection.

◆ theme()

auto xtd::forms::style_sheets::style_sheet::theme ( ) const -> const xtd::forms::style_sheets::theme &
nodiscardnoexcept

Gets The style sheet theme of this instance.

Returns
The style sheet theme collection.

◆ toggle_button() [1/2]

auto xtd::forms::style_sheets::style_sheet::toggle_button ( ) const -> xtd::forms::style_sheets::toggle_button
nodiscardnoexcept

Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ toggle_button() [2/2]

auto xtd::forms::style_sheets::style_sheet::toggle_button ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::toggle_button
nodiscardnoexcept

Gets the style sheet button for specified pseudo state.

Returns
A style_sheet button.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ toggle_buttons()

auto xtd::forms::style_sheets::style_sheet::toggle_buttons ( ) const -> const toggle_buttons_t &
nodiscardnoexcept

Gets the style sheet buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ tool_bar() [1/2]

auto xtd::forms::style_sheets::style_sheet::tool_bar ( ) const -> xtd::forms::style_sheets::tool_bar
nodiscardnoexcept

◆ tool_bar() [2/2]

auto xtd::forms::style_sheets::style_sheet::tool_bar ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::tool_bar
nodiscardnoexcept

Gets the style sheet tool_bar for specified pseudo state.

Returns
A style_sheet tool_bar.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ tool_bars()

auto xtd::forms::style_sheets::style_sheet::tool_bars ( ) const -> const tool_bars_t &
nodiscardnoexcept

Gets the style sheet tool_bars collection of this instance.

Returns
The style sheet tool_bars collection.

◆ tool_bar_button() [1/2]

auto xtd::forms::style_sheets::style_sheet::tool_bar_button ( ) const -> xtd::forms::style_sheets::tool_bar_button
nodiscardnoexcept

Gets the style sheet tool bar button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet tool bar button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ tool_bar_button() [2/2]

auto xtd::forms::style_sheets::style_sheet::tool_bar_button ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::tool_bar_button
nodiscardnoexcept

Gets the style sheet tool bar button for specified pseudo state.

Returns
A style_sheet tool bar button.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ tool_bar_buttons()

auto xtd::forms::style_sheets::style_sheet::tool_bar_buttons ( ) const -> const tool_bar_buttons_t &
nodiscardnoexcept

Gets the style sheet tool bar buttons collection of this instance.

Returns
The style sheet tool bar buttons collection.

◆ user_control() [1/2]

auto xtd::forms::style_sheets::style_sheet::user_control ( ) const -> xtd::forms::style_sheets::user_control
nodiscardnoexcept

Gets the style sheet user_control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

Returns
A style_sheet control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.

◆ user_control() [2/2]

auto xtd::forms::style_sheets::style_sheet::user_control ( xtd::forms::style_sheets::pseudo_state state) const -> xtd::forms::style_sheets::user_control
nodiscardnoexcept

Gets the style sheet user_control for specified pseudo state.

Returns
A style_sheet user_control.
Remarks
if the pseudo state does not exists, the value for xtd::forms::style_sheets::pseudo_state::standard pseudo state is getted.

◆ user_controls()

auto xtd::forms::style_sheets::style_sheet::user_controls ( ) const -> const user_controls_t &
nodiscardnoexcept

Gets the style sheet user_control collection of this instance.

Returns
The style sheet controls collection.

◆ current_style_sheet() [1/2]

auto xtd::forms::style_sheets::style_sheet::current_style_sheet ( ) -> const style_sheet &
staticnodiscardnoexcept

Gets current xtd::forms::style_sheets::style_sheet style sheet.

Returns
The current xtd::forms::style_sheets::style_sheet style sheet.
Remarks
For more information, see Style sheets overview.

◆ current_style_sheet() [2/2]

auto xtd::forms::style_sheets::style_sheet::current_style_sheet ( const style_sheet & value) -> void
static

Sets current xtd::forms::style_sheets::style_sheet style sheet.

Parameters
valueThe current xtd::forms::style_sheets::style_sheet style sheet.
Remarks
For more information, see Style sheets overview.

◆ style_sheets()

auto xtd::forms::style_sheets::style_sheet::style_sheets ( ) -> const style_sheets_t &
staticnodiscardnoexcept

Gets the installed xtd::forms::style_sheets::style_sheet style sheets.

Returns
The installed xtd::forms::style_sheets::style_sheet style sheets.
Remarks
For more information, see Style sheets overview.

◆ style_sheet_names()

auto xtd::forms::style_sheets::style_sheet::style_sheet_names ( ) -> const style_sheet_names_t &
staticnodiscardnoexcept

Gets the installed xtd::forms::style_sheets::style_sheet style sheet names.

Returns
The installed xtd::forms::style_sheets::style_sheet names.
Remarks
For more information, see Style sheets overview.

◆ system_style_sheet()

auto xtd::forms::style_sheets::style_sheet::system_style_sheet ( ) -> const style_sheet &
staticnodiscardnoexcept

Gets system xtd::forms::style_sheets::style_sheet style sheet.

Returns
The system xtd::forms::style_sheets::style_sheet style sheet.
Remarks
The system style sheet is the style sheet corresponding to the current Operating System and the current Desktop Environment.
For more information, see Style sheets overview.

◆ equals() [1/2]

auto xtd::forms::style_sheets::style_sheet::equals ( const xtd::object & obj) const -> bool
nodiscardoverridevirtualnoexcept

Determines whether the specified object is equal to the current object.

Parameters
objThe object to compare with the current object.
Returns
true if the specified object is equal to the current object. otherwise, false.

Reimplemented from xtd::object.

◆ equals() [2/2]

auto xtd::forms::style_sheets::style_sheet::equals ( const style_sheet & other) const -> bool
nodiscardoverridenoexcept

Determines whether the specified object is equal to the current object.

Parameters
otherThe object to compare with the current object.
Returns
true if the specified object is equal to the current object. otherwise, false.

◆ get_hash_code()

auto xtd::forms::style_sheets::style_sheet::get_hash_code ( ) const -> xtd::usize
nodiscardoverridevirtualnoexcept

Serves as a hash function for a particular type.

Returns
A hash code for the current object.

Reimplemented from xtd::object.

◆ button_from_css()

auto xtd::forms::style_sheets::style_sheet::button_from_css ( const xtd::string & css_text) -> buttons_t
staticnodiscard

Gets the style sheet buttons collection from specified css string.

Parameters
css_textThe css string that contains button definition.
Returns
The style sheet buttons collection.
Remarks
For more information, see Style sheets overview.

◆ control_from_css()

auto xtd::forms::style_sheets::style_sheet::control_from_css ( const xtd::string & css_text) -> controls_t
staticnodiscard

Gets the style sheet controls collection from specified css string.

Parameters
css_textThe css string that contains control definition.
Returns
The style sheet controls collection.
Remarks
For more information, see Style sheets overview.

◆ get_style_sheet_from_name()

auto xtd::forms::style_sheets::style_sheet::get_style_sheet_from_name ( const xtd::string & name) -> style_sheet
staticnodiscard

Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.

Returns
The xtd::forms::style_sheets::style_sheet style sheet from name.
Exceptions
xtd::argument_exceptionThe style sheet name not tvalid.
Remarks
Use xtd::forms::style_sheets::style_sheet::style_sheet_names to retreive valid style sheet names.
For more information, see Style sheets overview.

◆ get_style_sheet_from_file()

auto xtd::forms::style_sheets::style_sheet::get_style_sheet_from_file ( const xtd::string & file_name) -> style_sheet
staticnodiscard

Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.

Returns
The xtd::forms::style_sheets::style_sheet style sheet from name.
Exceptions
xtd::argument_exceptionThe style sheet name not tvalid.
Remarks
Use xtd::forms::style_sheets::style_sheet::style_sheet_names to retreive valid style sheet names.
For more information, see Style sheets overview.

◆ get_style_sheet_from_path()

auto xtd::forms::style_sheets::style_sheet::get_style_sheet_from_path ( const xtd::string & path_name) -> style_sheet
staticnodiscard

Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.

Returns
The xtd::forms::style_sheets::style_sheet style sheet from name.
Exceptions
xtd::argument_exceptionThe style sheet name not tvalid.
Remarks
Use xtd::forms::style_sheets::style_sheet::style_sheet_names to retreive valid style sheet names.
For more information, see Style sheets overview.

◆ form_from_css()

auto xtd::forms::style_sheets::style_sheet::form_from_css ( const xtd::string & css_text) -> forms_t
staticnodiscard

Gets the style sheet forms collection from specified css string.

Parameters
css_textThe css string that contains forms definition.
Returns
The style sheet forms collection.
Remarks
For more information, see Style sheets overview.

◆ system_colors_from_css()

auto xtd::forms::style_sheets::style_sheet::system_colors_from_css ( const xtd::string & css_text) -> xtd::forms::style_sheets::system_colors
staticnodiscard

Gets the style sheet system colors from specified css string.

Parameters
css_textThe css string that contains system colors definition.
Returns
The style sheet system colors.
Remarks
For more information, see Style sheets overview.

◆ theme_from_css()

auto xtd::forms::style_sheets::style_sheet::theme_from_css ( const xtd::string & css_text) -> xtd::forms::style_sheets::theme
staticnodiscard

Gets the style sheet theme from specified css string.

Parameters
css_textThe css string that contains theme definition.
Returns
The style sheet theme.
Remarks
For more information, see Style sheets overview.

◆ to_border_type()

auto xtd::forms::style_sheets::style_sheet::to_border_type ( xtd::forms::border_style border) -> std::tuple< xtd::forms::style_sheets::border_type, int32, int32 >
staticnodiscard

Converts xtd::forms::border_style in std::tuple<xtd::forms::style_sheets::border_type, int32, int32>.

Parameters
borderThe ::forms::border_style to convert.
Returns
A std::tuple<xtd::forms::style_sheets::border_type, int32, int32> class that containe, border type, border width and border radius.

Member Data Documentation

◆ empty

const style_sheet xtd::forms::style_sheets::style_sheet::empty
static

Provides an empty xtd::forms::style_sheets::style_sheet object.

◆ style_sheet_changed

event<style_sheet, event_handler> xtd::forms::style_sheets::style_sheet::style_sheet_changed
static

Occurs when the value of the xtd::forms::style_sheets::style_sheet::current_style_sheet property changes.

Remarks
This event is raised if the xtd::forms::style_sheets::style_sheet::current_style_sheet property is changed by either a programmatic modification or user interaction.
For more information about handling events, see Handling and Raising Events.

The documentation for this class was generated from the following file: