1 // Scintilla source code edit control
3 ** Defines the look of a line marker in the margin .
5 // Copyright 1998-2011 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
20 enum typeOfFold
{ undefined
, head
, body
, tail
};
25 ColourPair backSelected
;
29 markType
= SC_MARK_CIRCLE
;
30 fore
= ColourDesired(0,0,0);
31 back
= ColourDesired(0xff,0xff,0xff);
32 backSelected
= ColourDesired(0xff,0x00,0x00);
33 alpha
= SC_ALPHA_NOALPHA
;
36 LineMarker(const LineMarker
&) {
37 // Defined to avoid pxpm being blindly copied, not as real copy constructor
38 markType
= SC_MARK_CIRCLE
;
39 fore
= ColourDesired(0,0,0);
40 back
= ColourDesired(0xff,0xff,0xff);
41 backSelected
= ColourDesired(0xff,0x00,0x00);
42 alpha
= SC_ALPHA_NOALPHA
;
48 LineMarker
&operator=(const LineMarker
&) {
49 // Defined to avoid pxpm being blindly copied, not as real assignment operator
50 markType
= SC_MARK_CIRCLE
;
51 fore
= ColourDesired(0,0,0);
52 back
= ColourDesired(0xff,0xff,0xff);
53 backSelected
= ColourDesired(0xff,0x00,0x00);
54 alpha
= SC_ALPHA_NOALPHA
;
59 void RefreshColourPalette(Palette
&pal
, bool want
);
60 void SetXPM(const char *textForm
);
61 void SetXPM(const char *const *linesForm
);
62 void Draw(Surface
*surface
, PRectangle
&rc
, Font
&fontForCharacter
, typeOfFold tFold
);