aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LineMarker.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-06-25 07:58:03 +1000
committernyamatongwe <devnull@localhost>2011-06-25 07:58:03 +1000
commita35215c303f35e22892193728026b408d083a665 (patch)
tree388603057382fa1d784e6fee72e88ba80f5e03a3 /src/LineMarker.h
parent85dc0204832948824579888601f33c7894b5dd50 (diff)
downloadscintilla-mirror-a35215c303f35e22892193728026b408d083a665.tar.gz
Initial implementation of RGBA images.
Diffstat (limited to 'src/LineMarker.h')
-rw-r--r--src/LineMarker.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/LineMarker.h b/src/LineMarker.h
index 39c38fa41..722c44b62 100644
--- a/src/LineMarker.h
+++ b/src/LineMarker.h
@@ -25,6 +25,7 @@ public:
ColourPair backSelected;
int alpha;
XPM *pxpm;
+ RGBAImage *image;
LineMarker() {
markType = SC_MARK_CIRCLE;
fore = ColourDesired(0,0,0);
@@ -32,6 +33,7 @@ public:
backSelected = ColourDesired(0xff,0x00,0x00);
alpha = SC_ALPHA_NOALPHA;
pxpm = NULL;
+ image = NULL;
}
LineMarker(const LineMarker &) {
// Defined to avoid pxpm being blindly copied, not as real copy constructor
@@ -41,9 +43,11 @@ public:
backSelected = ColourDesired(0xff,0x00,0x00);
alpha = SC_ALPHA_NOALPHA;
pxpm = NULL;
+ image = NULL;
}
~LineMarker() {
delete pxpm;
+ delete image;
}
LineMarker &operator=(const LineMarker &) {
// Defined to avoid pxpm being blindly copied, not as real assignment operator
@@ -54,11 +58,14 @@ public:
alpha = SC_ALPHA_NOALPHA;
delete pxpm;
pxpm = NULL;
+ delete image;
+ image = NULL;
return *this;
}
void RefreshColourPalette(Palette &pal, bool want);
void SetXPM(const char *textForm);
void SetXPM(const char *const *linesForm);
+ void SetRGBAImage(Point sizeRGBAImage, const unsigned char *pixelsRGBAImage);
void Draw(Surface *surface, PRectangle &rc, Font &fontForCharacter, typeOfFold tFold);
};