xtd 0.2.0
Loading...
Searching...
No Matches
selector.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "../../object.hpp"
7
9namespace 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_;
42 };
43 }
44 }
45}
object()=default
Create a new instance of the ultimate base class object.
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
Contains classes and interfaces that enable browser-server communication. This namespace includes the...
Definition css_reader.hpp:14
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd::web::css::property_dictionary alias.
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