[Previous] [Contents] [Index] [Next]

PtAddClassStyle()

Add a style to a widget class

Synopsis:

int PtAddClassStyle( PtWidgetClass_t * const wclass,
                     PtWidgetClassStyle_t *style );

Library:

ph

Description:

This function adds the style described by style to the widget class identified by wclass.

A style is a collection of override methods that can change how a widget looks and behaves. Styles can also add widget resources.

Returns:

The index of the style, or -1 if it couldn't be added.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

Pt_ARG_STYLE resource of PtBasic in the Photon Widget Reference


[Previous] [Contents] [Index] [Next]