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/ptfindclassstyle.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/ptfindclassstyle.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/ptfindclassstyle.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/ptfindclassstyle.html on line 8

PtFindClassStyle()

Find the style with a given name

Synopsis:

PtWidgetClassStyle_t *PtFindClassStyle(
                         PtWidgetClassRef_t *ref,
                         char *name );

Library:

ph

Description:

This function returns a pointer to the style called name from the widget class ref. If the name is NULL, PtFindClassStyle() returns a pointer to the default style for the provided class.

Returns:

A pointer to the style, or NULL if it wasn't found.

Examples:

Return a pointer to the default style for PtButton:

PtWidgetClassStyle_t *stylep;

stylep = PtFindClassStyle (PtButton, NULL);

Return a pointer to the blue style for PtButton:

PtWidgetClassStyle_t *stylep;

stylep = PtFindClassStyle (PtButton, "blue");

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtAddClassStyle(), PtCreateClassStyle(), PtDupClassStyle(), PtGetStyleMember(), PtGetWidgetStyle(), PtSetClassStyleMethods(), 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/ptfindclassstyle.html on line 127

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/ptfindclassstyle.html on line 127