Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
mesh.h
1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
/***************************************************************************
8
mesh.h - description
9
-------------------
10
begin : Mit Apr 21 2010
11
copyright : (C) 2010 by Franz Schmid
12
email : Franz.Schmid@altmuehlnet.de
13
***************************************************************************/
14
15
/***************************************************************************
16
* *
17
* This program is free software; you can redistribute it and/or modify *
18
* it under the terms of the GNU General Public License as published by *
19
* the Free Software Foundation; either version 2 of the License, or *
20
* (at your option) any later version. *
21
* *
22
***************************************************************************/
23
24
#ifndef MESH_H
25
#define MESH_H
26
27
#include <QString>
28
#include <QColor>
29
#include <QTransform>
30
#include "fpoint.h"
31
#include "scribusapi.h"
32
33
class
SCRIBUS_API
meshPoint
34
{
35
public
:
36
meshPoint
();
37
void
moveRel(
double
dx,
double
dy);
38
void
moveAbs(
double
x,
double
y);
39
void
transform(QTransform t);
40
void
resetTo(
FPoint
p);
41
bool
operator ==(
meshPoint
p);
42
FPoint
gridPoint;
43
FPoint
controlTop;
44
FPoint
controlBottom;
45
FPoint
controlLeft;
46
FPoint
controlRight;
47
FPoint
controlColor;
48
double
transparency;
49
int
shade;
50
QString colorName;
51
QColor color;
52
};
53
54
struct
meshGradientPatch
55
{
56
meshPoint
TL;
57
meshPoint
TR;
58
meshPoint
BL;
59
meshPoint
BR;
60
};
61
62
#endif
meshPoint
Definition:
mesh.h:33
FPoint
A point with floating point precision.
Definition:
fpoint.h:43
meshGradientPatch
Definition:
mesh.h:54
scribus
mesh.h
Generated on Tue Sep 29 2015 09:15:00 for Scribus by
1.8.9.1