summaryrefslogtreecommitdiffstats
path: root/grapher/CairoWidget.hxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-21 10:46:57 +0100
committerTim Moore <timoore@redhat.com>2009-12-21 10:46:57 +0100
commit32902edf1f17bb62144f21ed38ae085bd2755e9f (patch)
tree7b9c8b185baf80b03e5509cc05ede7cf2f490910 /grapher/CairoWidget.hxx
parent261135850dbd4a2efd7d4cbd3d0e3dcde46688ee (diff)
downloadsystemtap-steved-32902edf1f17bb62144f21ed38ae085bd2755e9f.tar.gz
systemtap-steved-32902edf1f17bb62144f21ed38ae085bd2755e9f.tar.xz
systemtap-steved-32902edf1f17bb62144f21ed38ae085bd2755e9f.zip
change namespace indentation to 0
A silly change, but this works better with other tools, like git diff. I should have started the C++ files this way.
Diffstat (limited to 'grapher/CairoWidget.hxx')
-rw-r--r--grapher/CairoWidget.hxx84
1 files changed, 42 insertions, 42 deletions
diff --git a/grapher/CairoWidget.hxx b/grapher/CairoWidget.hxx
index bcabafb2..32d92cce 100644
--- a/grapher/CairoWidget.hxx
+++ b/grapher/CairoWidget.hxx
@@ -12,51 +12,51 @@
#include <cairomm/context.h>
namespace systemtap
{
- class CairoWidget
+class CairoWidget
+{
+public:
+ CairoWidget(bool visible = false)
+ : _visible(visible)
+ {}
+ bool isVisible() const { return _visible; }
+ void setVisible(bool visible) { _visible = visible; }
+ void getOrigin(double &x, double &y) const
{
- public:
- CairoWidget(bool visible = false)
- : _visible(visible)
- {}
- bool isVisible() const { return _visible; }
- void setVisible(bool visible) { _visible = visible; }
- void getOrigin(double &x, double &y) const
- {
- x = _x0;
- y = _y0;
- }
- void setOrigin(double x, double y)
- {
- _x0 = x;
- _y0 = y;
- }
- virtual void draw(Cairo::RefPtr<Cairo::Context> cr) = 0;
- virtual bool containsPoint(double x, double y) { return false; }
- protected:
- bool _visible;
- double _x0;
- double _y0;
- };
-
- class CairoPlayButton : public CairoWidget
+ x = _x0;
+ y = _y0;
+ }
+ void setOrigin(double x, double y)
{
- public:
- CairoPlayButton(bool visible = false)
- : CairoWidget(visible), _size(50.0), _radius(5)
- {
- }
- virtual void draw(Cairo::RefPtr<Cairo::Context> cr);
- virtual bool containsPoint(double x, double y);
- protected:
- double _size;
- double _radius;
- };
+ _x0 = x;
+ _y0 = y;
+ }
+ virtual void draw(Cairo::RefPtr<Cairo::Context> cr) = 0;
+ virtual bool containsPoint(double x, double y) { return false; }
+protected:
+ bool _visible;
+ double _x0;
+ double _y0;
+};
- class CairoTextBox : public CairoWidget
+class CairoPlayButton : public CairoWidget
+{
+public:
+ CairoPlayButton(bool visible = false)
+ : CairoWidget(visible), _size(50.0), _radius(5)
{
- public:
- void draw(Cairo::RefPtr<Cairo::Context> cr);
- std::string contents;
- };
+ }
+ virtual void draw(Cairo::RefPtr<Cairo::Context> cr);
+ virtual bool containsPoint(double x, double y);
+protected:
+ double _size;
+ double _radius;
+};
+
+class CairoTextBox : public CairoWidget
+{
+public:
+ void draw(Cairo::RefPtr<Cairo::Context> cr);
+ std::string contents;
+};
}
#endif