]> git.saurik.com Git - wxWidgets.git/blob - src/motif/mdi/lib/XsComponent.h
fix for wxUSE_IOSTREAMH
[wxWidgets.git] / src / motif / mdi / lib / XsComponent.h
1 /*
2 Copyright (C) 1996 Scott W. Sadler
3 All rights reserved.
4 */
5
6 /*
7 XsComponent.h
8
9 History
10 03-Mar-96 1.0; Scott W. Sadler (sws@iti-oh.com)
11 Created
12 */
13
14 #ifndef XSCOMPONENT_H
15 #define XSCOMPONENT_H
16
17 // Includes
18
19 #include <X11/Intrinsic.h>
20
21 // XsComponent class
22
23 class XsComponent {
24
25 public:
26
27 // Destructor
28
29 virtual ~XsComponent ( );
30
31 // Component manipulation
32
33 virtual void show ( ); // Show the component
34 virtual void hide ( ); // Hide the component
35
36 // Added JACS 19/10/98
37 inline Widget GetBase() const { return _base; }
38
39 // Component name
40
41 const char *name ( ) const;
42
43 // Utilities
44
45 Widget base ( ) const;
46 virtual operator Widget ( ) const;
47
48 // Operators
49
50 Boolean operator == (const XsComponent&);
51
52 // Class name
53
54 virtual const char *className ( ) const;
55
56 protected:
57
58 // Protected constructor
59
60 XsComponent (const char *name);
61
62 // Component life-cycle
63
64 virtual void _componentDestroyed ( );
65 void _installDestroyHandler ( );
66 void _removeDestroyHandler ( );
67
68 // Resource manager
69
70 void _setResources (Widget w, const String *);
71 void _getResources (const XtResourceList, int);
72
73 // Implementation
74
75 char *_name; // Component name
76 Widget _base; // Base widget
77
78 private:
79
80 // Callbacks
81
82 static void _componentDestroyedCallback (Widget, XtPointer, XtPointer);
83 };
84
85 // Inline member functions
86
87 inline Widget XsComponent::base ( ) const
88 {
89 return (_base);
90 }
91
92 inline const char* XsComponent::name ( ) const
93 {
94 return (_name);
95 }
96
97 #endif
98