~ubuntu-branches/ubuntu/warty/xplanet/warty

« back to all changes in this revision

Viewing changes to src/libannotate/Icon.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:14:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040824071400-2dr4qnjbjmm8z3ia
Tags: 1.0.6-1ubuntu1
Build-depend: libtiff4-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ICON_H
 
2
#define ICON_H
 
3
 
 
4
#include <string>
 
5
 
 
6
#include "Annotation.h"
 
7
 
 
8
class Image;
 
9
 
 
10
class Icon : public Annotation
 
11
{
 
12
 public:
 
13
    Icon(const int x, const int y, const std::string &filename, 
 
14
         const unsigned char *transparent);
 
15
 
 
16
    virtual ~Icon();
 
17
 
 
18
    virtual void Shift(const int x) { x_ += x; };
 
19
    virtual void Draw(DisplayBase *display);
 
20
 
 
21
 private:
 
22
 
 
23
    int x_;
 
24
    const int y_;
 
25
    std::string filename_;
 
26
    Image *image_;
 
27
    unsigned char *transparent_;
 
28
};
 
29
 
 
30
#endif