Debian Codegraph @

src/canvas.cpp

raw symbols SCIP
1 /***************************************************************************
2 canvas.cpp - description
3 -------------------
4 begin : Mon Oct 16 2000
5 copyright : (C) 2000 by Waldemar Baraldi
6 email : [email protected]
7 ***************************************************************************/
8
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18 #include "canvas.h"
19
20 Canvas::Canvas():Graphic(){
21 x=y=0;
22 }
23
24 Canvas::Canvas(int width, int height):Graphic(width, height){
25 x=y=0;
26 }
27
28 void Canvas::setPos(int x, int y){
29 this->x=x;this->y=y;
30 }
31
32 int Canvas::getX(){
33 return x;
34 }
35
36 int Canvas::getY(){
37 return y;
38 }
39
40