~ubuntu-branches/ubuntu/natty/geany/natty

« back to all changes in this revision

Viewing changes to scintilla/XPM.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2010-08-07 03:23:12 UTC
  • mfrom: (1.4.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20100807032312-ot70ac9d50cn79we
Tags: upstream-0.19
ImportĀ upstreamĀ versionĀ 0.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        char codeTransparent;
25
25
        char *codes;
26
26
        ColourPair *colours;
27
 
        ColourAllocated ColourFromCode(int ch);
 
27
        ColourAllocated ColourFromCode(int ch) const;
28
28
        void FillRun(Surface *surface, int code, int startX, int y, int x);
29
29
        char **lines;
30
30
        ColourPair *colourCodeTable[256];
31
31
public:
32
32
        XPM(const char *textForm);
33
 
        XPM(const char * const *linesForm);
 
33
        XPM(const char *const *linesForm);
34
34
        ~XPM();
35
35
        void Init(const char *textForm);
36
 
        void Init(const char * const *linesForm);
 
36
        void Init(const char *const *linesForm);
37
37
        void Clear();
38
38
        /// Similar to same named method in ViewStyle:
39
39
        void RefreshColourPalette(Palette &pal, bool want);
43
43
        void Draw(Surface *surface, PRectangle &rc);
44
44
        char **InLinesForm() { return lines; }
45
45
        void SetId(int pid_) { pid = pid_; }
46
 
        int GetId() { return pid; }
47
 
        int GetHeight() { return height; }
48
 
        int GetWidth() { return width; }
 
46
        int GetId() const { return pid; }
 
47
        int GetHeight() const { return height; }
 
48
        int GetWidth() const { return width; }
49
49
        static const char **LinesFormFromTextForm(const char *textForm);
50
50
};
51
51