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{
32public:
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
51extern void gvplugin_skillgui_cairo_setup(GVC_t *gvc, SkillGuiCairoRenderInstructor *sgcri);
52
53#endif
Graphviz Cairo render plugin instructor.
virtual void get_pad(double &pad_x, double &pad_y)=0
Get padding.
virtual void get_dimensions(double &width, double &height)=0
Get available space dimensions.
virtual void set_scale(double scale)=0
Set scale.
virtual void get_translation(double &tx, double &ty)=0
Get translation values.
virtual void set_translation(double tx, double ty)=0
Set translation.
virtual double get_scale()=0
Get scale factor.
virtual Cairo::RefPtr< Cairo::Context > get_cairo()=0
Get Cairo context.
virtual ~SkillGuiCairoRenderInstructor()
Empty virtual destructor.
virtual void set_pad(double pad_x, double pad_y)=0
Set padding.
virtual bool scale_override()=0
Check if scale override is enabled.
virtual void set_bb(double bbw, double bbh)=0
Set the bounding box.