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 172 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 118 of file CPTheme.j.
- (_CPThemeAttribute) attributeWithName: |
|
(CPString) |
aName |
forClass: |
|
(id) |
aClass |
|
|
| |
|
implementation |
Returns a theme attribute defined for the given class, as found in the theme's ThemeDescriptors.j file.
aName
should be the attribute name as you would pass to the method CPView::valueForThemeAttribute:.
For a description of valid values for aClass
, see attributeNamesForClass:.
- Parameters
-
aName | The name of the attribute you want to retrieve |
aClass | The themed class in which to look for the attribute |
- Returns
- An instance of _CPThemeAttribute or nil
Definition at line 195 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 CPCheckBox::themeClass.
Definition at line 103 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 CPView::valueForThemeAttribute:.
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 218 of file CPTheme.j.
- (id) valueForAttributeWithName: |
|
(CPString) |
aName |
inState: |
|
(ThemeState) |
aState |
forClass: |
|
(id) |
aClass |
|
|
| |
|
implementation |
Returns the value for a theme attribute in a given state, as defined for the given class in the theme's ThemeDescriptors.j file. This is the equivalent of the method CPView::valueForThemeAttribute:inState:, but retrieves the value from the theme definition as opposed to a single view's current theme state.
For a description of valid values for aClass
, see attributeNamesForClass:.
- Parameters
-
aName | The name of the attribute whose value you want to retrieve |
aState | The state qualifier for the attribute |
aClass | The themed class in which to look for the attribute |
- Returns
- A value or nil
Definition at line 236 of file CPTheme.j.