~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to krita/plugins/paintops/cpaint/sample.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright (c) 2000 Clara Chan <x@unknown.com>
3
 
 *  Copyright (c) 2007 Boudewijn Rempt <boud@valdyas.org>
4
 
 *
5
 
 *  This program is free software; you can redistribute it and/or modify
6
 
 *  it under the terms of the GNU General Public License as published by
7
 
 *  the Free Software Foundation; either version 2 of the License, or
8
 
 *  (at your option) any later version.
9
 
 *
10
 
 *  This program is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
 
 */
19
 
#ifndef SAMPLE_H
20
 
#define SAMPLE_H
21
 
 
22
 
class Sample
23
 
{
24
 
 
25
 
public:
26
 
 
27
 
    Sample();
28
 
 
29
 
    void setPressure(int pressure) {
30
 
        m_pressure = pressure;
31
 
    }
32
 
    int pressure() {
33
 
        return static_cast<int>(m_pressure);
34
 
    }
35
 
 
36
 
    void setX(int cx) {
37
 
        m_x = cx;
38
 
    }
39
 
    int x() {
40
 
        return m_x;
41
 
    }
42
 
 
43
 
    void setY(int cy) {
44
 
        m_y = cy;
45
 
    }
46
 
    int y() {
47
 
        return m_y;
48
 
    }
49
 
 
50
 
    void setTiltX(int cx) {
51
 
        m_tiltX = cx;
52
 
    }
53
 
    int tiltX() {
54
 
        return static_cast<int>(m_tiltX);
55
 
    }
56
 
 
57
 
    void setTiltY(int cy) {
58
 
        m_tiltY = cy;
59
 
    }
60
 
    int tiltY() {
61
 
        return static_cast<int>(m_tiltY);
62
 
    }
63
 
 
64
 
private:
65
 
 
66
 
    int m_x;
67
 
    int m_y;
68
 
    double m_pressure;
69
 
    double m_tiltX;
70
 
    double m_tiltY;
71
 
 
72
 
};
73
 
 
74
 
#endif