StateCacheElem Class Reference

[Action.h Index] [Action.h Hierarchy]


Internal class for StateCache More...

#include <StateCache.h>

Public Members

Protected Members


Detailed Description

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.


StateCacheElem(int state, int afterState, int pos, int len)

Constructs an element and sets its data members to the actual parameter values.

int state()

Retrieves the state of a element to be drawn on the screen.

int afterState()

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.

int pos()

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).

int len()

Returns the length of the element (in chars).


  • Author: Michael Riedel
  • Documentation generated by root@QBERT1 on Fri Jul 17 18:57:31 MEST 1998
Kdoc