diff options
author | nyamatongwe <unknown> | 2003-09-08 12:04:15 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-09-08 12:04:15 +0000 |
commit | 2f7faa10dbeb10f3517f4c6a23ed9c38486048b9 (patch) | |
tree | e4a26aef540388476299973ddb770a1a5df7d5c0 /src | |
parent | 30cd4b992a8804bd974d57adad3a318df945f3e9 (diff) | |
download | scintilla-mirror-2f7faa10dbeb10f3517f4c6a23ed9c38486048b9.tar.gz |
Comments and fixes from Philippe.
Diffstat (limited to 'src')
-rw-r--r-- | src/XPM.h | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -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 <neilh@scintilla.org> // 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(); }; |