From d9ee18e69f2c05da38410637842a39518497018e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 10 Jan 2003 11:13:32 +0000 Subject: Moved XPM code out to XPM file. --- src/LineMarker.h | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/LineMarker.h') diff --git a/src/LineMarker.h b/src/LineMarker.h index c75a31230..50a0331da 100644 --- a/src/LineMarker.h +++ b/src/LineMarker.h @@ -2,33 +2,12 @@ /** @file LineMarker.h ** Defines the look of a line marker in the margin . **/ -// Copyright 1998-2001 by Neil Hodgson +// Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #ifndef LINEMARKER_H #define LINEMARKER_H -class XPM { - int height; - int width; - int nColours; - char *data; - char codeTransparent; - char *codes; - ColourPair *colours; - void Init(const char * const *linesForm); - ColourAllocated ColourFromCode(int ch); - void FillRun(Surface *surface, int code, int startX, int y, int x); -public: - XPM(const char *textForm); - XPM(const char * const *linesForm); - ~XPM(); - // Similar to same named method in ViewStyle: - void RefreshColourPalette(Palette &pal, bool want); - // Decompose image into runs and use FillRectangle for each run: - void Draw(Surface *surface, PRectangle &rc); -}; - /** */ class LineMarker { -- cgit v1.2.3