Classes |
| class | EDGE |
| class | SELECTOR |
Public Types |
| enum | BACKGROUND_POS {
BACKGROUND_POS_Numeric = 0,
BACKGROUND_POS_Top,
BACKGROUND_POS_Bottom,
BACKGROUND_POS_Left,
BACKGROUND_POS_Right,
BACKGROUND_POS_Center
} |
| enum | BACKGROUND_REPEAT { BACKGROUND_Repeat = 0,
BACKGROUND_NoRepeat,
BACKGROUND_RepeatX,
BACKGROUND_RepeatY
} |
| enum | BORDER_COLLAPSE { BORDER_COLLAPSE_Separate = 0,
BORDER_COLLAPSE_Collapse = 1
} |
| enum | CLEAR { CLEAR_None = 0,
CLEAR_Left,
CLEAR_Right,
CLEAR_Both
} |
| enum | CSSOVERFLOW { OVERFLOW_Visible = 0,
OVERFLOW_Hidden
} |
| enum | DISPLAY {
DISPLAY_Inline = 0,
DISPLAY_Block,
DISPLAY_None,
DISPLAY_InlineBlock,
DISPLAY_ListItem,
DISPLAY_Table,
DISPLAY_TableRow,
DISPLAY_TableHeaderGroup,
DISPLAY_TableRowGroup,
DISPLAY_TableFooterGroup,
DISPLAY_TableColumn,
DISPLAY_TableColumnGroup,
DISPLAY_TableCell,
DISPLAY_TableCaption,
DISPLAY_Marker
} |
| enum | EMPTY_CELLS { EMPTY_CELLS_Hide = 0,
EMPTY_CELLS_Show = 1
} |
| enum | FLOAT { FLOAT_None = 0,
FLOAT_Left,
FLOAT_Right
} |
| enum | LISTPOSITION { LISTPOSITION_Outside = 0,
LISTPOSITION_Inside
} |
| enum | LISTTYPE {
LISTTYPE_None = 0,
LISTTYPE_Disc,
LISTTYPE_Circle,
LISTTYPE_Square,
LISTTYPE_Decimal,
LISTTYPE_LowerRoman,
LISTTYPE_UpperRoman,
LISTTYPE_LowerAlpha,
LISTTYPE_UpperAlpha
} |
| enum | POSITION { POSITION_Static = 0,
POSITION_Absolute,
POSITION_Relative
} |
| enum | PSEUDO {
PSEUDO_None = 0,
PSEUDO_CurrentState,
PSEUDO_FirstChild,
PSEUDO_Hover,
PSEUDO_Active,
PSEUDO_Link,
PSEUDO_Visited,
PSEUDO_Before,
PSEUDO_After,
PSEUDO_FirstLine,
PSEUDO_FirstLetter,
PSEUDO_NUMPSEUDO
} |
| enum | TEXT_TRANSFORM { TEXT_TRANSFORM_None = 0,
TEXT_TRANSFORM_Capitalize,
TEXT_TRANSFORM_UpperCase,
TEXT_TRANSFORM_LowerCase
} |
| enum | VALIGN {
VALIGN_Baseline = 0,
VALIGN_Auto,
VALIGN_Sub,
VALIGN_Super,
VALIGN_Top,
VALIGN_Middle,
VALIGN_Bottom,
VALIGN_TextTop,
VALIGN_TextBottom,
VALIGN_Numeric
} |
| enum | VISIBILITY { VISIBILITY_Inherit = 0,
VISIBILITY_Visible = 1,
VISIBILITY_Hidden
} |
| enum | WHITESPACE { WHITESPACE_Normal = 0,
WHITESPACE_NoWrap,
WHITESPACE_Pre
} |
Public Member Functions |
| | STYLE (const STYLE &) |
| | STYLE (const char *selector=0, const char *css=0) |
| void | AddRef () |
| void | Combine (const EDGE &rhs) |
| void | Combine (const STYLE &rhs) |
| bool | CompareSize (const STYLE &other) const |
| void | GenerateCSS (MISTRING &css, bool bInline=true, char quote= '\'') const |
| const MISTRING & | GetBackgroundImage () const |
| const MEASUREMENT & | GetBackgroundPosNumX () const |
| const MEASUREMENT & | GetBackgroundPosNumY () const |
| const ENUM< BACKGROUND_POS > & | GetBackgroundPosX () const |
| const ENUM< BACKGROUND_POS > & | GetBackgroundPosY () const |
| const ENUM< BACKGROUND_REPEAT > & | GetBackgroundRepeat () const |
| const COLOR & | GetBGColor () const |
| const ENUM< BORDER_COLLAPSE > & | GetBorderCollapse () const |
| const MEASUREMENT & | GetBorderSpacing () const |
| const EDGE & | GetBottomEdge () const |
| const ENUM< CLEAR > & | GetClear () const |
| const MISTRING & | GetContent () const |
| const MISTRING & | GetCounterIncrement () const |
| const MISTRING & | GetCounterReset () const |
| const ENUM< MGUI::CURSORID > & | GetCursor () const |
| const ENUM< DISPLAY > & | GetDisplay () const |
| EDGE & | GetEdge (int num) |
| const EDGE & | GetEdge (int num) const |
| const ENUM< EMPTY_CELLS > & | GetEmptyCells () const |
| const ENUM< FLOAT > & | GetFloat () const |
| const MEASUREMENT & | GetFontSize () const |
| const MEASUREMENT & | GetHeight () const |
| const MEASUREMENT & | GetIndent () const |
| const EDGE & | GetLeftEdge () const |
| const MEASUREMENT & | GetLineHeight () const |
| const ENUM< LISTPOSITION > & | GetListPosition () const |
| const MISTRING & | GetListStyleImage () const |
| const ENUM< LISTTYPE > & | GetListType () const |
| const MEASUREMENT & | GetMarkerOffset () const |
| const MEASUREMENT & | GetMeasurement (CSS_PROPERTY property) const |
| bool | GetMinimizeWidth () const |
| const MISTRING & | GetOpenTypeFeatures () const |
| const ENUM< CSSOVERFLOW > & | GetOverflow () const |
| const ENUM< POSITION > & | GetPosition () const |
| const MISTRING & | GetQuotes () const |
| const EDGE & | GetRightEdge () const |
| const SELECTOR & | GetSelector () const |
| INT32 | GetTabStop () const |
| void | GetTextStyle (TEXTSTYLE &TextStyle, MGD::CONTEXT *gc, const ELEMENT *Element) const |
| const TEXTSTYLEDIFF & | GetTextStyle () const |
| const ENUM< TEXT_TRANSFORM > & | GetTextTransform () const |
| const EDGE & | GetTopEdge () const |
| const ENUM< VALIGN > & | GetVAlign () const |
| const MEASUREMENT & | GetVAlignNum () const |
| const ENUM< VISIBILITY > & | GetVisibility () const |
| const ENUM< WHITESPACE > & | GetWhitespace () const |
| const MEASUREMENT & | GetWidth () const |
| INT32 | GetZIndex () const |
| bool | IsBGColorSet () const |
| bool | IsInheritable () const |
| bool | IsMinimizeWidthSet () const |
| bool | IsShared () const |
| bool | IsSpecialState () const |
| void | Parse (const MISTRING &str) |
| bool | ParseFont (const MISTRING &mistr) |
| bool | ParseFontSize (const STRUTF8 &str) |
| bool | ParseFontStyle (const STRUTF8 &str) |
| bool | ParseFontVariant (const STRUTF8 &str) |
| bool | ParseFontWeight (const STRUTF8 &str) |
| void | ParseLineHeight (const STRUTF8 &str) |
| void | ParseTildeCodes (const MISTRING &codes, MISTRING &UnhandledCodes) |
| void | Release () |
| void | SetBGColor (const COLOR &color) |
| void | SetTextStyle (const TEXTSTYLE &TextStyle) |
| bool HTML::STYLE::CompareSize |
( |
const STYLE & |
other |
) |
const |
See if this style would result in the same size as another style.
This compares fonts, positions, margins, padding, borders, etc. and returns true if the styles are the same in all those ways.