xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
web
css
selector.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
property_dictionary.hpp
"
6
#include "
../../object.hpp
"
7
9
namespace
xtd
{
10
namespace
web
{
11
namespace
css {
12
class
selector :
public
object
{
13
public
:
15
17
explicit
selector(
const
xtd::string
& name) : name_(name) {}
19
21
selector() =
default
;
22
selector(
const
selector&) =
default
;
23
selector& operator =(
const
selector&) =
default
;
24
selector(selector&&) =
default
;
25
selector& operator =(selector&&) =
default
;
27
29
31
[[nodiscard]]
auto
name()
const
noexcept
->
const
xtd::string
& {
return
name_;}
32
auto
name(
const
xtd::string
& name)
noexcept
->
void
{name_ = name;}
33
34
[[nodiscard]]
auto
properties()
const
noexcept
->
const
xtd::web::css::property_dictionary
& {
return
properties_;}
35
[[nodiscard]]
auto
properties()
noexcept
->
xtd::web::css::property_dictionary
& {
return
properties_;}
36
auto
properties(
const
xtd::web::css::property_dictionary
& properties)
noexcept
->
void
{properties_ = properties;}
38
39
private
:
40
xtd::string
name_;
41
xtd::web::css::property_dictionary
properties_;
42
};
43
}
44
}
45
}
xtd::object::object
object()=default
Create a new instance of the ultimate base class object.
xtd::string
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition
__string_definitions.hpp:43
xtd::web
Contains classes and interfaces that enable browser-server communication. This namespace includes the...
Definition
css_reader.hpp:12
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
object.hpp
Contains xtd::object class.
property_dictionary.hpp
Contains xtd::web::css::property_dictionary alias.
xtd::web::css::property_dictionary
xtd::collections::generic::sorted_dictionary< xtd::string, xtd::web::css::property > property_dictionary
Represents the dictionary of a property name - property pair.
Definition
property_dictionary.hpp:13
Generated on
for xtd by
Gammasoft
. All rights reserved.