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/lib_ref/pt/ptappgetresources.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/lib_ref/pt/ptappgetresources.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/lib_ref/pt/ptappgetresources.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/lib_ref/pt/ptappgetresources.html on line 8
Retrieve one or more resource values for an application
int PtAppGetResources(int n_args,
PtArg_t *args)
- n_args
- The number of items in the args array.
- args
- Indicates which resources are retrieved.
ph
This function sets pointers to resource values within the application.
You must initialize the args array with PtSetArg() or Pt_ARG() before
calling PtAppGetResources(). The Pt type of a resource determines
how that resource should be set or queried. You use the Pt type
when setting a resource entry with PtSetArg(). For a
list of application callbacks, see
PtAppSetResources().
For more information, see the
Manipulating Resources
in Application Code chapter of the Photon Programmer's Guide.
|
Because PtAppGetResources() returns pointers
directly into the internals of the widget, don't modify those values
directly. If you wish to retrieve the value of a given resource
and then modify that value:
- Get the resource.
- Copy the resource to a temporary variable.
- Modify the temporary variable.
- Using the modified copy, set the resource.
|
- 0
- Success.
- -1
- An error occurred.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtAppAddCallback(),
PtAppGetResource(),
PtAppRemoveCallback(),
PtAppSetResources(),
PtAppSetResource(),
PtSetArg().
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/lib_ref/pt/ptappgetresources.html on line 138
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/lib_ref/pt/ptappgetresources.html on line 138