|
Nui
|
A ResizeObserverEntry interface represents the size of an observed element after a resize. More...
#include <resize_observer_entry.hpp>


Classes | |
| struct | BoxSize |
Public Member Functions | |
| ResizeObserverEntry (Nui::val event) | |
| std::vector< BoxSize > | borderBoxSize () const |
| The borderBoxSize read-only property of the ResizeObserverEntry interface returns an array containing the new border box size of the observed element when the callback is run. | |
| std::vector< BoxSize > | contentBoxSize () const |
| The contentBoxSize read-only property of the ResizeObserverEntry interface returns an array containing the new content box size of the observed element when the callback is run. | |
| DomRectReadOnly | contentRect () const |
| The contentRect read-only property of the ResizeObserverEntry interface returns a DOMRectReadOnly object containing the new size of the observed element when the callback is run. | |
| std::vector< BoxSize > | devicePixelContentBoxSize () const |
| The devicePixelContentBoxSize read-only property of the ResizeObserverEntry interface returns an array containing the size in device pixels of the observed element when the callback is run. | |
| Nui::val | target () const |
| The target read-only property of the ResizeObserverEntry interface returns a reference to the Element or SVGElement that is being observed. | |
Public Member Functions inherited from Nui::ValWrapper | |
| ValWrapper (Nui::val valObject) | |
| virtual | ~ValWrapper ()=default |
| ValWrapper (ValWrapper const &)=default | |
| ValWrapper (ValWrapper &&) noexcept=default | |
| ValWrapper & | operator= (ValWrapper const &)=default |
| ValWrapper & | operator= (ValWrapper &&) noexcept=default |
| Nui::val const & | val () const &noexcept |
| Nui::val | val () &&noexcept |
| operator Nui::val const & () const &noexcept | |
| operator Nui::val () &&noexcept | |
Additional Inherited Members | |
Protected Attributes inherited from Nui::ValWrapper | |
| Nui::val | val_ |
A ResizeObserverEntry interface represents the size of an observed element after a resize.
|
explicit |
| std::vector< ResizeObserverEntry::BoxSize > Nui::WebApi::ResizeObserverEntry::borderBoxSize | ( | ) | const |
The borderBoxSize read-only property of the ResizeObserverEntry interface returns an array containing the new border box size of the observed element when the callback is run.
| std::vector< ResizeObserverEntry::BoxSize > Nui::WebApi::ResizeObserverEntry::contentBoxSize | ( | ) | const |
The contentBoxSize read-only property of the ResizeObserverEntry interface returns an array containing the new content box size of the observed element when the callback is run.
| DomRectReadOnly Nui::WebApi::ResizeObserverEntry::contentRect | ( | ) | const |
The contentRect read-only property of the ResizeObserverEntry interface returns a DOMRectReadOnly object containing the new size of the observed element when the callback is run.
Note that this is better supported than ResizeObserverEntry.borderBoxSize or ResizeObserverEntry.contentBoxSize, but it is left over from an earlier implementation of the Resize Observer API, is still included in the spec for web compat reasons, and may be deprecated in future versions.
| std::vector< ResizeObserverEntry::BoxSize > Nui::WebApi::ResizeObserverEntry::devicePixelContentBoxSize | ( | ) | const |
The devicePixelContentBoxSize read-only property of the ResizeObserverEntry interface returns an array containing the size in device pixels of the observed element when the callback is run.
| Nui::val Nui::WebApi::ResizeObserverEntry::target | ( | ) | const |
The target read-only property of the ResizeObserverEntry interface returns a reference to the Element or SVGElement that is being observed.