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