]>
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 | |
c801d85f KB |
7 | // Licence: wxWindows licence |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | ||
11 | #ifndef __GDIOBJH__ | |
12 | #define __GDIOBJH__ | |
13 | ||
14 | #include "wx/object.h" | |
15 | ||
12028905 | 16 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
c801d85f KB |
17 | #pragma interface |
18 | #endif | |
19 | ||
36b3b54a | 20 | class wxGDIObject : public wxObject |
c801d85f | 21 | { |
36b3b54a | 22 | public: |
20e05ffb RR |
23 | inline wxGDIObject() { m_visible = FALSE; }; |
24 | inline ~wxGDIObject() {} | |
36b3b54a | 25 | |
20e05ffb RR |
26 | virtual bool GetVisible() { return m_visible; } |
27 | virtual void SetVisible( bool visible ) { m_visible = visible; } | |
c801d85f | 28 | |
e1208c31 RR |
29 | bool IsNull() const { return (m_refData == 0); } |
30 | ||
c801d85f | 31 | protected: |
20e05ffb RR |
32 | bool m_visible; /* can a pointer to this object be safely taken? |
33 | * - only if created within FindOrCreate... */ | |
34 | private: | |
35 | DECLARE_DYNAMIC_CLASS(wxGDIObject) | |
c801d85f KB |
36 | }; |
37 | ||
38 | #endif | |
39 | // __GDIOBJH__ |