plastimatch
Loading...
Searching...
No Matches
xpm.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _xpm_h_
5#define _xpm_h_
6
7#include "plmbase_config.h"
8
11
13
15public:
16 Xpm_brush ();
17 ~Xpm_brush ();
18 void set_type (xpm_brushes type);
19 void set_color (char color);
20 void set_pos (int x, int y);
21 void set_width (int width);
22 void set_height (int height);
23 void set_x (int x);
24 void set_y (int y);
25
26 char get_color ();
27 xpm_brushes get_type ();
28 int get_width ();
29 int get_height ();
30 int get_x ();
31 int get_y ();
32
33 void inc_x (int x);
34 void inc_y (int y);
35private:
36 Xpm_brush_private *d_ptr;
37};
38
40public:
41 Xpm_canvas (int width, int height, int cpp);
42 ~Xpm_canvas ();
43
44 void add_color (char color_code, int color);
45 int draw (Xpm_brush* brush);
46 void prime (char color_code);
47 int remove_color (char color_code);
48 void write (char* xpm_file);
49private:
50 Xpm_canvas_private *d_ptr;
51};
52
53#endif
Definition xpm_p.h:21
Definition xpm.h:14
Definition xpm_p.h:9
Definition xpm.h:39
#define PLMBASE_API
Definition plmbase_config.h:19
xpm_brushes
Definition xpm.h:12
@ XPM_BOX
Definition xpm.h:12
@ XPM_CIRCLE
Definition xpm.h:12