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 ColourDesired 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 a complete 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
&other
) {
53 // Defined to avoid pxpm being blindly copied, not as a complete assignment operator
55 markType
= SC_MARK_CIRCLE
;
56 fore
= ColourDesired(0,0,0);
57 back
= ColourDesired(0xff,0xff,0xff);
58 backSelected
= ColourDesired(0xff,0x00,0x00);
59 alpha
= SC_ALPHA_NOALPHA
;
67 void SetXPM(const char *textForm
);
68 void SetXPM(const char *const *linesForm
);
69 void SetRGBAImage(Point sizeRGBAImage
, float scale
, const unsigned char *pixelsRGBAImage
);
70 void Draw(Surface
*surface
, PRectangle
&rc
, Font
&fontForCharacter
, typeOfFold tFold
, int marginStyle
);