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 ();
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
xpm_brushes get_type()
Definition xpm.cxx:243
void set_pos(int x, int y)
Definition xpm.cxx:206
int get_x()
Definition xpm.cxx:261
void set_type(xpm_brushes type)
Definition xpm.cxx:194
void set_width(int width)
Definition xpm.cxx:213
int get_height()
Definition xpm.cxx:255
void set_height(int height)
Definition xpm.cxx:219
void set_x(int x)
Definition xpm.cxx:225
void set_y(int y)
Definition xpm.cxx:231
int get_width()
Definition xpm.cxx:249
void set_color(char color)
Definition xpm.cxx:200
void inc_y(int y)
Definition xpm.cxx:279
char get_color()
Definition xpm.cxx:237
Xpm_brush()
Definition xpm.cxx:183
void inc_x(int x)
Definition xpm.cxx:273
int get_y()
Definition xpm.cxx:267
Definition xpm_p.h:9
void write(char *xpm_file)
Definition xpm.cxx:137
void add_color(char color_code, int color)
Definition xpm.cxx:46
int remove_color(char color_code)
Definition xpm.cxx:70
void prime(char color_code)
Definition xpm.cxx:36
int draw(Xpm_brush *brush)
Definition xpm.cxx:102
Xpm_canvas(int width, int height, int cpp)
Definition xpm.cxx:14
#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