summaryrefslogtreecommitdiffstats
path: root/ktuberling/todraw.h
blob: a2753da39326fabf53da3871451a44704d45c934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* -------------------------------------------------------------
   KDE Tuberling
   Object to draw on the game board
   mailto:e.bischoff@noos.fr
 ------------------------------------------------------------- */


#ifndef _TODRAW_H_
#define _TODRAW_H_

#include <tqrect.h>

#include <stdio.h>

class ToDraw
{
  public:
    ToDraw();
    ToDraw(const ToDraw &);
    ToDraw(int, const TQRect &);
    ToDraw &operator=(const ToDraw &);
    void draw(TQPainter &, const TQRect &, const TQRect *, const TQPixmap *, const TQBitmap *) const;
    void save(FILE *) const;
    bool load(FILE *, int, bool &);

    inline int getNumber() const { return number; }
    inline void setNumber(int newValue) { number = newValue; }
    inline const TQRect &getPosition() const { return position; }

  private:
    int number;
    TQRect position;
};

#endif