[Action.h Index] [Action.h Hierarchy]
Internal class for StateCache More...
#include <StateCache.h>
This class represents an element in the state cache. it describes its position (in a line) and its length; furthermore the state (font index, see
this class is used by @ref StateCacheLineElem.
Constructs an element and sets its data members to the actual parameter values.
Retrieves the state of a element to be drawn on the screen.
Retrieves the state following the element; this is *not* the state of the following element, since there may be (and surely are) portions of text, that are not part of any element. The state of such an element is the afterState() of the preceeding element, or the state 0, if there is no preceeding element.
Returns the character position of the element. Since elements are saved in a list of instances of StateCacheLineElem there is no need to save the row here; merely the column is saved (and returned).
Returns the length of the element (in chars).
| Kdoc |