xtd - Reference Guide 0.2.0
xtd::forms::style_sheets::style_sheet Class Referencefinal

#include <style_sheet.h>

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
Inheritance
xtd::objectxtd::forms::style_sheets::style_sheet
Implements
xtd::iequatable <>
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.

Alias

using buttons_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::button >
 Represents a style sheet buttons collection. More...
 
using controls_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::control >
 Represents a style sheet controls collection. More...
 
using forms_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::form >
 Represents a style sheet forms collection. More...
 
using labels_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::label >
 Represents a style sheet labels collection. More...
 
using panels_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::panel >
 Represents a style sheet panels collection. More...
 
using style_sheets_t = std::map< xtd::ustring, style_sheet >
 Represents a style_sheets collection. More...
 
using style_sheet_names_t = std::vector< xtd::ustring >
 Represents a style_sheet names collection. More...
 
using status_bars_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::status_bar >
 Represents a style sheet tool_bars collection. More...
 
using 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. More...
 
using toggle_buttons_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::toggle_button >
 Represents a style sheet toggle buttons collection. More...
 
using tool_bars_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::tool_bar >
 Represents a style sheet tool_bars collection. More...
 
using 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. More...
 
using user_controls_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::user_control >
 Represents a style sheet user_controls collection. More...
 

Fields

static const style_sheet empty
 Provides an empty xtd::forms::style_sheets::style_sheet object. More...
 

Constructors

 style_sheet ()=default
 Initialize a new xtd::forms::style_sheets::style_sheet instance. More...
 
 style_sheet (const xtd::ustring &css_text)
 Initialize a new xtd::forms::style_sheets::style_sheet instance from specified css forrmated text. More...
 

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. More...
 
xtd::forms::style_sheets::button button (xtd::forms::style_sheets::pseudo_state state) const noexcept
 Gets the style sheet button for specified pseudo state. More...
 
const buttons_tbuttons () const noexcept
 Gets the style sheet buttons collection of this instance. More...
 
xtd::forms::style_sheets::control control () const noexcept
 Gets the style sheet control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. More...
 
xtd::forms::style_sheets::control control (xtd::forms::style_sheets::pseudo_state state) const noexcept
 Gets the style sheet control for specified pseudo state. More...
 
const controls_tcontrols () const noexcept
 Gets the style sheet controls collection of this instance. More...
 
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. More...
 
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. More...
 
const buttons_tflat_buttons () const noexcept
 Gets the style sheet buttons collection of this instance. More...
 
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. More...
 
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. More...
 
const toggle_buttons_tflat_toggle_buttons () const noexcept
 Gets the style sheet toggle_buttons collection of this instance. More...
 
xtd::forms::style_sheets::form form () const noexcept
 Gets the style sheet form for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. More...
 
xtd::forms::style_sheets::form form (xtd::forms::style_sheets::pseudo_state state) const noexcept
 Gets the style sheet form for specified pseudo state. More...
 
const forms_tforms () const noexcept
 Gets the style sheet forms collection of this instance. More...
 
bool is_system_style_sheet () const noexcept
 Gets a value indicate if this instance is system style sheet. More...
 
xtd::forms::style_sheets::label label () const noexcept
 Gets the style sheet label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. More...
 
xtd::forms::style_sheets::label label (xtd::forms::style_sheets::pseudo_state state) const noexcept
 Gets the style sheet label for specified pseudo state. More...
 
const labels_tlabels () const noexcept
 Gets the style sheet labels collection of this instance. More...
 
xtd::forms::style_sheets::panel panel () const noexcept
 Gets the style sheet panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. More...
 
xtd::forms::style_sheets::panel panel (xtd::forms::style_sheets::pseudo_state state) const noexcept
 Gets the style sheet panel for specified pseudo state. More...
 
const panels_tpanels () const noexcept
 Gets the style sheet panels collection of this instance. More...
 
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. More...
 
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. More...
 
const buttons_tpopup_buttons () const noexcept
 Gets the style sheet buttons collection of this instance. More...
 
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. More...
 
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. More...
 
const toggle_buttons_tpopup_toggle_buttons () const noexcept
 Gets the style sheet toggle_buttons collection of this instance. More...
 
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. More...
 
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. More...
 
const status_bars_tstatus_bars () const noexcept
 Gets the style sheet status_bar collection of this instance. More...
 
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. More...
 
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. More...
 
const status_bar_panels_tstatus_bar_panels () const noexcept
 Gets the style sheet status bar panels collection of this instance. More...
 
const xtd::forms::style_sheets::system_colorssystem_colors () const noexcept
 Gets The style sheet system colors of this instance. More...
 
const xtd::forms::style_sheets::themetheme () const noexcept
 Gets The style sheet theme of this instance. More...
 
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. More...
 
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. More...
 
const toggle_buttons_ttoggle_buttons () const noexcept
 Gets the style sheet buttons collection of this instance. More...
 
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. More...
 
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. More...
 
const tool_bars_ttool_bars () const noexcept
 Gets the style sheet tool_bars collection of this instance. More...
 
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. More...
 
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. More...
 
const tool_bar_buttons_ttool_bar_buttons () const noexcept
 Gets the style sheet tool bar buttons collection of this instance. More...
 
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. More...
 
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. More...
 
const user_controls_tuser_controls () const noexcept
 Gets the style sheet user_control collection of this instance. More...
 
static const style_sheetcurrent_style_sheet () noexcept
 Gets current xtd::forms::style_sheets::style_sheet style sheet. More...
 
static void current_style_sheet (const style_sheet &value)
 Sets current xtd::forms::style_sheets::style_sheet style sheet. More...
 
static const style_sheets_tstyle_sheets () noexcept
 Gets the installed xtd::forms::style_sheets::style_sheet style sheets. More...
 
static const style_sheet_names_tstyle_sheet_names () noexcept
 Gets the installed xtd::forms::style_sheets::style_sheet style sheet names. More...
 
static const style_sheetsystem_style_sheet () noexcept
 Gets system xtd::forms::style_sheets::style_sheet style sheet. More...
 

Methods

bool equals (const object &other) const noexcept override
 Determines whether the specified object is equal to the current object. More...
 
bool equals (const style_sheet &other) const noexcept override
 
static buttons_t button_from_css (const xtd::ustring &css_text)
 Gets the style sheet buttons collection from specified css string. More...
 
static controls_t control_from_css (const xtd::ustring &css_text)
 Gets the style sheet controls collection from specified css string. More...
 
static style_sheet get_style_sheet_from_name (const xtd::ustring &name)
 Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name. More...
 
static style_sheet get_style_sheet_from_file (const xtd::ustring &file_name)
 Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name. More...
 
static style_sheet get_style_sheet_from_path (const xtd::ustring &path_name)
 Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name. More...
 
static forms_t form_from_css (const xtd::ustring &css_text)
 Gets the style sheet forms collection from specified css string. More...
 
static xtd::forms::style_sheets::system_colors system_colors_from_css (const xtd::ustring &css_text)
 Gets the style sheet system colors from specified css string. More...
 
static xtd::forms::style_sheets::theme theme_from_css (const xtd::ustring &css_text)
 Gets the style sheet theme from specified css string. More...
 
static std::tuple< xtd::forms::style_sheets::border_type, int32_t, int32_t > to_border_type (xtd::forms::border_style border)
 Converts xtd::forms::border_style in std::tuple<xtd::forms::style_sheets::border_type, int32_t, int32_t>. More...
 

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. More...
 

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. More...
 
- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object. More...
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type. More...
 
template<typename object_t >
std::unique_ptr< object_t > memberwise_clone () const
 Gets the type of the current instance. More...
 
virtual xtd::ustring to_string () const noexcept
 Returns a sxd::ustring that represents the current object. More...
 
- Static Public Member Functions inherited from xtd::object
static bool equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are considered equal. More...
 
static bool reference_equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are the same instance. More...
 

Member Typedef Documentation

◆ buttons_t

◆ controls_t

◆ forms_t

◆ labels_t

◆ panels_t

◆ status_bar_panels_t

◆ status_bars_t

◆ style_sheet_names_t

Represents a style_sheet names collection.

◆ style_sheets_t

◆ toggle_buttons_t

◆ tool_bar_buttons_t

◆ tool_bars_t

◆ user_controls_t

Constructor & Destructor Documentation

◆ style_sheet() [1/2]

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

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

◆ style_sheet() [2/2]

xtd::forms::style_sheets::style_sheet::style_sheet ( const xtd::ustring 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]

xtd::forms::style_sheets::button xtd::forms::style_sheets::style_sheet::button ( ) const
noexcept

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]

xtd::forms::style_sheets::button xtd::forms::style_sheets::style_sheet::button ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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.

◆ button_from_css()

static buttons_t xtd::forms::style_sheets::style_sheet::button_from_css ( const xtd::ustring css_text)
static

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.

◆ buttons()

const buttons_t& xtd::forms::style_sheets::style_sheet::buttons ( ) const
noexcept

Gets the style sheet buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ control() [1/2]

xtd::forms::style_sheets::control xtd::forms::style_sheets::style_sheet::control ( ) const
noexcept

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]

xtd::forms::style_sheets::control xtd::forms::style_sheets::style_sheet::control ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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.

◆ control_from_css()

static controls_t xtd::forms::style_sheets::style_sheet::control_from_css ( const xtd::ustring css_text)
static

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.

◆ controls()

const controls_t& xtd::forms::style_sheets::style_sheet::controls ( ) const
noexcept

Gets the style sheet controls collection of this instance.

Returns
The style sheet controls collection.

◆ current_style_sheet() [1/2]

static const style_sheet& xtd::forms::style_sheets::style_sheet::current_style_sheet ( )
staticnoexcept

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]

static void xtd::forms::style_sheets::style_sheet::current_style_sheet ( const style_sheet value)
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.

◆ equals()

bool xtd::forms::style_sheets::style_sheet::equals ( const object obj) const
overridevirtualnoexcept

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.
Examples
The following code example compares the current instance with another object.

Reimplemented from xtd::object.

◆ flat_button() [1/2]

xtd::forms::style_sheets::button xtd::forms::style_sheets::style_sheet::flat_button ( ) const
noexcept

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]

xtd::forms::style_sheets::button xtd::forms::style_sheets::style_sheet::flat_button ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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()

const buttons_t& xtd::forms::style_sheets::style_sheet::flat_buttons ( ) const
noexcept

Gets the style sheet buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ flat_toggle_button() [1/2]

xtd::forms::style_sheets::toggle_button xtd::forms::style_sheets::style_sheet::flat_toggle_button ( ) const
noexcept

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]

xtd::forms::style_sheets::toggle_button xtd::forms::style_sheets::style_sheet::flat_toggle_button ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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()

const toggle_buttons_t& xtd::forms::style_sheets::style_sheet::flat_toggle_buttons ( ) const
noexcept

Gets the style sheet toggle_buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ form() [1/2]

xtd::forms::style_sheets::form xtd::forms::style_sheets::style_sheet::form ( ) const
noexcept

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]

xtd::forms::style_sheets::form xtd::forms::style_sheets::style_sheet::form ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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.

◆ form_from_css()

static forms_t xtd::forms::style_sheets::style_sheet::form_from_css ( const xtd::ustring css_text)
static

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.

◆ forms()

const forms_t& xtd::forms::style_sheets::style_sheet::forms ( ) const
noexcept

Gets the style sheet forms collection of this instance.

Returns
The style sheet forms collection.

◆ get_style_sheet_from_file()

static style_sheet xtd::forms::style_sheets::style_sheet::get_style_sheet_from_file ( const xtd::ustring file_name)
static

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_name()

static style_sheet xtd::forms::style_sheets::style_sheet::get_style_sheet_from_name ( const xtd::ustring name)
static

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()

static style_sheet xtd::forms::style_sheets::style_sheet::get_style_sheet_from_path ( const xtd::ustring path_name)
static

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.

◆ is_system_style_sheet()

bool xtd::forms::style_sheets::style_sheet::is_system_style_sheet ( ) const
noexcept

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]

xtd::forms::style_sheets::label xtd::forms::style_sheets::style_sheet::label ( ) const
noexcept

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]

xtd::forms::style_sheets::label xtd::forms::style_sheets::style_sheet::label ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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()

const labels_t& xtd::forms::style_sheets::style_sheet::labels ( ) const
noexcept

Gets the style sheet labels collection of this instance.

Returns
The style sheet labels collection.

◆ panel() [1/2]

xtd::forms::style_sheets::panel xtd::forms::style_sheets::style_sheet::panel ( ) const
noexcept

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]

xtd::forms::style_sheets::panel xtd::forms::style_sheets::style_sheet::panel ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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()

const panels_t& xtd::forms::style_sheets::style_sheet::panels ( ) const
noexcept

Gets the style sheet panels collection of this instance.

Returns
The style sheet panels collection.

◆ popup_button() [1/2]

xtd::forms::style_sheets::button xtd::forms::style_sheets::style_sheet::popup_button ( ) const
noexcept

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]

xtd::forms::style_sheets::button xtd::forms::style_sheets::style_sheet::popup_button ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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()

const buttons_t& xtd::forms::style_sheets::style_sheet::popup_buttons ( ) const
noexcept

Gets the style sheet buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ popup_toggle_button() [1/2]

xtd::forms::style_sheets::toggle_button xtd::forms::style_sheets::style_sheet::popup_toggle_button ( ) const
noexcept

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]

xtd::forms::style_sheets::toggle_button xtd::forms::style_sheets::style_sheet::popup_toggle_button ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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()

const toggle_buttons_t& xtd::forms::style_sheets::style_sheet::popup_toggle_buttons ( ) const
noexcept

Gets the style sheet toggle_buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ status_bar() [1/2]

xtd::forms::style_sheets::status_bar xtd::forms::style_sheets::style_sheet::status_bar ( ) const
noexcept

◆ status_bar() [2/2]

xtd::forms::style_sheets::status_bar xtd::forms::style_sheets::style_sheet::status_bar ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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_bar_panel() [1/2]

xtd::forms::style_sheets::status_bar_panel xtd::forms::style_sheets::style_sheet::status_bar_panel ( ) const
noexcept

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]

xtd::forms::style_sheets::status_bar_panel xtd::forms::style_sheets::style_sheet::status_bar_panel ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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()

const status_bar_panels_t& xtd::forms::style_sheets::style_sheet::status_bar_panels ( ) const
noexcept

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

Returns
The style sheet status bar panels collection.

◆ status_bars()

const status_bars_t& xtd::forms::style_sheets::style_sheet::status_bars ( ) const
noexcept

Gets the style sheet status_bar collection of this instance.

Returns
The style sheet status_bar collection.

◆ style_sheet_names()

static const style_sheet_names_t& xtd::forms::style_sheets::style_sheet::style_sheet_names ( )
staticnoexcept

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.

◆ style_sheets()

static const style_sheets_t& xtd::forms::style_sheets::style_sheet::style_sheets ( )
staticnoexcept

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.

◆ system_colors()

const xtd::forms::style_sheets::system_colors& xtd::forms::style_sheets::style_sheet::system_colors ( ) const
noexcept

Gets The style sheet system colors of this instance.

Returns
The style sheet systel colors collection.

◆ system_colors_from_css()

static xtd::forms::style_sheets::system_colors xtd::forms::style_sheets::style_sheet::system_colors_from_css ( const xtd::ustring css_text)
static

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.

◆ system_style_sheet()

static const style_sheet& xtd::forms::style_sheets::style_sheet::system_style_sheet ( )
staticnoexcept

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.

◆ theme()

const xtd::forms::style_sheets::theme& xtd::forms::style_sheets::style_sheet::theme ( ) const
noexcept

Gets The style sheet theme of this instance.

Returns
The style sheet theme collection.

◆ theme_from_css()

static xtd::forms::style_sheets::theme xtd::forms::style_sheets::style_sheet::theme_from_css ( const xtd::ustring css_text)
static

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()

static std::tuple<xtd::forms::style_sheets::border_type, int32_t, int32_t> xtd::forms::style_sheets::style_sheet::to_border_type ( xtd::forms::border_style  border)
static

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

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

◆ toggle_button() [1/2]

xtd::forms::style_sheets::toggle_button xtd::forms::style_sheets::style_sheet::toggle_button ( ) const
noexcept

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]

xtd::forms::style_sheets::toggle_button xtd::forms::style_sheets::style_sheet::toggle_button ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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()

const toggle_buttons_t& xtd::forms::style_sheets::style_sheet::toggle_buttons ( ) const
noexcept

Gets the style sheet buttons collection of this instance.

Returns
The style sheet buttons collection.

◆ tool_bar() [1/2]

xtd::forms::style_sheets::tool_bar xtd::forms::style_sheets::style_sheet::tool_bar ( ) const
noexcept

◆ tool_bar() [2/2]

xtd::forms::style_sheets::tool_bar xtd::forms::style_sheets::style_sheet::tool_bar ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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_bar_button() [1/2]

xtd::forms::style_sheets::tool_bar_button xtd::forms::style_sheets::style_sheet::tool_bar_button ( ) const
noexcept

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]

xtd::forms::style_sheets::tool_bar_button xtd::forms::style_sheets::style_sheet::tool_bar_button ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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()

const tool_bar_buttons_t& xtd::forms::style_sheets::style_sheet::tool_bar_buttons ( ) const
noexcept

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

Returns
The style sheet tool bar buttons collection.

◆ tool_bars()

const tool_bars_t& xtd::forms::style_sheets::style_sheet::tool_bars ( ) const
noexcept

Gets the style sheet tool_bars collection of this instance.

Returns
The style sheet tool_bars collection.

◆ user_control() [1/2]

xtd::forms::style_sheets::user_control xtd::forms::style_sheets::style_sheet::user_control ( ) const
noexcept

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]

xtd::forms::style_sheets::user_control xtd::forms::style_sheets::style_sheet::user_control ( xtd::forms::style_sheets::pseudo_state  state) const
noexcept

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()

const user_controls_t& xtd::forms::style_sheets::style_sheet::user_controls ( ) const
noexcept

Gets the style sheet user_control collection of this instance.

Returns
The style sheet controls collection.

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.


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