Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
element.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  element.cpp - description
3  -------------------
4  begin : Sat Sep 20 2003
5  copyright : (C) 2003 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
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 "element.h"
19 //#include "schematic.h"
21 {
23  isSelected = false;
24  cx = cy = x1 = y1 = x2 = y2 = 0;
25 }
26 
28 {
29 }
30 
32 {
33 }
34 
35 void Element::setCenter(int, int, bool)
36 {
37 }
38 
39 void Element::getCenter(int&, int&)
40 {
41 }
Defines drawing elements for schematics.
int Type
Definition: element.h:152
int y1
Definition: element.h:153
int y2
Definition: element.h:153
int x1
Definition: element.h:153
Element()
Definition: element.cpp:20
int cx
Definition: element.h:153
bool isSelected
Definition: element.h:151
virtual ~Element()
Definition: element.cpp:27
virtual void getCenter(int &, int &)
Definition: element.cpp:39
#define isDummyElement
Definition: element.h:107
int cy
Definition: element.h:153
virtual void paintScheme(Schematic *)
Definition: element.cpp:31
int x2
Definition: element.h:153
virtual void setCenter(int, int, bool relative=false)
Definition: element.cpp:35