Functions |
|
Rt2dObject * | Rt2dObjectStringCreate (const RwChar *textString, const RwChar *font) |
RwBool | Rt2dObjectStringDestroy (Rt2dObject *object) |
Rt2dBrush * | Rt2dObjectStringGetBrush (Rt2dObject *object) |
RwChar * | Rt2dObjectStringGetText (Rt2dObject *object) |
RwChar * | Rt2dObjectStringGetFont (Rt2dObject *object) |
RwReal | Rt2dObjectStringGetHeight (Rt2dObject *object) |
Rt2dObject * | Rt2dObjectStringSetBrush (Rt2dObject *object, Rt2dBrush *) |
Rt2dObject * | Rt2dObjectStringSetText (Rt2dObject *object, const RwChar *text) |
Rt2dObject * | Rt2dObjectStringSetFont (Rt2dObject *object, const RwChar *font) |
Rt2dObject * | Rt2dObjectStringSetHeight (Rt2dObject *object, const RwReal height) |
Rt2dObject * | Rt2dObjectStringRender (Rt2dObject *object) |
Rt2dObject * | Rt2dObjectStringStreamRead (RwStream *stream) |
Rt2dObject * | Rt2dObjectStringStreamWrite (Rt2dObject *object, RwStream *stream) |
RwUInt32 | Rt2dObjectStringStreamGetSize (Rt2dObject *object) |
An object string is an object which contains text. An object string can be saved and added to a scene.
|
Rt2dObjectStringCreate creates a new object string. The font is identified by name, and gets looked up from the font dictionary
|
|
Rt2dObjectStringDestroy Deallocates the provided ObjectString
|
|
Rt2dObjectStringGetBrush Returns the brush owned by the object string
|
|
Rt2dObjectStringGetFont Returns the pointer to the name of the font used by the object string
|
|
Rt2dObjectStringGetHeight Returns the height used to render the object string
|
|
Rt2dObjectStringGetText Returns the pointer to the text of the object string
|
|
Rt2dObjectStringRender Renders a string object. If an object string is part of a scene, the Rt2dSceneRender renders all visible objects.
|
|
Rt2dObjectStringSetBrush Sets the brush used by the object string.
|
|
Rt2dObjectStringSetFont Sets the font used to render the object string.
|
|
Rt2dObjectStringSetHeight Sets the characters height used to render the object string.
|
|
Rt2dObjectStringSetText Sets the text string within the object string.
|
|
Rt2dObjectStringStreamGetSize is used to determine the size in bytes of the binary representation of the given object string. This is used in the binary chunk header to indicate the size of the chunk. The size does include the size of the chunk header.
|
|
Rt2dObjectStringStreamRead Reads an object string from a stream. Note that prior to this function call, a binary shape chunk must be found in the stream using the RwStreamFindChunk API function. The sequence to locate and read an object string from a binary stream is as follows: RwStream *stream; Rt2dObject *new2dObjectString; stream = RwStreamOpen(rwSTREAMFILENAME, rwSTREAMREAD, "mybinary.xxx"); if( stream ) { if( RwStreamFindChunk(stream, rwID_2DOBJECTSTRING, NULL, NULL) ) { new2dObjectString = Rt2dObjectStringStreamRead(stream); } RwStreamClose(stream, NULL); }
|
|
Rt2dObjectStringStreamWrite Writes an object string to a stream. Note that the stream will have been opened prior to this function call.
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |