Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/wid_build/libs/ptsuperclasssetresources.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/wid_build/libs/ptsuperclasssetresources.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/wid_build/libs/ptsuperclasssetresources.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/wid_build/libs/ptsuperclasssetresources.html on line 8

PtSuperClassSetResources()

Set resources

Synopsis:

int PtSuperClassSetResources( 
                     PtWidgetClassRef_t *wc_ref,
                     PtWidget_t *widget, 
                     int num_args, 
                     PtArg_t const *args )

Arguments:

wc_ref
The superclass whose method you want to call.
widget
A pointer to the widget for which to call the superclass's method.
num_args
The number of entries in the args array.
args
An array of PtArg_t structures (see the Photon Library Reference) that define the resources to set and their values.

Description:

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.

Returns:

The number of resources set.

Examples:

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 );
}

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtArg_t in the Photon Library Reference


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/wid_build/libs/ptsuperclasssetresources.html on line 134

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/wid_build/libs/ptsuperclasssetresources.html on line 134