13
0
livetrax/libs/gtkmm2ext/gtkmm2ext/cairo_packer.h
Paul Davis a57f4ead2d make Cairo{HV}Packer fetch bg information from a style file, rather than hard-code it
git-svn-id: svn://localhost/ardour2/branches/3.0@13433 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-11-11 16:03:37 +00:00

43 lines
788 B
C++

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