1 #ifndef __CONTAINER_H__
2 #define __CONTAINER_H__
7 class Container: public Object
11 Container(Vector, Object * p = 0);
12 Container(const Container &);
15 Container & operator=(const Container &);
16 virtual void Draw(Painter *);
17 virtual Vector Center(void);
18 virtual bool Collided(Vector);
19 virtual void PointerMoved(Vector);
20 virtual void PointerReleased(void);
21 virtual bool NeedsUpdate(void);
22 virtual void Add(Object *);
23 virtual void Enumerate(FILE *);
24 void Delete(Object *);
25 void DeleteSelectedItems(void);
28 void DeselectAll(void);
29 int ItemsSelected(void);
30 Object * SelectedItem(unsigned int);
31 void MoveContentsTo(Container *);
32 void MoveSelectedContentsTo(Container *);
35 Vector oldPoint; // Used for dragging
38 std::vector<Object *> objects;
39 bool isTopLevelContainer;
44 bool objectWasDragged;
47 #endif // __CONTAINER_H__