diff options
author | nyamatongwe <unknown> | 2011-06-25 07:58:03 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-25 07:58:03 +1000 |
commit | 640bc7546d4d8ad5228e09ed2d280ea12b0690e9 (patch) | |
tree | 8b0e456078c1db7c0751a9edee6bfbe258a24792 /src/LineMarker.h | |
parent | aa198d68b4f938a20aadfb53267fab87f64a7004 (diff) | |
download | scintilla-mirror-640bc7546d4d8ad5228e09ed2d280ea12b0690e9.tar.gz |
Initial implementation of RGBA images.
Diffstat (limited to 'src/LineMarker.h')
-rw-r--r-- | src/LineMarker.h | 7 |
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); }; |