The theme data allows you to specify the theme informations.
Public Constructors | |
| theme ()=default | |
| Initializes a new instance of the xtd::forms::style_sheets::theme class. | |
| theme (const xtd::string &name) | |
| Initializes a new instance of the xtd::forms::style_sheets::theme class with specified name. | |
| theme (const xtd::string &name, const xtd::string &description) | |
| Initializes a new instance of the xtd::forms::style_sheets::theme class with specified name and description. | |
| theme (const xtd::string &name, const xtd::string &description, const xtd::string &authors) | |
| Initializes a new instance of the xtd::forms::style_sheets::theme class with specified name, description and authors. | |
| theme (const xtd::string &name, const xtd::string &description, const xtd::string &authors, const xtd::uri &website) | |
| Initializes a new instance of the xtd::forms::style_sheets::theme class with specified name, description, authors and website. | |
Public Properties | |
| const xtd::string & | authors () const noexcept |
| Gets the theme authors. | |
| void | authors (const xtd::string &value) noexcept |
| Sets the theme authors. | |
| const xtd::string & | description () const noexcept |
| Gets the theme name. | |
| void | description (const xtd::string &value) noexcept |
| Sets the theme name. | |
| const xtd::string & | name () const noexcept |
| Gets the theme name. | |
| void | name (const xtd::string &value) noexcept |
| Sets the theme name. | |
| const xtd::uri & | website () const noexcept |
| Gets the theme website. | |
| void | website (const xtd::uri &value) noexcept |
| Sets the theme website. | |
Public Methods | |
| bool | equals (const xtd::object &obj) const noexcept override |
| Determines whether the specified object is equal to the current object. | |
| bool | equals (const theme &other) const noexcept override |
| Determines whether the specified object is equal to the current object. | |
| xtd::usize | get_hash_code () const noexcept override |
| Serves as a hash function for a particular type. | |
| xtd::string | to_string () const noexcept override |
| Returns a xtd::string that represents the current object. | |
| xtd::string | to_css () const noexcept |
| Return a xtd::string that represents the css format of the current xtd::forms::style_sheets::theme object. | |
Public Static Methods | |
| static bool | from_css (const xtd::string &css_text, theme &result) |
| Creates a xtd::forms::style_sheets::theme object from the specified css text. | |
| static theme | parse (const xtd::string &text) |
| Creates a xtd::forms::style_sheets::theme object from the specified text. | |
| static bool | try_parse (const xtd::string &text, theme &result) noexcept |
| Creates a xtd::forms::style_sheets::theme object from the specified text. | |
Additional Inherited Members | |
| virtual auto | equals (const theme &) 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. | |
| 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. | |
|
default |
Initializes a new instance of the xtd::forms::style_sheets::theme class.
|
explicit |
Initializes a new instance of the xtd::forms::style_sheets::theme class with specified name.
| name | The theme name. |
| name | The theme description. |
| name | The theme authors. |
| xtd::forms::style_sheets::theme::theme | ( | const xtd::string & | name, |
| const xtd::string & | description ) |
Initializes a new instance of the xtd::forms::style_sheets::theme class with specified name and description.
| name | The theme name. |
| name | The theme description. |
| name | The theme authors. |
| xtd::forms::style_sheets::theme::theme | ( | const xtd::string & | name, |
| const xtd::string & | description, | ||
| const xtd::string & | authors ) |
Initializes a new instance of the xtd::forms::style_sheets::theme class with specified name, description and authors.
| name | The theme name. |
| name | The theme description. |
| name | The theme authors. |
| xtd::forms::style_sheets::theme::theme | ( | const xtd::string & | name, |
| const xtd::string & | description, | ||
| const xtd::string & | authors, | ||
| const xtd::uri & | website ) |
Initializes a new instance of the xtd::forms::style_sheets::theme class with specified name, description, authors and website.
| name | The theme name. |
| name | The theme description. |
| name | The theme authors. |
| name | The theme website. |
|
noexcept |
Gets the theme authors.
|
noexcept |
Sets the theme authors.
| value | The theme authors. |
|
noexcept |
Gets the theme name.
|
noexcept |
Sets the theme name.
| value | The theme name. |
|
noexcept |
Gets the theme name.
|
noexcept |
Sets the theme name.
| value | The theme name. |
|
noexcept |
Gets the theme website.
|
noexcept |
Sets the theme website.
| value | The theme website. |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
overridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
overridevirtualnoexcept |
Returns a xtd::string that represents the current object.
Reimplemented from xtd::object.
|
noexcept |
Return a xtd::string that represents the css format of the current xtd::forms::style_sheets::theme object.
|
static |
Creates a xtd::forms::style_sheets::theme object from the specified css text.
| css_text | A css xtd::string that represents a xtd::forms::style_sheets::theme object. |
| result | The xtd::forms::style_sheets::theme class that this method creates. |
|
static |
Creates a xtd::forms::style_sheets::theme object from the specified text.
| text | A xtd::string that represents a xtd::forms::style_sheets::theme object. |
| xtd::argument_exception | The text is not a xtd::forms::style_sheets::theme object. |
|
staticnoexcept |
Creates a xtd::forms::style_sheets::theme object from the specified text.
| text | A xtd::string that represents a xtd::forms::style_sheets::theme object. |
| result | The xtd::forms::style_sheets::theme class that this method creates. |