[Previous] [Contents] [Index] [Next]

PtSetValue()

Set the value of a resource using mod_f

Synopsis:

int PtSetValue( PtWidget_t *widget, 
                PtResourceRec_t const *mod, 
                PtArg_t const *args );

Description:

This function sets the value of a particular resource using the information provided in mod including the mod_f member.

Consider calling PtSuperClassSetResources() for a cleaner solution. To set structure members without any further action, use PtSetStruct().

Returns:

0
Nothing has changed.
1
Value has changed.
2
Value and length have changed.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtSetStruct(), PtSuperClassSetResources()


[Previous] [Contents] [Index] [Next]