|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Get a copy of a widget class style
PtWidgetClassStyle_t * PtDupClassStyle( PtWidgetClassRef_t * const ref, char const * const name, char const * const new_name );
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.
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.
See “Widget Styles” in the Managing Widgets in Application Code chapter of the Photon Programmer's Guide.
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