| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
StyleItem
A storage class for holding styling information
To Do: The extra Attributes should be saved as a separate attribute in the StyleItem. This currenlty causes problems when customizing values in the StyleEditor Changing this is fairly easy in this class but it will require changes to the StyleMgr and Editor as well.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| bool |
|
||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
Returns the value of the back attribute
|
Returns the value of the face attribute
|
Returns the value of the fore attribute
|
Returns the value of the size attribute as a string
|
Takes style string and sets the objects attributes by parsing the string for the values. Only sets or overwrites values does not zero out previously set values. Returning True if value(s) are set or false otherwise.
|
Sets the Background Value
|
Adds an extra text attribute to a StyleItem. Currently (bold, eol, italic, underline) are supported. If the optional add value is set to False the attribute will be removed from the StyleItem.
|
Sets the Face Value
|
Sets the Foreground Value
|
Sets a StyleItem attribute by named string.
Note: This is not intended to be used for setting extra attributes such as bold, eol, ect.. |
Sets the Font Size Value
|
Defines the == operator for the StyleItem Class
|
Initiliazes the Style Object.
@param fore: Specifies the forground color (hex string)
@param face: Specifies the font face (string face name)
@param back: Specifies the background color (hex string)
@param size: Specifies font point size (int/formatted string)
SPECIFICATION:
DATA FORMATS:
#123456 = hex color code
#123456,bold = hex color code + extra style
Monaco = Font Face Name
%(primary)s = Format string to be swapped at runtime
10 = A font point size
%(size)s = Format string to be swapped at runtime
|
Converts StyleItem to a string
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 21 14:51:15 2008 | http://epydoc.sourceforge.net |