]>
Commit | Line | Data |
---|---|---|
9ce192d4 | 1 | // Scintilla source code edit control |
65ec6247 RD |
2 | /** @file LineMarker.h |
3 | ** Defines the look of a line marker in the margin . | |
4 | **/ | |
9e730a78 | 5 | // Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org> |
9ce192d4 RD |
6 | // The License.txt file describes the conditions under which this software may be distributed. |
7 | ||
8 | #ifndef LINEMARKER_H | |
9 | #define LINEMARKER_H | |
10 | ||
65ec6247 RD |
11 | /** |
12 | */ | |
9ce192d4 RD |
13 | class LineMarker { |
14 | public: | |
15 | int markType; | |
16 | ColourPair fore; | |
17 | ColourPair back; | |
b8193d80 | 18 | int alpha; |
9e730a78 | 19 | XPM *pxpm; |
9ce192d4 RD |
20 | LineMarker() { |
21 | markType = SC_MARK_CIRCLE; | |
1a2fb4cd RD |
22 | fore = ColourDesired(0,0,0); |
23 | back = ColourDesired(0xff,0xff,0xff); | |
b8193d80 | 24 | alpha = SC_ALPHA_NOALPHA; |
9e730a78 | 25 | pxpm = NULL; |
9ce192d4 | 26 | } |
9e730a78 RD |
27 | LineMarker(const LineMarker &) { |
28 | // Defined to avoid pxpm being blindly copied, not as real copy constructor | |
29 | markType = SC_MARK_CIRCLE; | |
30 | fore = ColourDesired(0,0,0); | |
31 | back = ColourDesired(0xff,0xff,0xff); | |
b8193d80 | 32 | alpha = SC_ALPHA_NOALPHA; |
9e730a78 RD |
33 | pxpm = NULL; |
34 | } | |
35 | ~LineMarker() { | |
36 | delete pxpm; | |
37 | } | |
38 | LineMarker &operator=(const LineMarker &) { | |
39 | // Defined to avoid pxpm being blindly copied, not as real assignment operator | |
40 | markType = SC_MARK_CIRCLE; | |
41 | fore = ColourDesired(0,0,0); | |
42 | back = ColourDesired(0xff,0xff,0xff); | |
b8193d80 | 43 | alpha = SC_ALPHA_NOALPHA; |
9e730a78 RD |
44 | delete pxpm; |
45 | pxpm = NULL; | |
46 | return *this; | |
47 | } | |
48 | void RefreshColourPalette(Palette &pal, bool want); | |
49 | void SetXPM(const char *textForm); | |
50 | void SetXPM(const char * const *linesForm); | |
b8b0e402 | 51 | void Draw(Surface *surface, PRectangle &rc, Font &fontForCharacter); |
9ce192d4 RD |
52 | }; |
53 | ||
54 | #endif |