Set one resource for a widget
#define PtSetResource( widget, type, value, len ) …
ph
This function sets a resource for the specified widget. The type argument contains the resource manifest and value contains the value of the argument being passed. The way the len argument is used depends on the resource type.
For information on getting and setting resources, see the Manipulating Resources in Application Code chapter of the Photon Programmer's Guide.
If the widget has been realized, changing its resources may change how it appears on the screen.
Turn the widget blue:
PtWidget_t *widget; PtSetResource( widget, Pt_ARG_FILL_COLOR, Pg_BLUE, 0 );
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PtArg_t, Pt_ARG(), PtGetResource(), PtGetResources(), PtSetArg(), PtSetResources()
Manipulating Resources in Application Code chapter of the Photon Programmer's Guide.