Set resources
int PtSuperClassSetResources( PtWidgetClassRef_t *wc_ref, PtWidget_t *widget, int num_args, PtArg_t const *args )
This function sets the resources given by num_args and args in the manner defined by wc_ref. This is extremely helpful when overriding the query_f member of an overridden resource.
The number of resources set.
my_modify_area( PtWidget_t *widget, PtArg_t *argt ) { MyWidget_t *mw = (MyWidget_t *)widget; mw->area_changed = Pt_TRUE; // Apply the resource the same way a superclass does. PtSuperClassSetResources( widget->class_rec->superclass->cref, widget, 1, argt ); // Set the resource so that it's treated // like a PtBasic class widget. PtSuperClassSetResources( PtBasic, widget, 1, argt ); }
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |