The Gnome Chemistry Utils
0.14.16
libs
gccv
equation.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
* Gnome Chemistry Utils
5
* gccv/equation.h
6
*
7
* Copyright (C) 2014 Jean Bréfort <jean.brefort@normalesup.org>
8
*
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public License as
11
* published by the Free Software Foundation; either version 3 of the
12
* License, or (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22
* USA
23
*/
24
25
#ifndef GCCV_EQUATION_H
26
#define GCCV_EQUATION_H
27
28
#include "
rectangle.h
"
29
#include "
structs.h
"
30
#include "
text.h
"
31
#include <lsmdom.h>
32
35
namespace
gccv
{
36
37
class
Equation:
public
Rectangle
38
{
39
public
:
48
Equation (Canvas *canvas,
double
x,
double
y);
58
Equation (Group *parent,
double
x,
double
y, ItemClient *client = NULL);
62
virtual
~Equation ();
63
70
void
Draw
(cairo_t *cr,
bool
is_vector)
const
;
71
79
void
SetPosition
(
double
x,
double
y);
80
81
private
:
82
double
m_x, m_y;
83
LsmDomView *m_View;
84
85
GCCV_TEXT_PROP
(LsmDomDocument
const
*, Math)
94
GCCV_TEXT_PROP
(
Anchor
, Anchor)
104
GCCV_ITEM_PROP
(
bool
, AutoTextColor)
114
GCCV_ITEM_PROP
(
bool
, AutoFont)
115
};
116
117
}
// namespace gccv
118
119
#endif // GCCV_FILL_ITEM_H
GCCV_ITEM_PROP
#define GCCV_ITEM_PROP(type, member)
Definition:
item.h:48
GCCV_TEXT_PROP
#define GCCV_TEXT_PROP(type, member)
Definition:
gccv/text.h:57
structs.h
gccv
Gnome Chemistry Canvas library namespace.
Definition:
gcp/application.h:36
rectangle.h
gccv::Rectangle::SetPosition
void SetPosition(double x, double y, double width, double height)
text.h
gccv::Item::Draw
virtual bool Draw(cairo_t *cr, double x0, double y0, double x1, double y1, bool is_vector) const
gccv::Anchor
Anchor
Definition:
gccv/structs.h:60
Generated by
1.8.12