#include "sttypes.h"
Go to the source code of this file.
Defines | |
#define | STSF_VERSION_MAJOR 0 |
#define | STSF_VERSION_MINOR 4 |
#define | STSF_VERSION_UPDATE 0 |
Functions | |
STStatus | STTypeEnvNew (STTypeEnv *oEnv) |
A default constructor for a type environment object. More... | |
STStatus | STTypeEnvNewCopy (STTypeEnv *oEnv, STTypeEnv iOldEnv) |
A copy constructor for a type environment object. More... | |
STStatus | STTypeEnvDispose (STTypeEnv iEnv) |
A destructor. More... | |
STStatus | STTypeEnvSetFontFallbackPolicy (STTypeEnv iEnv, STFontFallbackPolicy iPolicy) |
Sets the global font fallback policy. More... | |
STStatus | STTypeEnvGetFontFallbackPolicy (STTypeEnv iEnv, STFontFallbackPolicy *oPolicy) |
Queries the global font fallback policy. More... | |
STStatus | STTypeEnvSetFontFallbacks (STTypeEnv iEnv, STCount iFontCount, STFont *iFontArray) |
Sets the global default list of fallback fonts. More... | |
STStatus | STTypeEnvGetFontFallbacks (STTypeEnv iEnv, STCount *oFontCount, STFont **oFontArray) |
Returns the global font fallback array. More... | |
STStatus | STTypeEnvFindFont (STTypeEnv iEnv, const utf16 *iName, int iNameLength, uint16 iNameID, STFont *oFont) |
Finds a font by its name. More... | |
STStatus | STTypeEnvFindAllFonts (STTypeEnv iEnv, const utf16 *iName, int iNameLength, uint16 iNameID, STCount *oFontCount, STFont **oFont) |
Finds all fonts by their Unicode name and returns an array of font IDs. More... | |
STStatus | STTypeEnvFindFontByPlatformName (STTypeEnv iEnv, const byte *iName, int iNameLength, uint16 iPlatformID, uint16 iEncodingID, uint16 iLanguageID, uint16 iNameID, STFont *oFont) |
Finds a font by its platform-specific name and returns the font ID. More... | |
STStatus | STTypeEnvFindAllFontsByPlatformName (STTypeEnv iEnv, const byte *iName, int iNameLength, uint16 iPlatformID, uint16 iEncodingID, uint16 iLanguageID, uint16 iNameID, STCount *oFontCount, STFont **oFont) |
Finds all fonts by their Platform name and returns an array of font IDs. More... | |
STStatus | STTypeEnvFindFontsByURL (STTypeEnv iEnv, const char *iURL, STCount *oFontCount, STFont **oFont) |
STStatus | STTypeEnvCreateFont (STTypeEnv iEnv, STCount iDataCount, byte **iData, size_t *iDataLength, STCount *oFontCount, STFont **oFont) |
Creates an STSF font from several data streams. More... | |
STStatus | STTypeEnvDestroyFont (STTypeEnv iEnv, STFont iFont) |
Disposes of a font previously created with STCreateFont(). More... | |
STStatus | STTypeEnvCreateFontFromURL (STTypeEnv iEnv, STCount iURLCount, char **iURL, STCount *oFontCount, STFont **oFont) |
STStatus | STTypeEnvFindAllScalers (STTypeEnv iEnv, STCount *oScalerCount, STScaler **oScalerArray) |
Enumerates all font scalers available to this type environment. More... | |
STStatus | STTypeEnvFindScaler (STTypeEnv iEnv, STTag iTag, STScaler *oScaler) |
Finds a scaler by its tag. More... | |
STStatus | STTypeEnvFindAllLayoutEngines (STTypeEnv iEnv, STCount *oLECount, STLayoutEngine **oLEArray) |
Enumerates all layout engines available to this type environment. More... | |
STStatus | STTypeEnvFindLayoutEngine (STTypeEnv iEnv, STTag iTag, STLayoutEngine *oLayoutEngine) |
Finds a layout engine by its tag. More... | |
STStatus | STTypeEnvSetLocations (STTypeEnv iEnv, STFontLocationsMask iMask) |
Specfies which pre-defined locations STSF should scan for fonts. More... | |
STStatus | STTypeEnvGetLocations (STTypeEnv iEnv, STFontLocationsMask *oMask) |
Returns the previously set font locations mask. More... | |
STStatus | STTypeEnvSetFontFolders (STTypeEnv iEnv, STCount iFolderCount, char **iFolders) |
Specifies a list of directories STSF will scan for fonts in addition to pre-defined locations. More... | |
STStatus | STTypeEnvGetFontFolders (STTypeEnv iEnv, STCount *oFolderCount, char ***oFolders) |
Returns a list of directories previously set with STTypeEnvSetFontFolders. More... | |
STStatus | STScalerGetInfo (STTypeEnv iEnv, STScaler iScaler, STTag *oTag, uint32 *oVersion, const char **oShortName, const char **oLongName, const char **oNotice, STScalerFlags *oSFlags, STFontServerFontMask *oFFlags) |
Retrieves general information from the scaler. More... | |
STStatus | STLayoutEngineGetInfo (STTypeEnv iEnv, STLayoutEngine iLayoutEngine, STTag *oTag, uint32 *oVersion, const char **oShortName, const char **oLongName, const char **oNotice, STLayoutEngineFlags *oLEFlags) |
Retrieves general information from the layout engine.. More... | |
STStatus | STFontGetNameTags (STTypeEnv iEnv, STFont iFont, STCount *oNameCount, STNameTagPtr *oNameTags) |
Extracts all name string tags from the font. More... | |
STStatus | STFontGetNameString (STTypeEnv iEnv, STFont iFont, STNameTagPtr iNameTag, int *oStringLength, byte **oStringData) |
Extracts a string specified by the string tag from the font. More... | |
STStatus | STFontGetUnicodeName (STTypeEnv iEnv, STFont iFont, uint16 iNameID, STLanguage *ioLanguage, STCharCount *oCharCount, utf16 **oStringData) |
Extracts a string specified by the string tag from the font and normalizes it to Unicode. More... | |
STStatus | STFontGetType (STTypeEnv iEnv, STFont iFont, STFontType *oFontType) |
Retrieves a type of the font. More... | |
STStatus | STFontGetURL (STTypeEnv iEnv, STFont iFont, char **oFontURL) |
Retrieves the URL of the font. More... | |
STStatus | STFontGetData (STTypeEnv iEnv, STFont iFont, STTag iTable, STCount *oByteCount, byte **oRawData) |
STStatus | STFontGetExtInfo (STTypeEnv iEnv, STFont iFont, const char **oFontName, const char **oPSName, STFontServerFontType *oType, STFontInfoFlags *oFlags, int *oSbitCount, int **oSbitArray, STFontMetrics *oFontMetrics) |
Retrieves extended font information from a font. More... | |
STStatus | STFontGetBaselines (STTypeEnv iEnv, STFont iFont, STBaselines *oBaselines) |
Retrieves offsets of all baselines defined in the font from the Roman baseline. More... | |
STStatus | STFontGetFeatures (STTypeEnv iEnv, STFont iFont, STCount *oFeatureCount, STFontFeatureTag **oFeatureArray) |
XXX NOT FOR THE ARC Retrieves all font features from the font. More... | |
STStatus | STTypeEnvFindFontFamily (STTypeEnv iEnv, const utf16 *iName, STCharCount iNameLength, STLanguage *ioLanguage, STFontFamily *oFontFamily) |
Finds a font family by its name. More... | |
STStatus | STTypeEnvFindAllFontFamilies (STTypeEnv iEnv, STCount *oFontFamilyCount, STFontFamily **oFontFamily) |
Finds all font families. More... | |
STStatus | STFontFamilyGetFonts (STTypeEnv iEnv, STFontFamily iFontFamily, STCount *oFontCount, STFont **oFontArray) |
STStatus | STFontFamilyGetName (STTypeEnv iEnv, STFontFamily iFontFamily, STLanguage *ioLanguage, STCharCount *oCharCount, utf16 **oStringData) |
STStatus | STFontGetFontFamily (STTypeEnv iEnv, STFont iFont, STFontFamily *oFontFamily) |
STStatus | STFontGetTypefaceName (STTypeEnv iEnv, STFont iFont, STLanguage *ioLanguage, STCharCount *oCharCount, utf16 **oStringData, STFontWeightClass *oWeight, STFontWidthClass *oWidth, STFontStyle *oStyle) |
STStatus | STGraphicsNewEmpty (STGraphics *oGraphics) |
Creates a new graphics environment. More... | |
STStatus | STGraphicsNew (STGraphics *oGraphics, STGraphicsMask iMask, STDevice iDevice, STOutputMode iOutputMode, STRGBAColor iTextFG, STRGBAColor iHighlightFG, STRGBAColor iHighlightBG, STRGBAColor iStrikeThrough, STRGBAColor iHLStrikeThrough, STRGBAColor iUnderline1, STRGBAColor iHLUnderline1, STRGBAColor iUnderline2, STRGBAColor iHLUnderline2) |
Creates a new graphics environment and assigns an output device and rendering parameters to it. More... | |
STStatus | STGraphicsNewCopy (STGraphics *oGraphics, STGraphics iOldGraphics) |
Graphics environment copy constructor. More... | |
STStatus | STGraphicsDispose (STGraphics iGraphics) |
Graphics environment destructor. More... | |
STStatus | STGraphicsSetDevice (STGraphics iGraphics, STDevice iDevice, STOutputMode iOutputMode) |
Sets device and the output mode. More... | |
STStatus | STGraphicsGetDevice (STGraphics iGraphics, STDevice *oDevice, STOutputMode *oOutputMode) |
Queries previously set device and the output mode. More... | |
STStatus | STGraphicsSetColors (STGraphics iGraphics, STGraphicsMask iMask, STRGBAColor iTextFG, STRGBAColor iHighLightFG, STRGBAColor iHighLightBG, STRGBAColor iStrikeThrough, STRGBAColor iHLStrikeThrough, STRGBAColor iUnderline1, STRGBAColor iHLUnderline1, STRGBAColor iUnderline2, STRGBAColor iHLUnderline2) |
Sets graphics colors. More... | |
STStatus | STGraphicsGetColors (STGraphics iGraphics, STGraphicsMask *oMask, STRGBAColor *oTextFG, STRGBAColor *oHighLightFG, STRGBAColor *oHighLightBG, STRGBAColor *oStrikeThrough, STRGBAColor *oHLStrikeThrough, STRGBAColor *oUnderline1, STRGBAColor *oHLUnderline1, STRGBAColor *oUnderline2, STRGBAColor *oHLUnderline2) |
Queries graphics colors. More... | |
STStatus | STDeviceGetMatrix (STDevice iDevice, STMatrix *oMatrix) |
Returns the current transformation matrix of an STDevice object. More... | |
STStatus | STDeviceSetMatrix (STDevice iDevice, STMatrix iMatrix) |
Replaces the current transformation matrix with a new one. More... | |
STStatus | STDeviceConcatMatrix (STDevice iDevice, STMatrix iMatrix) |
Concatenates the current transformation matrix with the new one. More... | |
STStatus | STDeviceTranslate (STDevice iDevice, double tx, double ty) |
Concatenates the current transformation matrix with a translate transform. More... | |
STStatus | STDeviceScale (STDevice iDevice, double sx, double sy) |
Concatenates the current transformation matrix with a scale transform. More... | |
STStatus | STDeviceRotate (STDevice iDevice, double theta) |
Concatenates the current transformation matrix with a rotate transform. More... | |
STStatus | STDeviceShear (STDevice iDevice, double shx, double shy) |
Concatenates the current transformation matrix with a shear transform. More... | |
STStatus | STStyleNewEmpty (STStyle *oStyle, STTypeEnv iEnv) |
Creates a new empty Style. More... | |
STStatus | STStyleNewDefault (STStyle *oStyle, STTypeEnv iEnv) |
Creates a new Style with the attributes set to default values. More... | |
STStatus | STStyleNewCopy (STStyle *oNewStyle, STStyle iOldStyle) |
Creates a copy of iOldStyle. More... | |
STStatus | STStyleDispose (STStyle iStyle) |
A Style destructor. More... | |
STStatus | STStyleCompare (STStyle iLhs, STStyleMask iMask, STStyle iRhs, STStyleComparison *oResult) |
Compare two STStyle objects. More... | |
STStatus | STStyleIsEmpty (STStyle iStyle, STBoolean *oResult) |
Checks if a Style is empty, i.e. More... | |
STStatus | STStyleClear (STStyle iStyle, STStyleMask iMask) |
Removes specified attributes from a Style. More... | |
STStatus | STStyleSerialize (STStyle iStyle, int iFileDes) |
Serializes a Style object to an XML stream. More... | |
STStatus | STStyleDeserialize (STStyle *oStyle, int iFileDes) |
Reads in an XML stream and deserializes a Style object from it. More... | |
STStatus | STStyleSetFont (STStyle iStyle, STStyleMask iMask, STFont iFont, double iSize, STLanguage iLanguage, STBaselineFlag iBaseline) |
Sets font-related attributes of the STStyle. More... | |
STStatus | STStyleGetFont (STStyle iStyle, STStyleMask *oMask, STFont *oFont, double *oSize, STLanguage *oLanguage, STBaselineFlag *oBaseline) |
Retrieves font-related attributes from the STStyle object. More... | |
STStatus | STStyleSetScaler (STStyle iStyle, STStyleMask iMask, STScaler iScaler, STHintingMode iHints, STSbitsMode iSbits) |
Sets scaler and its parameters for the STStyle object. More... | |
STStatus | STStyleGetScaler (STStyle iStyle, STStyleMask *oMask, STScaler *oScaler, STHintingMode *oHints, STSbitsMode *oSbits) |
Retrieves scaler and its parameters from the STStyle object. More... | |
STStatus | STStyleSetLayoutEngine (STStyle iStyle, STStyleMask iMask, STLayoutEngine iLayoutEngine) |
XXX NOT FOR THE ARC Sets the layout engine for the style. More... | |
STStatus | STStyleGetLayoutEngine (STStyle iStyle, STStyleMask *oMask, STLayoutEngine *oLayoutEngine) |
XXX NOT FOR THE ARC Retrieves the layout engine of the style. More... | |
STStatus | STStyleScalerControl (STStyle iStyle, void *iToScaler, STSize iToByteCount, void **oFromScaler, STSize *oFromByteCount) |
Scaler ioctl - exchange control information with the scaler. More... | |
STStatus | STStyleSetEffects (STStyle iStyle, STStyleMask iMask, STStyleEffects iStyleEffects, STStrikeThrough iStrikeThrough, STUnderline iUnderline) |
Sets some effects-related attributes for the STStyle object. More... | |
STStatus | STStyleSetOptions (STStyle iStyle, STStyleMask iMask, int iImposeWidth, int iBeforeWithStreamShift, int iAfterWithStreamShift, int iCrossStreamShift, int iHangingInhibitFactor, int iKerningInhibitFactor, int iDecompositionInhibitFactor) |
Sets additional style options. More... | |
STStatus | STStyleGetOptions (STStyle iStyle, STStyleMask *oMask, int *oImposeWidth, int *oBeforeWithStreamShift, int *oAfterWithStreamShift, int *oCrossStreamShift, int *oTracking, int *oHangingInhibitFactor, int *oKerningInhibitFactor, int *oDecompositionInhibitFactor) |
Retrieves additional style options. More... | |
STStatus | STStyleGetEffects (STStyle iStyle, STStyleMask *oMask, STStyleEffects *oStyleEffects, STStrikeThrough *oStrikeThrough, STUnderline *oUnderline) |
Retrieves previously set effects-related attributes. More... | |
STStatus | STStyleResetAttributes (STStyle iStyle, STStyleMask iMask) |
Resets all Style attributes to their default values. More... | |
STStatus | STStyleCopyAttributes (STStyle iToStyle, STStyleMask iMask, STStyle iFromStyle) |
Copies attributes set in the source Style object to the destination Style object. More... | |
STStatus | STStyleOverwriteAttributes (STStyle iToStyle, STStyleMask iMask, STStyle iFromStyle) |
Copies only those attributes from the source style object that are also set in the destination Style object. More... | |
STStatus | STStyleUnderwriteAttributes (STStyle iToStyle, STStyleMask iMask, STStyle iFromStyle) |
Copies only those attributes from the source Style object that are not set in the destination Style object. More... | |
STStatus | STStyleGetBaselines (STStyle iStyle, STBaselineFlag iBaseline, STBaselines *oBaselines) |
Retrieves baselines position for a style. More... | |
STStatus | STStyleGetDesignMetrics (STStyle iStyle, STLineMetrics *oMetrics) |
Retrieves design metrics for the style based on scaled font design metrics. More... | |
STStatus | STStyleSetPrivateData (STStyle iStyle, STPointer iData) |
Sets a client private value into the Style data space. More... | |
STStatus | STStyleGetPrivateData (STStyle iStyle, STPointer *oData) |
Gets the client private value into the Style data space. More... | |
STStatus | STTextNewEmpty (STText *oText, STTypeEnv iEnv) |
Creates a new STText - Text object. More... | |
STStatus | STTextNew (STText *oText, STTypeEnv iEnv, utf16 *iChars, STCharCount iCharCount) |
Creates a new STText and assign text to it. More... | |
STStatus | STTextNewCopy (STText *oText, STText iOldText) |
Duplicates an existing STText. More... | |
STStatus | STTextDispose (STText iText) |
Destroys an existing STText object. More... | |
STStatus | STTextSerialize (STText iText, int iFileDes) |
Writes an XML representation of the STText object environment to the output stream. More... | |
STStatus | STTextDeserialize (STText *oText, int iFileDes) |
Reads a previously serialized STText object from an input stream and creates a new STText object. More... | |
STStatus | STTextClear (STText iText) |
Restores the state of the STText to its initial state - removes all assigned text removes all layout attributes. More... | |
STStatus | STTextSetMetrics (STText iText, STExtLineMetrics *iLineMetrics, STBaselines *iBaselines) |
Sets one or more STText metrics attributes. More... | |
STStatus | STTextGetMetrics (STText iText, STExtLineMetrics **oLineMetrics, STBaselines **oBaselines) |
Retrieves previously set STText metrics attributes. More... | |
STStatus | STTextSetControls (STText iText, STTextMask iMask, STDirection iDirection, STJustification iJustification, STFlushFactor iFlushFactor, STLanguage iLanguage, STFontFallbackPolicy iPolicy, STLayoutOptions iLayoutOptions) |
Sets one or more STText controls. More... | |
STStatus | STTextGetControls (STText iText, STTextMask *oMask, STDirection *oDirection, STJustification *oJustification, STFlushFactor *oFlushFactor, STLanguage *oLanguage, STFontFallbackPolicy *oPolicy, STLayoutOptions *oLayoutOptions) |
Retrieves previously set STText controls. More... | |
STStatus | STTextSetFontFallbacks (STText iText, STCount iFontCount, STFont *iFontArray) |
Specifies a list of fonts for displaying characters missing from fonts set by Style objects for the STText object. More... | |
STStatus | STTextGetFontFallbacks (STText iText, STCount *oFontCount, STFont **oFontArray) |
Returns a list of substitution fonts set for this text layout object. More... | |
STStatus | STTextCopyAttributes (STText iTo, STTextMask iMask, STText iFrom) |
Copies attributes set by STTextSetMetrics() and STTextSetControls() and the font fallback list from one STText to another. More... | |
STStatus | STTextResetAttributes (STText iText, STTextMask iMask) |
Restores default STText attributes. More... | |
STStatus | STTextSetText (STText iText, utf16 *iChars, STCharCount iCharCount) |
Assigns text to an STText object. More... | |
STStatus | STTextGetText (STText iText, utf16 **oChars, STCharCount *oCharCount) |
Retrieves source text information from the STText object. More... | |
STStatus | STTextGetStyledGlyphs (STText iText, STPosition iStartFrom, STCharCount iCharCount, STStyledGlyph **oGlyphs, STCount *oGlyphCount) |
Retrieves an array of styled glyphs that correspond to a range of logical text from a text object. More... | |
STStatus | STLineGetStyledGlyphs (STLine iLine, STPosition iPosition, STCharCount iCharCount, STStyledGlyph **oGlyphs, STCount *oGlyphCount) |
Retrieves an array of styled glyphs that correspond to a range of logical text from a line object. More... | |
STStatus | STTextUpdate (STText iText, STTextChanged iChange, STPosition iTextOffset, STCharCount iTextLength) |
Informs the STText object that the text has been inserted or deleted. More... | |
STStatus | STTextSetStyle (STText iText, STStyle iStyle, STPosition iFirstChar, STCharCount iCharCount) |
Assigns a Style to a sequence of characters of an STText object. More... | |
STStatus | STTextGetStyle (STText iText, STPosition iPosition, STStyle *oStyle, STPosition *oFirstChar, STCharCount *oCharCount) |
Returns a copy of a Style object assigned to character at offset iTextOffset in the STText object. More... | |
STStatus | STTextGetCommonStyle (STText iText, STPosition iPosition, STCharCount iCharCount, STStyle *oStyle) |
Creates a new Style object that represents all common style characteristics of a set of characters in an STText. More... | |
STStatus | STTextAugmentStyle (STText iText, STPosition iPosition, STCharCount iCharCount, STStyle iStyle) |
Attributes in the styles assigned to the iText object from iPosition to iPosition + iCharCount are replaced if present, or added if not, with style attributes set in the iStyle object. More... | |
STStatus | STTextOverwriteStyle (STText iText, STPosition iPosition, STCharCount iCharCount, STStyle iStyle) |
All attributes set in the styles assigned to the iText object from iPosition to iPosition + iCharCount that are also set in the iStyle object are replaced with style attributes from iStyle object. More... | |
STStatus | STTextUnderwriteStyle (STText iText, STPosition iPosition, STCharCount iCharCount, STStyle iStyle) |
All attributes not set in the styles assigned to the iText object from iPosition to iPosition + iCharCount but set in the iStyle object are replaced with style attributes from iStyle object. More... | |
STStatus | STTextFindMissingChars (STText iText, STCount *oSegCount, STPosition **oSegOffset, STCharCount **oSegLength, STFont **oFontArray) |
Finds all text segments that contain missing characters and returns font IDs for the substituted fonts used to render these segments. More... | |
STStatus | STLineNew (STLine *oLine, STText iText, STPosition iPosition, STCharCount iCharCount, STCharCount *oCharCount) |
Creates a new STLine object. More... | |
STStatus | STLineNewForWidth (STLine *oLine, STText iText, STPosition iPosition, double iWidth, STCharCount *oCharCount) |
Creates a new STLine object with as many characters as can fit within the width specified by iWidth. More... | |
STStatus | STLineDispose (STLine iLine) |
STLine destructor. More... | |
STStatus | STLineSerialize (STLine iLine, int iFileDes) |
Writes an XML representation of the STLine object environment to the output stream. More... | |
STStatus | STLineDeserialize (STLine *Line, int iFileDes) |
Reads a previously serialized STLine object from an input stream and creates a new STLine object. More... | |
STStatus | STLineGrow (STLine iLine, STBoolean iAppend, STCharCount iCharCount) |
Adds characters to the beginning or to the end of the line. More... | |
STStatus | STLineShrink (STLine iLine, STBoolean iFromEnd, STCharCount iCharCount) |
Removes characters from the beginning or from the end of the line. More... | |
STStatus | STLineGetPosition (STLine iLine, STPosition *oPosition, STCharCount *oCharCount) |
Queries line position within STText object. More... | |
STStatus | STLineGetDesignMetrics (STLine iLine, STExtLineMetrics *oMetrics) |
Retrieves design metrics for the line based on scaled font design metrics. More... | |
STStatus | STLineSetMetrics (STLine iLine, STExtLineMetrics *iLineMetrics, STBaselines *iBaselines) |
Imposes metrics on a line. More... | |
STStatus | STLineGetMetrics (STLine iLine, STExtLineMetrics **oLineMetrics, STBaselines **oBaselines) |
Queries metrics previously imposed on a line. More... | |
STStatus | STLineMeasureText (STLine iLine, STRectanglePtr oBBox) |
Calculates a typographic bounding rectangle in user space of a line ignoring all imposed metrics and attributes. More... | |
STStatus | STLineMeasureTextImage (STLine iLine, STGraphics iGraphics, STRectanglePtr oBBox) |
Calculates a standard bounding rectangle of a laid-out line of text after all attributes (justification, alignment, etc.) have been applied in user space. More... | |
STStatus | STLineGetGlyphBounds (STLine iLine, STGraphics iGraphics, int iMaxBoundsCount, STBounds iBounds, int *oBoundsCount, STTrapezoidPtr *oBounds) |
Calculates boundaries of glyphs of a final laid-out line in device coordinates. More... | |
STStatus | STLineHitTest (STLine iLine, double iX, double iY, STPosition *oPrimaryOffset, STBoolean *oIsLeading, STPosition *oSecondaryOffset) |
Converts a pair of coordinates to the logical character offset. More... | |
STStatus | STLinePositionToCaret (STLine iLine, STPosition iPosition, STBoolean iIsLeading, STCaret *oStrongCaret, STCaret *oWeakCaret, STBoolean *oSplitCaret) |
Returns one or two carets (strong and weak) for a specified logical character position. More... | |
STStatus | STLineMoveCaret (STLine iLine, STPosition iOffset, STCaretDirection iDirection, STCaretMovement iMovementType, STPosition *oOffset) |
Calculates a new position of the caret. More... | |
STStatus | STLineRender (STLine iLine, STGraphics iDevice) |
Renders text represented by an STLine object on an STRastderDevice. More... | |
STStatus | STLineAddHighlight (STLine iLine, STPosition iCharOffset, STCharCount iCharCount) |
Adds a highlighted region identified by the first character and the number of characters to an STLine object. More... | |
STStatus | STLineRemoveHighlight (STLine iLine, STPosition iCharOffset, STCharCount iCharCount) |
Removes a highlighted region from the text layout. More... | |
STStatus | STLineGetHighlights (STLine iLine, STCount *oRegionCount, STPosition **oCharOffset, STCharCount **oCharCount) |
Queries currently defined highlighted regions. More... | |
STStatus | STGlyphVectorNew (STGlyphVector *oGlyphVector, STTypeEnv iEnv, STStyledGlyph *iSource, STCount iGlyphCount) |
Creates a new glyph vector. More... | |
STStatus | STGlyphVectorNewCopy (STGlyphVector *oGlyphVector, STGlyphVector iOldGlyphVector) |
Creates a copy of a glyph vector. More... | |
STStatus | STGlyphVectorDispose (STGlyphVector iGlyphVector) |
Deallocates a glyph vector. More... | |
STStatus | STGlyphVectorSerialize (STGlyphVector iGlyphVector, int iFileDes) |
Writes an XML representation of a glyph vector to a file stream. More... | |
STStatus | STGlyphVectorDeserialize (STGlyphVector *oGlyphVector, int iFileDes) |
Constructs a glyph vector from its serialized representation. More... | |
STStatus | STGlyphVectorSetGlyphs (STGlyphVector iGlyphVector, STStyledGlyph *iGlyphs, STCount iGlyphCount) |
Assigns styled glyphs to a glyph vector replacing existing styled glyphs. More... | |
STStatus | STGlyphVectorGetGlyphs (STGlyphVector iGlyphVector, STPosition iStartFrom, STCount *ioGlyphCount, STStyledGlyph **oGlyphs) |
Retrieves an array of styled glyphs from a glyph vector. More... | |
STStatus | STGlyphVectorReplaceGlyphs (STGlyphVector iGlyphVector, STPosition iStartFrom, STCount iGlyphCount, STStyledGlyph *iGlyphArray, STCount iGlyphArraySize) |
Replaces some styled glyphs in a glyph vector with new glyphs. More... | |
STStatus | STGlyphVectorAdjustPositions (STGlyphVector iGlyphVector, STPosition iStartFrom, STCount iGlyphCount, STPoint iDelta) |
Adjust X and Y positions of a range of glyphs in a glyph vector by the same amount. More... | |
STStatus | STGlyphVectorMeasure (STGlyphVector iGlyphVector, STPosition iStartFrom, STCount iGlyphCount, STRectangle *oBBox) |
Calculates a typographic bounding rectangle of a range of glyphs of the glyph vector in user space. More... | |
STStatus | STGlyphVectorGetBounds (STGlyphVector iGlyphVector, STPosition iStartFrom, STCount iGlyphCount, STGraphics iGraphics, int iMaxBoundsCount, STBounds iBounds, int *oBoundsCount, STTrapezoidPtr *oBounds) |
Calculates boundaries of a range of glyphs of a glyph vector in device space. More... | |
STStatus | STGlyphVectorRender (STGlyphVector iGlyphVector, STPosition iStartFrom, STCount iGlyphCount, STGraphics iGraphics) |
Renders a range of glyphs of a glyph vector on an output device. More... |