Definition at line 2 of file CPTheme.h.
Returns an array of names of all theme attributes defined for the given class, as found in the theme's ThemeDescriptors.j file.
The aClass
parameter can be one of the following:
- A class instance, for example the result of [CPCheckBox class]. The class must be a subclass of CPView.
- A class name, for example "CPCheckBox".
- A themed class name, for example "check-box".
If aClass
does not refer to a themed class in this theme, nil is returned.
- Parameters
-
aClass | The themed class whose attributes you want to retrieve |
- Returns
- An array of attribute names or nil
Definition at line 174 of file CPTheme.j.
Returns a dictionary of all theme attributes defined for the given class, as found in the theme's ThemeDescriptors.j file. The keys of the dictionary are attribute names, and the values are instances of _CPThemeAttribute.
For a description of valid values for aClass
, see attributeNamesForClass:.
- Parameters
-
aClass | The themed class whose attributes you want to retrieve |
- Returns
- A dictionary of attributes or nil
Definition at line 119 of file CPTheme.j.
Returns an array of names of themed classes defined in this theme, as found in its ThemeDescriptors.j file.
NOTE: The names are not class names (such as "CPButton"), but the names returned by the class' +defaultThemeClass method. For example, the name for CPCheckBox is "check-box", as defined in themeClass (CPView(Theming)).
Definition at line 104 of file CPTheme.j.
- (id) valueForAttributeWithName: |
|
(CPString) |
aName |
forClass: |
|
(id) |
aClass |
|
|
| |
|
implementation |
Returns the value for a theme attribute in its normal state, as defined for the given class in the theme's ThemeDescriptors.j file.
aName
should be the attribute name as you would pass to the method valueForThemeAttribute: (CPView(Theming)).
For a description of valid values for aClass
, see attributeNamesForClass:.
- Parameters
-
aName | The name of the attribute whose value you want to retrieve |
aClass | The themed class in which to look for the attribute |
- Returns
- A value or nil
Definition at line 220 of file CPTheme.j.