PtSetStyleMembers()

Set multiple members of a style from a variable-length argument list

Synopsis:

int PtSetStyleMembers (
       PtWidgetClassStyle_t *style, ... );

Library:

ph

Description:

This function is similar to PtSetStyleMember(), but lets you specify multiple (manifest, value) pairs at once.


Note: The last (manifest, value) pair must be -1, -1.

Returns:

0 on success, or the number of manifests that were successfully set.


Note: If the return is greater than 0, it will be less than the number of manifests provided, because at least one of the manifests couldn't be set.

Examples:

PtSetStyleMembers( neon_style,
                   Pt_STYLE_DRAW, neon_draw,
                   Pt_STYLE_SIZING, neon_sizing,
                   -1, -1 );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtAddClassStyle(), PtCreateClassStyle(), PtDupClassStyle(), PtFindClassStyle(), PtGetStyleMember(), PtGetWidgetStyle(), PtSetClassStyleMethods(), PtSetStyleMember(), 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