source: tags/ms_r16q3/WINDOW/aw_Xm.hxx

Last change on this file was 14161, checked in by westram, 9 years ago
  • elim duplicate type name
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1#ifndef AW_XM_HXX
2#define AW_XM_HXX
3
4#ifndef AW_COMMON_XM_HXX
5#include "aw_common_xm.hxx"
6#endif
7
8class AW_device_Xm : public AW_device {
9    bool line_impl(int gc, const AW::LineVector& Line, AW_bitset filteri) OVERRIDE;
10    bool text_impl(int gc, const char *str, const AW::Position& pos, AW_pos alignment, AW_bitset filteri, long opt_strlen) OVERRIDE;
11    bool box_impl(int gc, AW::FillStyle filled, const AW::Rectangle& rect, AW_bitset filteri) OVERRIDE;
12    bool circle_impl(int gc, AW::FillStyle filled, const AW::Position& center, const AW::Vector& radius, AW_bitset filteri) OVERRIDE;
13    bool arc_impl(int gc, AW::FillStyle filled, const AW::Position& center, const AW::Vector& radius, int start_degrees, int arc_degrees, AW_bitset filter) OVERRIDE;
14    bool polygon_impl(int gc, AW::FillStyle filled, int npos, const AW::Position *pos, AW_bitset filteri) OVERRIDE;
15    bool invisible_impl(const AW::Position& pos, AW_bitset filteri) OVERRIDE { return generic_invisible(pos, filteri); }
16
17    void specific_reset() {}
18
19    enum Fill_Style { FS_EMPTY, FS_GREY, FS_SOLID };
20   
21    AW_device_Xm::Fill_Style setFillstyleForGreylevel(int gc, AW::FillStyle filled);
22    void resetFillstyleForGreylevel(int gc);
23
24public:
25    AW_device_Xm(AW_common *commoni)
26        : AW_device(commoni)
27    {}
28
29    AW_common_Xm *get_common() const { return DOWNCAST(AW_common_Xm*, AW_device::get_common()); }
30
31    AW_DEVICE_TYPE type();
32
33    void clear(AW_bitset filteri);
34    void clear_part(const AW::Rectangle& rect, AW_bitset filteri);
35
36    void flush();
37    void move_region(AW_pos src_x, AW_pos src_y, AW_pos width, AW_pos height, AW_pos dest_x, AW_pos dest_y);
38};
39
40#else
41#error aw_Xm.hxx included twice
42#endif
Note: See TracBrowser for help on using the repository browser.