Nui
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
Nui::WebApi::ResizeObserverEntry Class Reference

A ResizeObserverEntry interface represents the size of an observed element after a resize. More...

#include <resize_observer_entry.hpp>

Inheritance diagram for Nui::WebApi::ResizeObserverEntry:
Inheritance graph
[legend]
Collaboration diagram for Nui::WebApi::ResizeObserverEntry:
Collaboration graph
[legend]

Classes

struct  BoxSize
 

Public Member Functions

 ResizeObserverEntry (Nui::val event)
 
std::vector< BoxSizeborderBoxSize () 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< BoxSizecontentBoxSize () 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< BoxSizedevicePixelContentBoxSize () 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
 
ValWrapperoperator= (ValWrapper const &)=default
 
ValWrapperoperator= (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_
 

Detailed Description

A ResizeObserverEntry interface represents the size of an observed element after a resize.

See also
https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry

Constructor & Destructor Documentation

◆ ResizeObserverEntry()

Nui::WebApi::ResizeObserverEntry::ResizeObserverEntry ( Nui::val  event)
explicit

Member Function Documentation

◆ borderBoxSize()

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.

◆ contentBoxSize()

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.

◆ contentRect()

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.

◆ devicePixelContentBoxSize()

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.

◆ target()

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.


The documentation for this class was generated from the following files: