Main Page | Class List | File List | Class Members | File Members | Related Pages

frame.h

Go to the documentation of this file.
00001 // $Id$
00002 // the frame class makes a frame around a QRect
00003 // 2005-05-07 rcr
00004 
00005 #ifndef FRAME_H
00006 #define FRAME_H
00007 
00008 #include <qwidget.h>
00009 #include <qframe.h>
00010 #include <qrect.h>
00011 #include <qpalette.h>
00012 
00013 class Frame : public QWidget
00014 {
00015   Q_OBJECT
00016 
00017   int titleHeight, leftWidth, rightWidth, bottomHeight, gripWidth;
00018   QFrame* titleBorder, *leftBorder, *rightBorder, *bottomBorder;
00019   QFrame* leftGrip, *rightGrip;
00020 
00021   void newGeometry();
00022 
00023 public:
00024   Frame( QWidget* parent = NULL, const char* name = NULL );
00025   ~Frame();
00026   void setTitlePalette( QPalette );
00027   void setLeftPalette( QPalette );
00028   void setRightPalette( QPalette );
00029   void setBottomPalette( QPalette );
00030   void setGripPalette( QPalette );
00031 
00032   void setTitleHeight( int );
00033   void setLeftWidth( int n ) { leftWidth = n; newGeometry(); }
00034   void setRightWidth( int n ) { rightWidth = n; newGeometry(); }
00035   void setBottomHeight( int n ) { bottomHeight = n; newGeometry(); }
00036   void setGripWidth( int n ) { gripWidth = n; newGeometry(); }
00037 
00038 };
00039 
00040 #endif // FRAME_H

Go back to rwm - the window manager's - Home page.
created 6 Jun 2005 for rwmconfig 0.2 by Rolf C. Rönnau using doxygen 1.4.2