morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::detail::RowSlot Class Referenceabstract

One mounted row of a ForEach or a Table: the row's signal, and the view built from it once. More...

#include <view.hpp>

Public Member Functions

 RowSlot (RowSlot const &)=delete
RowSlot & operator= (RowSlot const &)=delete
 RowSlot (RowSlot &&)=delete
RowSlot & operator= (RowSlot &&)=delete
virtual void assign (std::size_t index)=0
 Sets the row's signal to an entry of its session's latest snapshot; an equal row notifies nobody.
virtual Node view () const =0
 The view built for this row when the slot was made.

Detailed Description

One mounted row of a ForEach or a Table: the row's signal, and the view built from it once.

Definition at line 720 of file view.hpp.

Member Function Documentation

◆ assign()

virtual void morph::ui::detail::RowSlot::assign ( std::size_t index)
pure virtual

Sets the row's signal to an entry of its session's latest snapshot; an equal row notifies nobody.

Parameters
indexA position in that snapshot.

◆ view()

virtual Node morph::ui::detail::RowSlot::view ( ) const
nodiscardpure virtual

The view built for this row when the slot was made.

Returns
The row's node.

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