From 2f7faa10dbeb10f3517f4c6a23ed9c38486048b9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 8 Sep 2003 12:04:15 +0000 Subject: Comments and fixes from Philippe. --- src/XPM.h | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/XPM.h b/src/XPM.h index 948e557a9..4d3da28d3 100644 --- a/src/XPM.h +++ b/src/XPM.h @@ -1,6 +1,6 @@ // Scintilla source code edit control /** @file XPM.h - ** Define a class that holds data in the X Pixmap (XPM) format, + ** Define a class that holds data in the X Pixmap (XPM) format. **/ // Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. @@ -31,11 +31,11 @@ public: void Init(const char *textForm); void Init(const char * const *linesForm); void Clear(); - // Similar to same named method in ViewStyle: + /// Similar to same named method in ViewStyle: void RefreshColourPalette(Palette &pal, bool want); - // No palette used, so just copy the desired colours to the allocated colours: + /// No palette used, so just copy the desired colours to the allocated colours void CopyDesiredColours(); - // Decompose image into runs and use FillRectangle for each run: + /// Decompose image into runs and use FillRectangle for each run void Draw(Surface *surface, PRectangle &rc); char **InLinesForm() { return lines; } void SetId(int id_) { id = id_; } @@ -49,18 +49,23 @@ public: * A collection of pixmaps indexed by integer id. */ class XPMSet { - XPM **set; - int len; - int maximum; - int height; - int width; + XPM **set; ///< The stored XPMs. + int len; ///< Current number of XPMs. + int maximum; ///< Current maximum number of XPMs, increased by steps if reached. + int height; ///< Memorize largest height of the set. + int width; ///< Memorize largest width of the set. public: XPMSet(); ~XPMSet(); + /// Remove all XPMs. void Clear(); + /// Add a XPM. void Add(int id, const char *textForm); + /// Get XPM by id. XPM *Get(int id); + /// Give the largest height of the set. int GetHeight(); + /// Give the largest width of the set. int GetWidth(); }; -- cgit v1.2.3