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