source: tags/arb_5.0/WINDOW/aw_print.hxx

Last change on this file was 5901, checked in by westram, 15 years ago
  • AW_BOOL → bool
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1#ifndef AW_PRINT_HXX
2#define AW_PRINT_HXX
3
4
5class AW_device_print: public AW_device {
6    FILE       *out;
7public:
8    // ********* real public
9    AW_device_print(AW_common *commoni);
10    void        init(void);
11    const char *open(const char *path);
12    void        close(void);
13    bool        color_mode;
14
15    FILE *get_FILE() { return out; }
16
17    // AW_device interface :
18
19    AW_DEVICE_TYPE type(void);
20
21    int line(int gc, AW_pos x0,AW_pos y0, AW_pos x1,AW_pos y1, AW_bitset filter, AW_CL cd1, AW_CL cd2);
22    int text(int gc, const char *string,AW_pos x,AW_pos y, AW_pos alignment, AW_bitset filteri, AW_CL cd1, AW_CL cd2,long opt_strlen);
23    int box(int gc, bool filled, AW_pos x0,AW_pos y0,AW_pos width,AW_pos heigth, AW_bitset filter, AW_CL cd1, AW_CL cd2);
24    int circle(int gc, bool filled, AW_pos x0,AW_pos y0,AW_pos width,AW_pos heigth, AW_bitset filter, AW_CL cd1, AW_CL cd2);
25    int filled_area(int gc, int npoints, AW_pos *points, AW_bitset filteri, AW_CL cd1, AW_CL cd2);
26    int find_color_idx(unsigned long color);
27    void set_color_mode(bool mode);
28
29    int arc(int gc, bool filled, AW_pos x0,AW_pos y0,AW_pos width,AW_pos heigth, int start_degrees, int arc_degrees, AW_bitset filteri, AW_CL cd1, AW_CL cd2) {
30        return generic_arc(gc, filled, x0, y0, width, heigth, start_degrees, arc_degrees, filteri, cd1, cd2);
31    }
32};
33
34#else
35#error aw_print.hxx included twice
36#endif
Note: See TracBrowser for help on using the repository browser.