|
Nui
|
A resize observer class, used for observing resize events on elements. More...
#include <resize_observer.hpp>


Classes | |
| struct | ObserveOptions |
Public Member Functions | |
| ResizeObserver (std::function< void(std::vector< ResizeObserverEntry > const &, ResizeObserver const &)> callback) | |
| ResizeObserver (Nui::val event) | |
| void | disconnect () const |
| The disconnect() method of the ResizeObserver interface unobserves all observed Element or SVGElement targets. | |
| void | observe (Nui::val target) const |
| The observe() method of the ResizeObserver interface starts observing the specified Element or SVGElement. | |
| void | observe (Nui::val target, ObserveOptions const &options) const |
| The observe() method of the ResizeObserver interface starts observing the specified Element or SVGElement. | |
| void | unobserve (Nui::val target) const |
| The unobserve() method of the ResizeObserver interface ends the observing of a specified Element or SVGElement. | |
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 resize observer class, used for observing resize events on elements.
|
explicit |
|
explicit |
| void Nui::WebApi::ResizeObserver::disconnect | ( | ) | const |
The disconnect() method of the ResizeObserver interface unobserves all observed Element or SVGElement targets.
| void Nui::WebApi::ResizeObserver::observe | ( | Nui::val | target | ) | const |
The observe() method of the ResizeObserver interface starts observing the specified Element or SVGElement.
| void Nui::WebApi::ResizeObserver::observe | ( | Nui::val | target, |
| ObserveOptions const & | options | ||
| ) | const |
The observe() method of the ResizeObserver interface starts observing the specified Element or SVGElement.
| options | An options object allowing you to set options for the observation. Currently this only has one possible option that can be set: box Sets which box model the observer will observe changes to. Possible values are: content-box (the default) Size of the content area as defined in CSS. border-box Size of the box border area as defined in CSS. device-pixel-content-box The size of the content area as defined in CSS, in device pixels, before applying any CSS transforms on the element or its ancestors. |
| void Nui::WebApi::ResizeObserver::unobserve | ( | Nui::val | target | ) | const |
The unobserve() method of the ResizeObserver interface ends the observing of a specified Element or SVGElement.
| target |