Blame c++/perspective/src/mainwindow.h

538bb7
#ifndef MAINWINDOW_H
538bb7
#define MAINWINDOW_H
538bb7
538bb7
538bb7
#include <gtkmm window.h=""></gtkmm>
538bb7
538bb7
#include "view.h"
a1942e
#include "surface.h"
a1942e
#include "generator.h"
538bb7
538bb7
538bb7
class MainWindow: public Gtk::Window {
538bb7
public:
a1942e
	Generator generator;
a1942e
538bb7
	View src_view;
538bb7
	View dst_view;
538bb7
	
538bb7
	View::PointPtr
538bb7
		src_rect0, src_rect1,
538bb7
		dst_rect0, dst_rect1, dst_rect2, dst_rect3,
538bb7
		dst_bounds0, dst_bounds1;
538bb7
	
a1942e
	Vector2 view_surface_rect0;
a1942e
	Vector2 view_surface_rect1;
a1942e
	Cairo::RefPtr<cairo::imagesurface> view_surface;</cairo::imagesurface>
a1942e
	
538bb7
	MainWindow();
538bb7
	
538bb7
	Gtk::Widget* generator_demo();
538bb7
	
a1942e
	void update_view_surface();
a1942e
	
538bb7
	void on_point_motion(const View::PointPtr &point);
538bb7
	void on_point_changed(const View::PointPtr &point);
a1942e
	void on_view_transform_changed(View *view);
538bb7
	void on_draw_src_view(const Cairo::RefPtr<cairo::context> &context);</cairo::context>
538bb7
	void on_draw_dst_view(const Cairo::RefPtr<cairo::context> &context);</cairo::context>
538bb7
};
538bb7
538bb7
538bb7
#endif
538bb7