Get the style that a widget is currently using
PtWidgetClassStyle_t *PtGetWidgetStyle( PtWidget_t *widget );
ph
This function returns a pointer to the style that the provided widget is currently using.
A pointer to the style.
void display_style( PtWidget_t *widget ) { PtWidgetClassStyle_t *style = PtGetWidgetStyle( widget ); display_style_name ( style ); }
For details about display_style_name(), see PtGetStyleMember().
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PtAddClassStyle(), PtCreateClassStyle(), PtDupClassStyle(), PtFindClassStyle(), PtGetStyleMember(), 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