xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
selector.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../object.h"
6#include "property_map.h"
7
9namespace xtd {
10 namespace web {
11 namespace css {
12 class selector : public object {
13 public:
14 explicit selector(const xtd::ustring& name) : name_(name) {}
15
17 selector() = default;
18 selector(const selector&) = default;
19 selector& operator=(const selector&) = default;
21
22 const xtd::ustring& name() const {return name_;}
23 void name(const xtd::ustring& name) {name_ = name;}
24
25 const xtd::web::css::property_map& properties() const {return properties_;}
26 void properties(const xtd::web::css::property_map& properties) {properties_ = properties;}
27 xtd::web::css::property_map& properties() {return properties_;}
28
29 private:
30 xtd::ustring name_;
31 xtd::web::css::property_map properties_;
32 };
33 }
34 }
35}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition: object.h:26
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
Definition: selector.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::web::css::property_map typedef.