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,
24  EXITSTATE
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_*/
srchilite::HighlightEvent::type
HighlightEventType type
the type of event
Definition: highlightevent.h:31
srchilite
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
srchilite::HighlightEvent::ENTERSTATE
@ ENTERSTATE
entering a new formatting state
Definition: highlightevent.h:23
srchilite::HighlightEvent::FORMAT
@ FORMAT
a standard formatting event
Definition: highlightevent.h:21
srchilite::HighlightEvent::token
const HighlightToken & token
the token corresponding to the event
Definition: highlightevent.h:28
srchilite::HighlightEvent::HighlightEventType
HighlightEventType
the type of the event
Definition: highlightevent.h:20
srchilite::HighlightEvent::FORMATDEFAULT
@ FORMATDEFAULT
formatting something as normal
Definition: highlightevent.h:22
srchilite::HighlightToken
Token containing information for performing the highlight.
Definition: highlighttoken.h:33
srchilite::HighlightEvent::EXITSTATE
@ EXITSTATE
exiting a formatting state
Definition: highlightevent.h:24
srchilite::HighlightEvent
Event concerning an highlighting operation (e.g., formatting, entering a new state,...
Definition: highlightevent.h:18