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.
19 enum typeOfFold
{ undefined
, head
, body
, tail
, headWithTail
};
24 ColourDesired 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
;
37 LineMarker(const LineMarker
&) {
38 // Defined to avoid pxpm being blindly copied, not as a complete copy constructor
39 markType
= SC_MARK_CIRCLE
;
40 fore
= ColourDesired(0,0,0);
41 back
= ColourDesired(0xff,0xff,0xff);
42 backSelected
= ColourDesired(0xff,0x00,0x00);
43 alpha
= SC_ALPHA_NOALPHA
;
51 LineMarker
&operator=(const LineMarker
&other
) {
52 // Defined to avoid pxpm being blindly copied, not as a complete 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
;
66 void SetXPM(const char *textForm
);
67 void SetXPM(const char *const *linesForm
);
68 void SetRGBAImage(Point sizeRGBAImage
, float scale
, const unsigned char *pixelsRGBAImage
);
69 void Draw(Surface
*surface
, PRectangle
&rc
, Font
&fontForCharacter
, typeOfFold tFold
, int marginStyle
) const;