Fawkes API  Fawkes Development Version
gvplugin_skillgui_cairo.h
1 
2 /***************************************************************************
3  * gvplugin_skillgui_cairo.h - Graphviz plugin for Skill GUI
4  *
5  * Created: Fri Dec 19 12:01:03 2008
6  * Copyright 2008-2009 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Library General Public License for more details.
19  *
20  * Read the full text in the LICENSE.GPL file in the doc directory.
21  */
22 
23 #ifndef _TOOLS_SKILLGUI_GVPLUGIN_SKILLGUI_CAIRO_H_
24 #define _TOOLS_SKILLGUI_GVPLUGIN_SKILLGUI_CAIRO_H_
25 
26 #include <cairomm/cairomm.h>
27 
28 #include <gvc.h>
29 
31 {
32 public:
33  /** Empty virtual destructor. */
35  {
36  }
37 
38  virtual Cairo::RefPtr<Cairo::Context> get_cairo() = 0;
39 
40  virtual bool scale_override() = 0;
41  virtual void get_dimensions(double &width, double &height) = 0;
42  virtual double get_scale() = 0;
43  virtual void set_scale(double scale) = 0;
44  virtual void get_translation(double &tx, double &ty) = 0;
45  virtual void set_translation(double tx, double ty) = 0;
46  virtual void set_bb(double bbw, double bbh) = 0;
47  virtual void set_pad(double pad_x, double pad_y) = 0;
48  virtual void get_pad(double &pad_x, double &pad_y) = 0;
49 };
50 
51 extern void gvplugin_skillgui_cairo_setup(GVC_t *gvc, SkillGuiCairoRenderInstructor *sgcri);
52 
53 #endif
SkillGuiCairoRenderInstructor::set_pad
virtual void set_pad(double pad_x, double pad_y)=0
SkillGuiCairoRenderInstructor::set_translation
virtual void set_translation(double tx, double ty)=0
SkillGuiCairoRenderInstructor::set_scale
virtual void set_scale(double scale)=0
SkillGuiCairoRenderInstructor::get_dimensions
virtual void get_dimensions(double &width, double &height)=0
SkillGuiCairoRenderInstructor::~SkillGuiCairoRenderInstructor
virtual ~SkillGuiCairoRenderInstructor()
Empty virtual destructor.
Definition: gvplugin_skillgui_cairo.h:40
SkillGuiCairoRenderInstructor::get_scale
virtual double get_scale()=0
SkillGuiCairoRenderInstructor::get_pad
virtual void get_pad(double &pad_x, double &pad_y)=0
SkillGuiCairoRenderInstructor::get_cairo
virtual Cairo::RefPtr< Cairo::Context > get_cairo()=0
SkillGuiCairoRenderInstructor
Definition: gvplugin_skillgui_cairo.h:30
SkillGuiCairoRenderInstructor::set_bb
virtual void set_bb(double bbw, double bbh)=0
SkillGuiCairoRenderInstructor::get_translation
virtual void get_translation(double &tx, double &ty)=0
SkillGuiCairoRenderInstructor::scale_override
virtual bool scale_override()=0