Nui
Loading...
Searching...
No Matches
dom_rect.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <chrono>
6#include <string>
7
8namespace Nui::WebApi
9{
13 class DomRect : public DomRectReadOnly
14 {
15 public:
16 explicit DomRect(Nui::val rect);
17
18 void x(double newX);
19 void y(double newY);
20 void width(double newWidth);
21 void height(double newHeight);
22
23 double x() const
24 {
25 return DomRectReadOnly::x();
26 }
27 double y() const
28 {
29 return DomRectReadOnly::y();
30 }
31 double width() const
32 {
34 }
35 double height() const
36 {
38 }
39 double top() const
40 {
41 return DomRectReadOnly::top();
42 }
43 double right() const
44 {
46 }
47 double bottom() const
48 {
50 }
51 double left() const
52 {
53 return DomRectReadOnly::left();
54 }
55
56 static DomRect fromRect();
57 static DomRect fromRect(RectObject);
58 };
59}
Definition dom_rect_readonly.hpp:8
double y() const
Definition dom_rect_readonly.cpp:13
double top() const
Definition dom_rect_readonly.cpp:25
double x() const
Definition dom_rect_readonly.cpp:9
double left() const
Definition dom_rect_readonly.cpp:37
double bottom() const
Definition dom_rect_readonly.cpp:33
double right() const
Definition dom_rect_readonly.cpp:29
double width() const
Definition dom_rect_readonly.cpp:17
double height() const
Definition dom_rect_readonly.cpp:21
Definition dom_rect.hpp:14
double left() const
Definition dom_rect.hpp:51
double bottom() const
Definition dom_rect.hpp:47
double right() const
Definition dom_rect.hpp:43
double width() const
Definition dom_rect.hpp:31
double y() const
Definition dom_rect.hpp:27
double height() const
Definition dom_rect.hpp:35
static DomRect fromRect()
Definition dom_rect.cpp:25
double x() const
Definition dom_rect.hpp:23
double top() const
Definition dom_rect.hpp:39
Definition abort_controller.hpp:8
emscripten::val val
Definition val.hpp:5