Debian Codegraph @

wxcrafter/src/xy_pair.h

raw
1 #ifndef XYPAIR_H
2 #define XYPAIR_H
3
4 #include <wx/string.h>
5
6 class XYPair
7 {
8 protected:
9 wxString m_string;
10 int m_x;
11 int m_y;
12
13 public:
14 XYPair(const wxString& str, int defaultx = -1, int defaulty = -1);
15 XYPair(int x, int y);
16 virtual ~XYPair();
17
18 int GetX() const { return m_x; }
19 int GetY() const { return m_y; }
20 wxString ToString(bool withBraces = false) const;
21
22 bool operator>(const XYPair& xy) const;
23 bool operator==(const XYPair& xy) const;
24 bool operator!=(const XYPair& xy) const;
25 };
26
27 #endif // XYPAIR_H