]>
git.saurik.com Git - wxWidgets.git/blob - src/motif/mdi/lib/XsMDICanvas.h
2 Copyright (C) 1996 Scott W. Sadler
10 03-Mar-96 1.0; Scott W. Sadler (ssadler@cisco.com)
19 #include "XsComponent.h"
21 // Forward declarations
27 class XsMDICanvas
: public XsComponent
{
31 // Constructor/Destructor
33 XsMDICanvas (const char *name
, Widget parent
);
34 virtual ~XsMDICanvas ( );
36 // MDI Window manipulation
38 virtual void add (XsMDIWindow
*win
); // Add an MDI window
39 virtual void remove (XsMDIWindow
*win
); // Remove an MDI window
40 void removeAll ( ); // Remove all MDI windows
44 int numWindows ( ) const; // Number of MDI windows
45 Widget
GetDrawingArea() const { return _drawArea
; }
49 virtual void show ( );
53 virtual const char *className ( ) const;
57 // Component life-cycle
59 virtual void _componentDestroyed ( );
61 // Geometry management
63 virtual void _placeWindow (XsMDIWindow
*win
);
65 // Canvas resize handler
67 virtual void _resize (XtPointer
);
83 static void _clipResizeCallback (Widget
, XtPointer
, XtPointer
);
84 static void _canvasResizeCallback (Widget
, XtPointer
, XtPointer
);
88 static String _resources
[];
91 // Inline member functions
93 inline XsMDICanvas::numWindows ( ) const