Скачиваний:
17
Добавлен:
01.05.2014
Размер:
715 б
Скачать

#include "CText.h"

CText :: CText():ShapePosition()
{   
   str = "";
   Height = 8;
}

CText :: CText(int _X,int _Y,std :: string _Str):ShapePosition(_X , _Y)
{
   str = _Str;
   Height = 8;
}

CText :: ~CText()
{}

void CText :: SetStr(std :: string _Str)
{
	str = _Str;
}

void CText :: SetHeight (int _Height)
{
	Height = _Height;
}

std::string CText :: GetStr() const
{
	return str;
}

int CText :: GetHeight() const
{
	return Height;
}

int CText :: getNumType()
{ 
	return 1;
}

void CText :: display(std::ostream& os)
{
	os <<"Class CText Information:"<<std::endl<<
		  "Height: " << GetHeight() <<std::endl<<
		  "String: " << GetStr()    <<std::endl;
}
Соседние файлы в папке lab1t