The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.13



Tips ‘n’ Tricks


:: com :: sun :: star :: rendering ::

struct TextHit
This structure contains hit information for XTextLayout.

This structure is used from the XTextLayout interface to transport information regarding hit tests.

OOo 2.0

Elements' Summary
EntryIndex This contains the entry index. 
IsLeadingEdge This member denotes whether the hit was on the leading edge. 
Elements' Details
long EntryIndex;
This contains the entry index.

The entry index is the index of the insertion point in the character sequence. The insertion point denotes positions between the actual characters in the string, and can thus have values ranging from 0 up to the number of characters in the string. Hereby, an index of 0 denotes an insertion position before the first character, and an index containing the number of characters denotes an insertion behind the last character.

boolean IsLeadingEdge;
This member denotes whether the hit was on the leading edge.

Each character is divided in two halves, the leading and the trailing part. The leading edge is the part of the glyph on encounteres first when reading text of the corresponding language (i.e. the leading edge of an Arabic glyph is the right half of it, whereas it is the left half of a Latin character). If the hit was on the leading edge, this member is set to true.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.