Krita Source Code Documentation
Loading...
Searching...
No Matches
KisWidgetConnectionUtils::ToControlState Struct Reference

#include <KisWidgetConnectionUtils.h>

Public Member Functions

template<typename T >
ControlState< std::decay_t< T > > operator() (T &&value, bool enabled)
 

Detailed Description

ToControlState is a functor that automatically converts a pair of values into a ControlState<T>. Supposed to be used in lager::with(...).map(ToControlState{})

Definition at line 63 of file KisWidgetConnectionUtils.h.

Member Function Documentation

◆ operator()()

template<typename T >
ControlState< std::decay_t< T > > KisWidgetConnectionUtils::ToControlState::operator() ( T && value,
bool enabled )
inline

Definition at line 65 of file KisWidgetConnectionUtils.h.

65 {
66 return {std::forward<T>(value), enabled};
67 }
float value(const T *src, size_t ch)

References value().


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