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