Krita Source Code Documentation
Loading...
Searching...
No Matches
KisWidgetConnectionUtils::ControlState< T > Struct Template Reference

#include <KisWidgetConnectionUtils.h>

Public Attributes

bool enabled = true
 
value = T{}
 

Detailed Description

template<typename T>
struct KisWidgetConnectionUtils::ControlState< T >

(*)State classes represent the entire "state" of the corresponding widget

E.g. CheckBoxState represents if the checkbox is enabled and checked at the same time. We need to provide these values as a single struct to avoid cyclic update, caused by partial updates of the widgets.

Cyclic updates may happen when the GUI-control's value should be reset into some predefined value, when the control gets disabled, but we don't want to write this "fallback value" back into the model (because it doesn't make sense with the control disabled).

Definition at line 53 of file KisWidgetConnectionUtils.h.

Member Data Documentation

◆ enabled

template<typename T >
bool KisWidgetConnectionUtils::ControlState< T >::enabled = true

Definition at line 55 of file KisWidgetConnectionUtils.h.

◆ value

template<typename T >
T KisWidgetConnectionUtils::ControlState< T >::value = T{}

Definition at line 54 of file KisWidgetConnectionUtils.h.

54{};

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