ardour/libs/gtkmm2ext/gtkmm2ext/cairo_packer.h
Paul Davis 20aeb5af0a move CairoWidget into gtkmm2ext, add CairoPacker, made the time info box use CairoPacker, make the info status "bar" use CairoPacker
git-svn-id: svn://localhost/ardour2/branches/3.0@10933 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-07 13:57:45 +00:00

34 lines
609 B
C++

#ifndef __gtkmm2ext_cairo_packer_h__
#define __gtkmm2ext_cairo_packer_h__
#include <gtkmm/box.h>
class CairoPacker
{
public:
CairoPacker () {}
virtual ~CairoPacker () {}
protected:
virtual void draw_background (Gtk::Widget&, GdkEventExpose*);
};
class CairoHPacker : public CairoPacker, public Gtk::HBox
{
public:
CairoHPacker ();
~CairoHPacker() {}
bool on_expose_event (GdkEventExpose*);
};
class CairoVPacker : public CairoPacker, public Gtk::VBox
{
public:
CairoVPacker ();
~CairoVPacker () {}
bool on_expose_event (GdkEventExpose*);
};
#endif /* __gtkmm2ext_cairo_packer_h__ */