The FontRuns
class associates pointers to LEFontInstance
objects with runs of text. More...
#include <RunArrays.h>
FontRuns
object from pre-existing arrays of fonts and limit indices. More...
FontRuns
object. More...
LEFontInstance
object associated with the given run of text. More...
LEFontInstance
and limit index pair to the data arrays and return the run index where the data was stored. More...
RunArray
object from a pre-existing array of limit indices. More...
RunArray
object. More...
The FontRuns
class associates pointers to LEFontInstance
objects with runs of text.
Definition at line 272 of file RunArrays.h.
◆ FontRuns() [1/2] icu::FontRuns::FontRuns ( const LEFontInstance ** fonts, const le_int32 * limits, le_int32 count ) inlineConstruct a FontRuns
object from pre-existing arrays of fonts and limit indices.
LEFontInstance
objects. This array, and the LEFontInstance
objects to which it points must remain valid until the FontRuns
object is destroyed. limits is the address of an array of limit indices. This array must remain valid until the FontRuns
object is destroyed. count is the number of entries in the two arrays.
Definition at line 397 of file RunArrays.h.
◆ FontRuns() [2/2] icu::FontRuns::FontRuns ( le_int32 initialCapacity )Construct an empty FontRuns
object.
Clients can add font and limit indices arrays using the add
method.
The destructor; virtual so that subclass destructors are invoked as well.
Add an LEFontInstance
and limit index pair to the data arrays and return the run index where the data was stored.
This method calls RunArray::add(limit)
which will create or grow the arrays as needed.
If the FontRuns
object was created with a client-supplied font and limit indices arrays, this method will return a run index of -1.
Subclasses should not override this method. Rather they should provide a new add
method which takes a font and a limit index along with whatever other data they implement. The new add
method should first call this method to grow the font and limit indices arrays, and use the returned run index to store data their own arrays.
LEFontInstance
to add. This object must remain valid until the FontRuns
object is destroyed. limit is the limit index to add
Get the LEFontInstance
object associated with the given run of text.
Use RunArray::getLimit(run)
to get the corresponding limit index.
LEFontInstance
associated with the given text run.
ICU "poor man's RTTI", returns a UClassID for this class.
Definition at line 357 of file RunArrays.h.
◆ grow() void icu::FontRuns::grow ( le_int32 capacity ) overrideprotectedvirtualGrow a data array to the given initial size.
This method will be called by the add
method if the limit indices array is full. Subclasses which override this method must also call it from the overriding method to grow the limit indices array.
Reimplemented from icu::RunArray.
◆ init() void icu::FontRuns::init ( le_int32 capacity ) overrideprotectedvirtualCreate a data array with the given initial size.
This method will be called by the add
method if there is no limit indices array. Subclasses which override this method must also call it from the overriding method to create the limit indices array.
Reimplemented from icu::RunArray.
The documentation for this class was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4