[P4/git history rebuild] reversion of FastMeter away from CairoWidget. Probably needs reversion in a future merge with Ardour

This commit is contained in:
Valeriy Kamyshniy 2014-05-27 22:57:33 -04:00 committed by Paul Davis
parent 708ec0c3a6
commit 9c715e4926

View file

@ -24,13 +24,14 @@
#include <boost/tuple/tuple.hpp>
#include <boost/tuple/tuple_comparison.hpp>
#include <cairomm/pattern.h>
#include "gtkmm2ext/cairo_widget.h"
#include <gtkmm/drawingarea.h>
#include <gdkmm/pixbuf.h>
#include "gtkmm2ext/visibility.h"
namespace Gtkmm2ext {
class LIBGTKMM2EXT_API FastMeter : public CairoWidget {
class LIBGTKMM2EXT_API FastMeter : public Gtk::DrawingArea {
public:
enum Orientation {
Horizontal,
@ -66,7 +67,7 @@ class LIBGTKMM2EXT_API FastMeter : public CairoWidget {
bool get_highlight () { return highlight; }
protected:
void render (cairo_t *, cairo_rectangle_t*);
bool on_expose_event (GdkEventExpose*);
void on_size_request (GtkRequisition*);
void on_size_allocate (Gtk::Allocation&);
private:
@ -95,12 +96,12 @@ private:
float current_user_level;
bool highlight;
void vertical_expose (cairo_t*, cairo_rectangle_t*);
bool vertical_expose (GdkEventExpose*);
void vertical_size_request (GtkRequisition*);
void vertical_size_allocate (Gtk::Allocation&);
void queue_vertical_redraw (const Glib::RefPtr<Gdk::Window>&, float);
void horizontal_expose (cairo_t*, cairo_rectangle_t*);
bool horizontal_expose (GdkEventExpose*);
void horizontal_size_request (GtkRequisition*);
void horizontal_size_allocate (Gtk::Allocation&);
void queue_horizontal_redraw (const Glib::RefPtr<Gdk::Window>&, float);