TEXTSTYLEDIFF Struct Reference
#include <mi32/elemstyl.h>
List of all members.
Public Types |
| enum | MEMBERMASK {
MEMBER_NONE = 0x00000000,
MEMBER_StyleFlags = 0x00000001,
MEMBER_FontNumber = 0x00000002,
MEMBER_FGColor = 0x00000004,
MEMBER_BGColor = 0x00000008,
MEMBER_GlyphRotation = 0x00000010,
MEMBER_GlyphAspect = 0x00000020,
MEMBER_Shear = 0x00000040,
MEMBER_Height = 0x00000080,
MEMBER_LineSpace = 0x00000100,
MEMBER_FontFlags = 0x00000200,
MEMBER_MapScale = 0x00000400,
MEMBER_fontname = 0x00000800,
MEMBER_HeightUnits = 0x00001000,
MEMBER_SpaceUnits = 0x00002000,
MEMBER_Predefined = 0x00004000,
MEMBER_Width = 0x00008000,
MEMBER_StrokeWidth = 0x00010000,
MEMBER_EnhanceWidth = 0x00020000,
MEMBER_BoldnessWidth = 0x00040000,
MEMBER_UnderlineWidth = 0x00080000,
MEMBER_UnderlineOffset = 0x00100000,
MEMBER_ShadowOffset = 0x00200000,
MEMBER_ShadowAngle = 0x00400000,
MEMBER_ClipWidth = 0x00800000,
MEMBER_ShadowRelative = 0x01000000,
MEMBER_WidthUnits = 0x02000000,
MEMBER_ALL = 0x03FFFFFF
} |
Public Member Functions |
| | TEXTSTYLEDIFF (const TEXTSTYLE &rhs) |
| | TEXTSTYLEDIFF (const MIUNICODE *) |
| | TEXTSTYLEDIFF () |
| void | GetTildeCodes (MISTRING &str, bool bClearStringFirst=true) const |
| TEXTSTYLEDIFF & | operator&= (const TEXTSTYLEDIFF &rhs) |
| TEXTSTYLEDIFF & | operator+= (const MIUNICODE *code) |
| TEXTSTYLEDIFF & | operator^= (const TEXTSTYLEDIFF &rhs) |
| TEXTSTYLEDIFF & | operator|= (const TEXTSTYLEDIFF &rhs) |
| void | ParseCSS (const MIUNICODE *commands) |
| bool | ParseTildeCodes (const MIUNICODE *commands, MISTRING *unknowns=0) |
Public Attributes |
| UINT32 | FontFlagMask |
| MEMBERMASK | MemberMask |
| UINT32 | StyleFlagMask |
Member Enumeration Documentation
- Enumerator:
| MEMBER_NONE |
|
| MEMBER_StyleFlags |
|
| MEMBER_FontNumber |
|
| MEMBER_FGColor |
|
| MEMBER_BGColor |
|
| MEMBER_GlyphRotation |
|
| MEMBER_GlyphAspect |
|
| MEMBER_Shear |
|
| MEMBER_Height |
|
| MEMBER_LineSpace |
|
| MEMBER_FontFlags |
|
| MEMBER_MapScale |
|
| MEMBER_fontname |
|
| MEMBER_HeightUnits |
|
| MEMBER_SpaceUnits |
|
| MEMBER_Predefined |
|
| MEMBER_Width |
|
| MEMBER_StrokeWidth |
|
| MEMBER_EnhanceWidth |
|
| MEMBER_BoldnessWidth |
|
| MEMBER_UnderlineWidth |
|
| MEMBER_UnderlineOffset |
|
| MEMBER_ShadowOffset |
|
| MEMBER_ShadowAngle |
|
| MEMBER_ClipWidth |
|
| MEMBER_ShadowRelative |
|
| MEMBER_WidthUnits |
|
| MEMBER_ALL |
|
Constructor & Destructor Documentation
| TEXTSTYLEDIFF::TEXTSTYLEDIFF |
( |
|
) |
[inline] |
| TEXTSTYLEDIFF::TEXTSTYLEDIFF |
( |
const MIUNICODE * |
|
) |
|
Initialize a TEXTSTYLEDIFF with the style changes described by the {~} codes in a text string.
| TEXTSTYLEDIFF::TEXTSTYLEDIFF |
( |
const TEXTSTYLE & |
rhs |
) |
[inline] |
Member Function Documentation
| void TEXTSTYLEDIFF::GetTildeCodes |
( |
MISTRING & |
str, |
|
|
bool |
bClearStringFirst = true | |
|
) |
| | const |
Generate a string of TILDE codes which describe the changes that this TEXTSTYLEDIFF represent.
- Parameters:
-
| bClearStringFirst | Pass false to append to existing text |
Compute the similaraties between this TEXTSTYLE and another.
The left hand side will only have the MemberMask bits set for the members which are the same between its previous state and the right hand side. The MemberMask bits for the members which are different are cleared.
Augment from {~} code(s).
Compute the difference between this TEXTSTYLE and another.
The left hand side will only have the MemberMask bits set for the members which are different between its previous state and the right hand side. The MemberMask bits for the members which are the same are cleared.
Augment from another TEXTSTYLE.
Only the members of the right hand side which are valid (according to MemberMask) will be copied to the left hand side.
| void TEXTSTYLEDIFF::ParseCSS |
( |
const MIUNICODE * |
commands |
) |
|
Parse Cascading Style Sheet (CSS) codes.
Will parse up to the next closing bracket or end of string, whichever comes first.
- Parameters:
-
| commands | CSS codes to parse. |
| bool TEXTSTYLEDIFF::ParseTildeCodes |
( |
const MIUNICODE * |
commands, |
|
|
MISTRING * |
unknowns = 0 | |
|
) |
| | |
Parse a series of {~} codes.
- Returns:
- true if any ~ code was recgonized.
- Parameters:
-
| commands | {~} codes to parse |
| unknowns | Any unrecgonized commands will be returned in this string, if provided. |
Member Data Documentation
Which FontFlags bits are meaningful.
Which members are meaningful.
Which StyleFlags bits are meaningful.
The documentation for this struct was generated from the following file: