]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: gdiobj.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
5 | // Created: 01/02/97 | |
6 | // Id: | |
7 | // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | ||
12 | #ifndef __GDIOBJH__ | |
13 | #define __GDIOBJH__ | |
14 | ||
15 | #include "wx/object.h" | |
16 | ||
17 | #ifdef __GNUG__ | |
18 | #pragma interface | |
19 | #endif | |
20 | ||
21 | class WXDLLEXPORT wxGDIObject: public wxObject | |
22 | { | |
23 | DECLARE_DYNAMIC_CLASS(wxGDIObject) | |
24 | public: | |
25 | inline wxGDIObject(void) { m_visible = FALSE; }; | |
26 | inline ~wxGDIObject(void) {}; | |
27 | ||
28 | virtual bool GetVisible(void) { return m_visible; } | |
29 | virtual void SetVisible(bool v) { m_visible = v; } | |
30 | ||
31 | protected: | |
32 | bool m_visible; // Can a pointer to this object be safely taken? | |
33 | // - only if created within FindOrCreate... | |
34 | }; | |
35 | ||
36 | #endif | |
37 | // __GDIOBJH__ |