#include <Attribute.hpp>
Definition at line 57 of file Attribute.hpp.
◆ ValueMode
Enumerator |
---|
Disabled | No value is present. Connected fields are disabled, input fields are greyed out.
|
Value | Has a read only value assigned.
|
ValueModify | Has a readable and modifiable value.
|
Definition at line 60 of file Attribute.hpp.
◆ Attribute()
event_processor
This needs to be valid and preferably persistent across the whole life-cycle of the Attribute. allow_ModifyMode
Set this to false when mode should be modifiable only through protected interface, set this to true and it can also be modified through public interface using Attribute::ModifyMode method. When set to true, Attribute::Modify will also change mode to ValueModify automatically.
Definition at line 22 of file Attribute.cpp.
◆ owner()
◆ Type()
std::type_index iv::Attribute::Type |
( |
| ) |
|
◆ Mode()
◆ GetAny()
std::any iv::Attribute::GetAny |
( |
| ) |
|
◆ ModifyMode()
When Attribute acts as interface between Behavior and View, then it is considered best practice to set mode from Behavior, rather than View.
Definition at line 55 of file Attribute.cpp.
◆ ModifyAny()
void iv::Attribute::ModifyAny |
( |
ClientMarker * |
modifier, |
|
|
std::any |
val |
|
) |
| |
If the attribute is not writable, this will have no effect (without warning). It is good practise to not call this when not knowing the type and modifiability of the field.
Definition at line 67 of file Attribute.cpp.
◆ Insert_Listener()
◆ Remove_Listener()
◆ SetAttributeMode()
void iv::Attribute::SetAttributeMode |
( |
ValueMode |
val | ) |
|
|
protected |
◆ SourceValueChanged()
void iv::Attribute::SourceValueChanged |
( |
| ) |
|
|
protected |
◆ event_processor() [1/2]
◆ event_processor() [2/2]
◆ Notify_Activated()
void iv::Attribute::Notify_Activated |
( |
| ) |
|
|
protected |
◆ Notify_Deactivated()
void iv::Attribute::Notify_Deactivated |
( |
| ) |
|
|
protected |
◆ Type_Impl()
virtual std::type_index iv::Attribute::Type_Impl |
( |
| ) |
|
|
protectedpure virtual |
◆ GetAny_Impl()
virtual std::any iv::Attribute::GetAny_Impl |
( |
| ) |
|
|
protectedpure virtual |
◆ ModifyAny_Impl()
virtual void iv::Attribute::ModifyAny_Impl |
( |
ClientMarker * |
modifier, |
|
|
std::any |
|
|
) |
| |
|
protectedpure virtual |
◆ allow_ModifyMode()
bool iv::Attribute::allow_ModifyMode |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following files: