src/Menu/CCTextField.cpp

Go to the documentation of this file.
00001 /* Crown and Cutlass
00002  * Crown and Cutlass TextField Code
00003  */
00004 
00005 #include <guichan.hpp>
00006 #include <string>
00007 #include "CCFont.h"
00008 #include "CCTextField.h"
00009 
00010 using namespace std;
00011 
00012 CCTextField::CCTextField(const string& caption, const string mainFontName, int width): gcn::TextField(caption) {
00013   SetMainFont(mainFontName);
00014 
00015   adjustHeight();
00016   setWidth(width);
00017 }
00018 
00019 CCTextField::~CCTextField() {
00020 }
00021 
00022 void CCTextField::SetMainFont(string fontName) {
00023   m_mainFont.reset(new CCFont(fontName));
00024   setFont(m_mainFont->GetImageFont());
00025 }

Generated on Mon Jan 8 22:34:12 2007 for CrownandCutlass by  doxygen 1.4.7