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/ptsetclassstylemethods.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/ptsetclassstylemethods.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/ptsetclassstylemethods.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/ptsetclassstylemethods.html on line 8
Set multiple members of a style from an array
int PtSetClassStyleMethods(
PtWidgetClassStyle_t *style,
int num_methods,
PtStyleMethods_t *meth_array );
ph
This function is similar to
PtSetStyleMember(),
but lets you specify an array of (manifest, value) pairs to set multiple
members in a single call.
0 on success, or the number of the first manifest that wasn't successfully set.
|
If the return is greater than 0, subtract 1 from it to determine the index
into the array of manifests.
For example, if PtSetClassStyleMethods() returns 1,
meth_array[0] contains the first manifest that couldn't be set. |
…
PtStyleMethods_t neon_methods[2] = {
{Pt_STYLE_DRAW, neon_draw},
{Pt_STYLE_SIZING, neon_sizing}
};
…
PtSetClassStyleMethods (neon_style, 2, neon_methods);
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtAddClassStyle(),
PtCreateClassStyle(),
PtDupClassStyle(),
PtFindClassStyle(),
PtGetStyleMember(),
PtGetWidgetStyle(),
PtSetStyleMember(),
PtSetStyleMembers(),
PtSetWidgetStyle()
Pt_ARG_STYLE
resource of PtBasic in the
Photon Widget Reference
“Widget Styles”
in the Managing Widgets in Application Code chapter of the
Photon Programmer's Guide
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/ptsetclassstylemethods.html on line 137
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/ptsetclassstylemethods.html on line 137