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

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PtDupClassStyle()

Get a copy of a widget class style

Synopsis:

PtWidgetClassStyle_t * PtDupClassStyle(
   PtWidgetClassRef_t * const ref,
   char const * const name,
   char const * const new_name );

Library:

ph

Description:

This function obtains a copy of the style called name in the widget class ref, and sets the copy's name to new_name. You can modify this new style and/or add it as a new style to the widget class from which the style was duplicated.

Returns:

A pointer to the copy of the specified class style, or NULL if the specified style didn't exist or there wasn't enough memory to create the duplicate.

Examples:

See "Widget Styles" in the Managing Widgets in Application Code chapter of the Photon Programmer's Guide.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtAddClassStyle(), PtCreateClassStyle(), PtFindClassStyle(), 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


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