blob: 519720dccf4923f493470fa26d6ec29286bbca82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef __gtkmm2ext_cairo_packer_h__
#define __gtkmm2ext_cairo_packer_h__
#include <gtkmm/box.h>
#include "gtkmm2ext/visibility.h"
class LIBGTKMM2EXT_API CairoPacker
{
public:
CairoPacker () {}
virtual ~CairoPacker () {}
virtual Gdk::Color get_bg () const = 0;
protected:
virtual void draw_background (Gtk::Widget&, GdkEventExpose*);
};
class LIBGTKMM2EXT_API CairoHPacker : public CairoPacker, public Gtk::HBox
{
public:
CairoHPacker ();
~CairoHPacker() {}
Gdk::Color get_bg () const;
bool on_expose_event (GdkEventExpose*);
void on_realize ();
};
class LIBGTKMM2EXT_API 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__ */
|