#include <C_Style_Sheet.h>
Public Member Functions | |
| C_Style_Sheet (void) | |
| The constructor. | |
| ~C_Style_Sheet (void) | |
| The destructor. | |
| char * | MarginTostring (void) |
| Convert Margins value to a string. | |
| void | ParseMargin (char *Line) |
| Parse a string into margin value. | |
| void | Parse_Style (char *line, char *format) |
| Parse a line from a .ssa file. | |
| void | Parse_Style_Format (char *line, char *Source) |
| Parse the Style format. | |
| C_Style_Sheet * | FindStyle (char *Style) |
| Find a style into the list. | |
| char * | Tostring (char *format) |
| Transform the class to a string. | |
Data Fields | |
| char * | Name |
| Name of the Style. | |
| char * | Fontname |
| Style's font name. | |
| int | Alignment |
| Style's alignment (sub/mid title, left/right). | |
| int | Fontsize |
| Size of the font. | |
| long | Primary_Color |
| First color of the text (the center I think). | |
| long | Secondary_Color |
| Second color of the text (maybe the border). | |
| long | Tertiary_Color |
| Tertiary color of the text (might be the shadows). | |
| long | Backcolor |
| Uuuuuh, I don't remember, (september, what it's stupid?) :). | |
| int | Encoding |
| I don't know what it is, only in .ssa file. | |
| int | MarginL |
| Left Margin of the style. | |
| int | MarginR |
| Right Margin of the style. | |
| int | MarginV |
| Vertical Margin of the style. | |
| int | Outline |
| Size of the border, maybe in pixel. | |
| int | Shadow |
| Size of the Shadow, maybe in pixel. | |
| int | AlphaLevel |
| Transparacy level (between 0 and 255 ?). | |
| bool | Bold |
| If the text is in bold. | |
| bool | Italic |
| If the text is in Italic. | |
| C_Style_Sheet * | Next |
| For the liste, next element. | |
This class is used to stock Styles wich are used by the events
|
|
The constructor. Set to 0 all the class (memset my friend) |
|
|
The destructor. Desalouate the Style's name and fontname |
|
|
Find a style into the list. You should use this members with the first element of the style list
|
|
|
Convert Margins value to a string. Convert the MarginL, MarginR and MarginV value to a string to be displayed You MUST delete[] the data when finish |
|
||||||||||||
|
Parse a line from a .ssa file.
|
|
||||||||||||
|
Parse the Style format. Parse the first line of the style part
|
|
|
Parse a string into margin value. Parse a string formated like MarginTostring() Line char to parse
|
|
|
Transform the class to a string. Create a string for saving data in a .ssa file
|
|
|
Style's alignment (sub/mid title, left/right).
|
|
|
Transparacy level (between 0 and 255 ?).
|
|
|
Uuuuuh, I don't remember, (september, what it's stupid?) :).
|
|
|
If the text is in bold.
|
|
|
I don't know what it is, only in .ssa file.
|
|
|
Style's font name.
|
|
|
Size of the font.
|
|
|
If the text is in Italic.
|
|
|
Left Margin of the style.
|
|
|
Right Margin of the style.
|
|
|
Vertical Margin of the style.
|
|
|
Name of the Style.
|
|
|
For the liste, next element.
|
|
|
Size of the border, maybe in pixel.
|
|
|
First color of the text (the center I think).
|
|
|
Second color of the text (maybe the border).
|
|
|
Size of the Shadow, maybe in pixel.
|
|
|
Tertiary color of the text (might be the shadows).
|
1.3