fe::LineInfo Struct Reference
[Ferry Core library]

Parameters of a text line segment. More...

List of all members.

Public Attributes

unsigned ascent
unsigned bytes
unsigned firstByteIdx
unsigned height
unsigned idx
unsigned width
unsigned y


Detailed Description

Parameters of a text line segment.

Every text line has one segment at the least.

Text line can have multiple segments. Additional segments can appear as a result of automatic text wrap.
fe::LineInfo for the "qwerty123" text line:
idx= 0;
y= 0;
width= 155;
height= 42;
ascent= 33;
firstByteIdx= 0;
bytes= 9;
LineInfo.png
Two fe::LineInfo-s for two segments of the "qwerty123" text line. The second segment is a result of automatic text wrap.
The first text line segment:
idx= 0;
y= 0;
width= 116;
height= 42;
ascent= 33;
firstByteIdx= 0;
bytes= 6;
The second text line segment:
idx= 1;
y= 42;
width= 39;
height= 24;
ascent= 18;
firstByteIdx= 6;
bytes= 3;
LineInfo-wrapped.png

See also:
fe::IEditorFacade::getLineInfoFromByteIdx()

fe::IEditorFacade::getLineInfoFromY()

fe::IEditorFacade::getLineInfoFromWrappedLine()


Member Data Documentation

Text line segment index. The value is within the [0, breaks] range, where breaks is the number of additional segments the given text line has as a result of automatic text wrap.

unsigned fe::LineInfo::y

Vertical offset of the text line segment's top left corner from the top left corner of the first text line segment of the given text line. Measured in pixels.

Text line segment width. Measured in pixels.

Text line segment height. Measured in pixels.

Text line segment ascent. Measured in pixels.

Text line segment first byte index. The value is relative to the first byte of the given text line.

Text line segment size in bytes.


The documentation for this struct was generated from the following file:

Generated on Tue Nov 18 21:08:23 2008 for Ferry by doxygen 1.5.7.1
http://sourceforge.net