diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-10-31 17:17:15 +0000 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-10-31 17:17:15 +0000 |
commit | 88a9de8737ca5a2ba239d49e072660fc9c89ab25 (patch) | |
tree | b64f81588eafd28926ffc632c01f6b3c246e218d /scintilla/src/LineMarker.h | |
parent | e5eb2fe35699c79bef11a870fd4c111c040fc22c (diff) | |
download | notepad2-mod-88a9de8737ca5a2ba239d49e072660fc9c89ab25.zip notepad2-mod-88a9de8737ca5a2ba239d49e072660fc9c89ab25.tar.gz notepad2-mod-88a9de8737ca5a2ba239d49e072660fc9c89ab25.tar.bz2 |
add scintilla v2.12 in the svn
git-svn-id: https://notepad2-mod.googlecode.com/svn/trunk@3 28bd50df-7adb-d945-0439-6e466c6a13cc
Diffstat (limited to 'scintilla/src/LineMarker.h')
-rw-r--r-- | scintilla/src/LineMarker.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/scintilla/src/LineMarker.h b/scintilla/src/LineMarker.h new file mode 100644 index 0000000..fa0f29f --- /dev/null +++ b/scintilla/src/LineMarker.h @@ -0,0 +1,62 @@ +// Scintilla source code edit control
+/** @file LineMarker.h
+ ** Defines the look of a line marker in the margin .
+ **/
+// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
+// The License.txt file describes the conditions under which this software may be distributed.
+
+#ifndef LINEMARKER_H
+#define LINEMARKER_H
+
+#ifdef SCI_NAMESPACE
+namespace Scintilla {
+#endif
+
+/**
+ */
+class LineMarker {
+public:
+ int markType;
+ ColourPair fore;
+ ColourPair back;
+ int alpha;
+ XPM *pxpm;
+ LineMarker() {
+ markType = SC_MARK_CIRCLE;
+ fore = ColourDesired(0,0,0);
+ back = ColourDesired(0xff,0xff,0xff);
+ alpha = SC_ALPHA_NOALPHA;
+ pxpm = NULL;
+ }
+ LineMarker(const LineMarker &) {
+ // Defined to avoid pxpm being blindly copied, not as real copy constructor
+ markType = SC_MARK_CIRCLE;
+ fore = ColourDesired(0,0,0);
+ back = ColourDesired(0xff,0xff,0xff);
+ alpha = SC_ALPHA_NOALPHA;
+ pxpm = NULL;
+ }
+ ~LineMarker() {
+ delete pxpm;
+ }
+ LineMarker &operator=(const LineMarker &) {
+ // Defined to avoid pxpm being blindly copied, not as real assignment operator
+ markType = SC_MARK_CIRCLE;
+ fore = ColourDesired(0,0,0);
+ back = ColourDesired(0xff,0xff,0xff);
+ alpha = SC_ALPHA_NOALPHA;
+ delete pxpm;
+ pxpm = NULL;
+ return *this;
+ }
+ void RefreshColourPalette(Palette &pal, bool want);
+ void SetXPM(const char *textForm);
+ void SetXPM(const char *const *linesForm);
+ void Draw(Surface *surface, PRectangle &rc, Font &fontForCharacter);
+};
+
+#ifdef SCI_NAMESPACE
+}
+#endif
+
+#endif
|