Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
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
29
class
SkillGuiCairoRenderInstructor
30
{
31
public
:
32
/** Empty virtual destructor. */
33
virtual
~SkillGuiCairoRenderInstructor
() {}
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,
50
SkillGuiCairoRenderInstructor
*sgcri);
51
52
#endif
src
tools
skillgui
gvplugin_skillgui_cairo.h
Generated by
1.8.1.1