Get a copy of a widget class style
PtWidgetClassStyle_t * PtDupClassStyle( PtWidgetClassRef_t * const ref, char const * const name, char const * const new_name );
ph
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.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
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