wmcube: imported Upstream version 0.99-pre1
[dockapps.git] / wmcube / wmapp / wmellipse.h
blobb26000e03382afe292d45f99fe462209c357fe71
1 #include "wmwidget.h"
3 #ifndef _WMELLIPSE_H
4 #define _WMELLIPSE_H
6 // WMEllipse: Widgets inherited from this class will be displayed within an
7 // elliptical border. Simply inherit from WMEllipse and the desired widget.
8 // Note: In order to get a circle, you must make the widget's width the same
9 // as its height, for example by placing it inside a WMFrame with padding.
10 class WMEllipse : public virtual WMWidget {
11 protected:
12 virtual void draw_border(Color c1, Color c2, int nsteps);
13 virtual void draw_border();
15 public:
16 bool contains(int x, int y) const;
18 virtual ~WMEllipse() { }
21 #endif