Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Frame.h

00001 /*
00002   File: Frame.h
00003 
00004   Copyright(C) C. Kotterink, Computed Graphics
00005 */
00006 #ifndef FRAME_H
00007 #define FRAME_H
00008 
00009 #include<Region.h>
00010 #include<vector>
00011 
00012 class Widget;
00013 
00032 class Frame : public Region
00033 {
00034     DYNAMIC_OBJECT;
00035 public:
00037     Frame(int i = 0);
00038 
00040     virtual ~Frame();
00041 
00043     void add(Region *region);
00044 
00046     Region *remove(Region *region);
00047 
00049     void enableWidget(int widgetId, bool flag);
00050 
00051     // Inherited from Region
00052     Region *find(int id);
00053     void refresh();
00054     void move(short dx, short dy);
00055     bool handleEvent(Event &event);
00056 
00057     // Inherited from DynamicObject
00058     void parseSymbol(Token &t, ObjectFile &file);
00059     void writeParams(ostream &stream);
00060 
00061 protected:
00063     bool findRegion(Region *region);
00064 
00066     bool bordered;
00067 
00068     // Inherited from DynamicObject
00069     void createSymbols();
00070 
00072     vector<Region*> children;
00073 
00074 private:
00075     typedef Region super;
00076 };
00077 #endif

This documentation was generated using doxygen. If you have any comments or additions please mail me.