Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

GUI.cpp

Go to the documentation of this file.
00001 // GUI.cpp: implementation of the GUI class.
00002 //
00004 
00005 #include "GUI.h"
00006 
00008 // Construction/Destruction
00010 
00011 const Color GUI::colorTransparent=Color(0,0,0,true);
00012 const Color GUI::colorWhite=Color(255,255,255);
00013 const Color GUI::colorBlack=Color(0,0,0);
00014 
00015 
00016 GUI::GUI(float iniPanX, float iniPanY, float iniZoom, 
00017          int iniSignX, int iniSignY) :
00018     panX(iniPanX),
00019     panY(iniPanY),
00020     zoom(iniZoom),
00021     signX(iniSignX),
00022     signY(iniSignY),
00023     zoomX(zoom * signX),
00024     zoomY(zoom * signY){
00025 }
00026 
00027 GUI::~GUI(){
00028 }
00029 
00030 void GUI::setZoom(float newZoom){
00031    zoom=newZoom;
00032    zoomX=zoom*signX;
00033    zoomY=zoom*signY;
00034 }

Thyrix homepageUsers' guide

(C) Arxia 2004-2005