//		Enclosure.h
//		http://www-acs.ucsd.edu/~jstrout/macdev/panes/
//		last modified: 3/12/99

#ifndef __ENCLOSURE_H
#define __ENCLOSURE_H

#include "Pane.h"
#include "SimpleVector.h"

class Enclosure : public Pane
{
  public:

	Enclosure() : Pane(), mBorder(false), mOwnsSubpanes(true) {};
	~Enclosure();
	virtual void Draw();
	virtual Boolean Click(Point where, short modifiers);
	virtual Boolean HandleKey(char key, char keycode, short modifiers);
	virtual void Idle(short *maxSleep=NULL);

	Boolean			mBorder;		// set to true if a border should be drawn
	Boolean			mOwnsSubpanes;	// if true, destroy subpanes upon own destruction	
	SimpleVector<Pane*>	mSubpanes;		// subpanes, if any
};

#endif
