Source-highlight Library
highlightevent.h
1 //
2 // Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004-2008
3 //
4 // Copyright: See COPYING file that comes with this distribution
5 //
6 
7 #ifndef HIGHLIGHTEVENT_H_
8 #define HIGHLIGHTEVENT_H_
9 
10 namespace srchilite {
11 
12 struct HighlightToken;
13 
21  FORMAT = 0,
25  };
26 
29 
32 
33  HighlightEvent(const HighlightToken &_token, HighlightEventType _type = FORMAT) :
34  token(_token), type(_type) {
35  }
36  ~HighlightEvent() {
37  }
38 };
39 
40 }
41 
42 #endif /*HIGHLIGHTEVENT_H_*/
exiting a formatting state
Definition: highlightevent.h:24
HighlightEventType type
the type of event
Definition: highlightevent.h:31
formatting something as normal
Definition: highlightevent.h:22
entering a new formatting state
Definition: highlightevent.h:23
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
const HighlightToken & token
the token corresponding to the event
Definition: highlightevent.h:28
Event concerning an highlighting operation (e.g., formatting, entering a new state, exiting a state, etc.)
Definition: highlightevent.h:18
a standard formatting event
Definition: highlightevent.h:21
HighlightEventType
the type of the event
Definition: highlightevent.h:20
Token containing information for performing the highlight.
Definition: highlighttoken.h:33