plastimatch
Loading...
Searching...
No Matches
src
base
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
9
class
Xpm_brush_private
;
10
class
Xpm_canvas_private
;
11
12
enum
xpm_brushes
{
XPM_BOX
,
XPM_CIRCLE
};
13
14
class
PLMBASE_API
Xpm_brush
{
15
public
:
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);
35
private
:
36
Xpm_brush_private
*d_ptr;
37
};
38
39
class
PLMBASE_API
Xpm_canvas
{
40
public
:
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);
49
private
:
50
Xpm_canvas_private
*d_ptr;
51
};
52
53
#endif
Xpm_brush_private
Definition
xpm_p.h:21
Xpm_brush
Definition
xpm.h:14
Xpm_canvas_private
Definition
xpm_p.h:9
Xpm_canvas
Definition
xpm.h:39
plmbase_config.h
PLMBASE_API
#define PLMBASE_API
Definition
plmbase_config.h:19
xpm_brushes
xpm_brushes
Definition
xpm.h:12
XPM_BOX
@ XPM_BOX
Definition
xpm.h:12
XPM_CIRCLE
@ XPM_CIRCLE
Definition
xpm.h:12
Generated on Wed Oct 30 2024 14:54:42 for plastimatch by
1.11.0