xtd 0.2.0
Loading...
Searching...
No Matches
selector.h
Go to the documentation of this file.
1
4#pragma once
5#include "property_map.h"
6#include "../../object.h"
7
9namespace xtd {
10 namespace web {
11 namespace css {
12 class selector : public object {
13 public:
15
17 explicit selector(const xtd::ustring& name) : name_(name) {}
19
21 selector() = default;
22 selector(const selector&) = default;
23 selector& operator =(const selector&) = default;
25
27
29 const xtd::ustring& name() const noexcept {return name_;}
30 void name(const xtd::ustring& name) noexcept {name_ = name;}
31
32 const xtd::web::css::property_map& properties() const noexcept {return properties_;}
33 void properties(const xtd::web::css::property_map& properties) noexcept {properties_ = properties;}
34 xtd::web::css::property_map& properties() noexcept {return properties_;}
36
37 private:
38 xtd::ustring name_;
40 };
41 }
42 }
43}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Definition selector.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::web::css::property_map typedef.
std::map< xtd::ustring, xtd::web::css::property > property_map
Represents the map of a property name - property pair.
Definition property_map.h:13