Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::LayoutItem Class Referenceabstract

Optional const sizing interface, read only within tree.read. More...

#include <layout.hpp>

Inheritance diagram for portals::LayoutItem:
portals::LayoutItemportals::LayoutItem portals::SizedWidget portals::Border portals::Chart< T > portals::Control portals::Gauge portals::Grid portals::LineEdit portals::LinearLayout portals::Overlay portals::Password portals::RadioGroup portals::ScrollArea portals::ScrollBar portals::Spinner portals::VirtualList< T > portals::VirtualRows< T > portals::VirtualTable< T >

Public Member Functions

virtual ~LayoutItem ()=default
 Destroy with the implementing widget.
virtual SizePolicy sizePolicy () const =0
 Return an owning policy; no tree/model mutation or I/O.

Detailed Description

Optional const sizing interface, read only within tree.read.

Member Function Documentation

◆ sizePolicy()

virtual SizePolicy portals::LayoutItem::sizePolicy ( ) const
pure virtual

Return an owning policy; no tree/model mutation or I/O.

Returns
Independent width/height policies to validate during layout; no widget reference escapes.

Implemented in portals::SizedWidget.


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