morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::SlotBinding< F > Struct Template Reference

A slot's read together with its id, as ui::slot makes it; a Prop made from it is a slot with that id. More...

#include <view.hpp>

Public Attributes

SlotId id = 0
 The slot's id.
F read
 Reads the slot's value; every signal it reads is a dependency.

Detailed Description

template<typename F>
struct morph::ui::SlotBinding< F >

A slot's read together with its id, as ui::slot makes it; a Prop made from it is a slot with that id.

Template Parameters
FA callable taking no arguments.

Definition at line 50 of file view.hpp.

Member Data Documentation

◆ id

template<typename F>
SlotId morph::ui::SlotBinding< F >::id = 0

The slot's id.

Definition at line 52 of file view.hpp.

◆ read

template<typename F>
F morph::ui::SlotBinding< F >::read

Reads the slot's value; every signal it reads is a dependency.

Definition at line 54 of file view.hpp.


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