xtd 0.2.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::equality_operators< type_t, equatable_t >

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
The xtd::forms::style_sheets::style_sheet allows you to specify an xtd style sheet.
Definition style_sheet.hpp:64
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
#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 = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::button >
 Represents a style sheet buttons collection.
 
using controls_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::control >
 Represents a style sheet controls collection.
 
using forms_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::form >
 Represents a style sheet forms collection.
 
using labels_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::label >
 Represents a style sheet labels collection.
 
using 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 panels_t = std::map< xtd::forms::style_sheets::pseudo_state, xtd::forms::style_sheets::panel >
 Represents a style sheet panels collection.
 
using style_sheets_t = std::map< xtd::string, style_sheet >
 Represents a style_sheets collection.
 
using style_sheet_names_t = std::vector< xtd::string >
 Represents a style_sheet names collection.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 

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

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_tbuttons () 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_tcontrols () 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_tflat_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_tflat_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_tforms () 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_tlabels () 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_tlink_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_tpanels () 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_tpopup_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_tpopup_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_tstatus_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_tstatus_bar_panels () const noexcept
 Gets the style sheet status bar panels collection of this instance.
 
const xtd::forms::style_sheets::system_colorssystem_colors () const noexcept
 Gets The style sheet system colors of this instance.
 
const xtd::forms::style_sheets::themetheme () 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_ttoggle_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_ttool_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_ttool_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_tuser_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_sheetcurrent_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_tstyle_sheets () noexcept
 Gets the installed xtd::forms::style_sheets::style_sheet style sheets.
 
static const style_sheet_names_tstyle_sheet_names () noexcept
 Gets the installed xtd::forms::style_sheets::style_sheet style sheet names.
 
static const style_sheetsystem_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, int32to_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.
 

Member Typedef Documentation

◆ buttons_t

◆ controls_t

◆ forms_t

◆ labels_t

◆ link_labels_t

◆ panels_t

◆ style_sheets_t

◆ style_sheet_names_t

Represents a style_sheet names collection.

◆ status_bars_t

◆ status_bar_panels_t

◆ toggle_buttons_t

◆ tool_bars_t

◆ tool_bar_buttons_t

◆ user_controls_t

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]

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.

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

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

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

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

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

◆ link_label() [1/2]

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

◆ link_label() [2/2]

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

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

const link_labels_t & xtd::forms::style_sheets::style_sheet::link_labels ( ) const
noexcept

Gets the style sheet link_label collection of this instance.

Returns
The style sheet link_label 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_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.

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

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

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

◆ 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_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.

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

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

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

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

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

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

◆ button_from_css()

static buttons_t xtd::forms::style_sheets::style_sheet::button_from_css ( const xtd::string 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.

◆ control_from_css()

static controls_t xtd::forms::style_sheets::style_sheet::control_from_css ( const xtd::string 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.

◆ get_style_sheet_from_name()

static style_sheet xtd::forms::style_sheets::style_sheet::get_style_sheet_from_name ( const xtd::string 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_file()

static style_sheet xtd::forms::style_sheets::style_sheet::get_style_sheet_from_file ( const xtd::string 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_path()

static style_sheet xtd::forms::style_sheets::style_sheet::get_style_sheet_from_path ( const xtd::string 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.

◆ form_from_css()

static forms_t xtd::forms::style_sheets::style_sheet::form_from_css ( const xtd::string 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.

◆ system_colors_from_css()

static xtd::forms::style_sheets::system_colors xtd::forms::style_sheets::style_sheet::system_colors_from_css ( const xtd::string 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.

◆ theme_from_css()

static xtd::forms::style_sheets::theme xtd::forms::style_sheets::style_sheet::theme_from_css ( const xtd::string 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, int32 > 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, 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.

◆ equals() [1/2]

virtual bool xtd::object::equals ( const object obj) const
virtualnoexcept

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.
#include <xtd/console>
using namespace xtd;
auto main() -> int {
auto object1 = new_ptr<object>();
auto object2 = new_ptr<object>();
auto object3 = object2;
console::write_line(object1->equals(*object3));
console::write_line(*object1 == *object3);
object3 = object1;
console::write_line(object1->equals(*object3));
console::write_line(*object1 == *object3);
}
// This code produces the following output :
//
// false
// false
// true
// true
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10

Reimplemented from xtd::object.

◆ equals() [2/2]

template<typename object_a_t , typename object_b_t >
static bool xtd::object::equals ( const object_a_t &  object_a,
const object_b_t &  object_b 
)
inlinestaticnoexcept

Determines whether the specified object instances are considered equal.

Parameters
object_aThe first object to compare.
object_bThe second object to compare.
Returns
true if object_a is the same instance as object_b or if both are null references or if object_a(object_b) returns true. otherwise, false.
Examples
The following code example compares different objects.
#include <xtd/console>
using namespace xtd;
auto main() -> int {
string s1 = "Tom";
string s2 = "Carol";
console::write_line("object::equals(\"{0}\", \"{1}\") => {2}", s1, s2, object::equals(s1, s2));
s1 = "Tom";
s2 = "Tom";
console::write_line("object::equals(\"{0}\", \"{1}\") => {2}", s1, s2, object::equals(s1, s2));
s1 = "";
s2 = "Tom";
console::write_line("object::equals(\"{0}\", \"{1}\") => {2}", s1, s2, object::equals(s1, s2));
s1 = "Carol";
s2 = "";
console::write_line("object::equals(\"{0}\", \"{1}\") => {2}", s1, s2, object::equals(s1, s2));
s1 = "";
s2 = "";
console::write_line("object::equals(\"{0}\", \"{1}\") => {2}", s1, s2, object::equals(s1, s2));
}
// This code produces the following output :
//
// object::equals("Tom", "Carol") => false
// object::equals("Tom", "Tom") => true
// object::equals("", "Tom") => false
// object::equals("Carol", "") => false
// object::equals("", "") => true
virtual bool equals(const object &obj) const noexcept
Determines whether the specified object is equal to the current object.

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: