Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4680 right-hear 1
#ifndef __MGTK_PEN_H
2
#define __MGTK_PEN_H
3
 
4
#include
5
 
6
struct GImageData {
7
    int w,h;
8
    unsigned char * data;
9
};
10
 
11
class GPen
12
{
13
public:
14
    GPen(GWidget *);
15
    virtual ~GPen();
16
    void PutPixel(int,int,unsigned long);
17
    void Line(int,int,int,int,unsigned long);
18
    void FillRect(int,int,int,int,unsigned long);
19
    void DrawLines(GPoint *,int nr_point,unsigned long color);
20
    void WriteText(int,int,char *,int,unsigned long);
21
    void Rect(int,int,int,int,unsigned long);
22
    void Rect3d(int x,int y,int w,int h,unsigned long color);
23
    void FillRect2(int,int,int,int,unsigned long);
24
    void Line2(int,int,int,int,unsigned long);
25
    void PutImage(int,int,int,int,char *);
26
    void PutImage(int,int,struct GImageData *);
27
private:
28
    int _dx,_dy;
29
    int _lx,_ly;
30
};
31
 
32
#endif