|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Ordinary one-focus-stop, model-owned resident radio group with clipped row painting. More...
#include <radio_group.hpp>
Public Member Functions | |
| RadioGroup (ControlStyle style={}, SizePolicy policy=DEFAULT_CONTENT_POLICY, bool readOnly=false, WidthPolicy widthPolicy={}, RadioSelectionMode selectionMode=RadioSelectionMode::ON_ACTIVATION) | |
| RadioGroup (const RadioGroup &)=delete | |
| Tree-owned widgets cannot copy their live geometry context. | |
| RadioGroup & | operator= (const RadioGroup &)=delete |
| Tree-owned widgets cannot be assigned. | |
| RadioGroup (RadioGroup &&)=delete | |
| A bound widget's address and tree identity remain fixed. | |
| RadioGroup & | operator= (RadioGroup &&)=delete |
| A bound widget cannot transfer its tree context. | |
| std::expected< CellSize, TreeError > | measure (CellSize available) override |
| std::expected< void, TreeError > | arrange (CellRect local) override |
| std::expected< void, TreeError > | paint (PaintContext &context) override |
| ComputedStyle | styleDefaults () const override |
| bool | styleReadOnly () const noexcept override |
| RadioGroupValue | value () const |
| Public Member Functions inherited from portals::SizedWidget | |
| SizedWidget (SizePolicy policy={}) | |
| Own the supplied policies; checked by layout. | |
| SizePolicy | sizePolicy () const override |
| Copy current policy without borrowing storage. | |
| Public Member Functions inherited from portals::Widget | |
| virtual | ~Widget ()=default |
| Destroy on UI after the last active tree borrow. | |
| virtual void | mount () |
| Called exactly once after attachment; exceptions are reported. | |
| virtual void | unmount () |
| Called once before destruction, children first; cleanup continues on exceptions. | |
| const std::shared_ptr< const StyleSnapshot > & | computedStyle () const noexcept |
| Inspect the last atomically installed theme inside tree.read/frame. | |
| std::uint64_t | styleRevision () const noexcept |
| Public Member Functions inherited from portals::LayoutItem | |
| virtual | ~LayoutItem ()=default |
| Destroy with the implementing widget. | |
Friends | |
| class | RadioGroupBinding |
| std::expected< void, TreeError > | syncRadioGroup (WidgetTree &tree, Node< RadioGroup > node, Node< Widget > focused) |
Ordinary one-focus-stop, model-owned resident radio group with clipped row painting.
|
explicit |
| style | Manual normal/focused/disabled defaults. |
| policy | Ordinary cell sizing constraints. |
| readOnly | Prohibit user writes while retaining focus, navigation and programmatic changes. |
| selectionMode | Keyboard navigation publication policy. |
| widthPolicy | Receiving scene's complete width policy; mismatched model text is rejected at sync. |
| local | Parent-relative allocation. |
Reimplemented from portals::Widget.
|
overridevirtual |
| available | Offered extent; intrinsic size uses prepared visible rows. |
Reimplemented from portals::Widget.
|
overridevirtual |
| context | Synchronous sink borrowing commands through the enclosing tree frame. |
Reimplemented from portals::Widget.
|
overridevirtual |
Reimplemented from portals::Widget.
|
overridevirtualnoexcept |
Reimplemented from portals::Widget.
| RadioGroupValue portals::RadioGroup::value | ( | ) | const |
|
friend |
| tree | Borrowed UI owner. |
| node | Live group. |
| focused | Current router focus. |