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
, headWithTail
};
25 ColourPair backSelected
;
30 markType
= SC_MARK_CIRCLE
;
31 fore
= ColourDesired(0,0,0);
32 back
= ColourDesired(0xff,0xff,0xff);
33 backSelected
= ColourDesired(0xff,0x00,0x00);
34 alpha
= SC_ALPHA_NOALPHA
;
38 LineMarker(const LineMarker
&) {
39 // Defined to avoid pxpm being blindly copied, not as real copy constructor
40 markType
= SC_MARK_CIRCLE
;
41 fore
= ColourDesired(0,0,0);
42 back
= ColourDesired(0xff,0xff,0xff);
43 backSelected
= ColourDesired(0xff,0x00,0x00);
44 alpha
= SC_ALPHA_NOALPHA
;
52 LineMarker
&operator=(const LineMarker
&) {
53 // Defined to avoid pxpm being blindly copied, not as real assignment operator
54 markType
= SC_MARK_CIRCLE
;
55 fore
= ColourDesired(0,0,0);
56 back
= ColourDesired(0xff,0xff,0xff);
57 backSelected
= ColourDesired(0xff,0x00,0x00);
58 alpha
= SC_ALPHA_NOALPHA
;
65 void RefreshColourPalette(Palette
&pal
, bool want
);
66 void SetXPM(const char *textForm
);
67 void SetXPM(const char *const *linesForm
);
68 void SetRGBAImage(Point sizeRGBAImage
, const unsigned char *pixelsRGBAImage
);
69 void Draw(Surface
*surface
, PRectangle
&rc
, Font
&fontForCharacter
, typeOfFold tFold
);