Find the style with a given name
PtWidgetClassStyle_t *PtFindClassStyle( PtWidgetClassRef_t *ref, char *name );
ph
This function returns a pointer to the style called name from the widget class ref. If the name is NULL, PtFindClassStyle() returns a pointer to the default style for the provided class.
A pointer to the style, or NULL if it wasn't found.
Return a pointer to the default style for PtButton:
PtWidgetClassStyle_t *stylep; stylep = PtFindClassStyle (PtButton, NULL);
Return a pointer to the blue style for PtButton:
PtWidgetClassStyle_t *stylep; stylep = PtFindClassStyle (PtButton, "blue");
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PtAddClassStyle(), PtCreateClassStyle(), PtDupClassStyle(), 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