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 #include <gvc.h>
28 
30 {
31  public:
32  /** Empty virtual destructor. */
34 
35  virtual Cairo::RefPtr<Cairo::Context> get_cairo() = 0;
36 
37  virtual bool scale_override() = 0;
38  virtual void get_dimensions(double &width, double &height) = 0;
39  virtual double get_scale() = 0;
40  virtual void set_scale(double scale) = 0;
41  virtual void get_translation(double &tx, double &ty) = 0;
42  virtual void set_translation(double tx, double ty) = 0;
43  virtual void set_bb(double bbw, double bbh) = 0;
44  virtual void set_pad(double pad_x, double pad_y) = 0;
45  virtual void get_pad(double &pad_x, double &pad_y) = 0;
46 
47 };
48 
49 extern void gvplugin_skillgui_cairo_setup(GVC_t *gvc,
51 
52 #endif
Graphviz Cairo render plugin instructor.
virtual ~SkillGuiCairoRenderInstructor()
Empty virtual destructor.
virtual bool scale_override()=0
Check if scale override is enabled.
virtual void get_dimensions(double &width, double &height)=0
Get available space dimensions.
virtual double get_scale()=0
Get scale factor.
virtual void set_pad(double pad_x, double pad_y)=0
Set padding.
virtual Cairo::RefPtr< Cairo::Context > get_cairo()=0
Get Cairo context.
virtual void get_pad(double &pad_x, double &pad_y)=0
Get padding.
virtual void set_translation(double tx, double ty)=0
Set translation.
virtual void get_translation(double &tx, double &ty)=0
Get translation values.
virtual void set_bb(double bbw, double bbh)=0
Set the bounding box.
virtual void set_scale(double scale)=0
Set scale.