Annotation of DewFind/word.h, revision 1.1
1.1 ! nick 1: //This class writes letters and numbers to the screen using Dew bitmap letters
! 2: //supports A-Z,0-9,-,?,!,/ and .
! 3: //
! 4: //Class Version 1.5
! 5: //
! 6: //
! 7: //Last updated on: 2/25/2011
! 8: //Created by Brendan Lynch
! 9: //
! 10: //#4 Added color value. Able to select Black or Red or Green. Letters and numbers show up in selected color.
! 11:
! 12: //#18 Increased Max characters to 50
! 13: //
! 14:
! 15: //#32
! 16: //*************************************
! 17: //Programmed by: Brendan Lynch
! 18: //Email: dewgames@gmail.com
! 19: //Website: www.dewgames.com
! 20: //*************************************
! 21:
! 22:
! 23: //
! 24: #ifndef __Word_h__
! 25: #define __Word_h__
! 26:
! 27: const int MAXLETTERS = 50; //Max number of letters
! 28:
! 29: class Word {
! 30: public:
! 31: Word();
! 32: void Reset();//Sets everything to their default values
! 33: void SetLimit(int lim); //Sets the limit of characters printed
! 34: void Write(CString writeme,int x,int y,CDC *xDC);//Writes the word horizantal to the screen
! 35: void Write(int number,int x,int y,int zeros, CDC *xDC); //writes a number to the screen.
! 36: void Write(char writeme,int x,int y,CDC *xDC);
! 37: void WriteVert(CString writeme,int x,int y,CDC *xDC);//writes the word vertical
! 38: void WriteBackwards(bool IsVert, CString writeme,int x,int y,CDC *xDC);
! 39: void SetColor(int color);
! 40: private:
! 41: void Display(bool horz,CString writeme,int x,int y,CDC *xDC);
! 42: void ShowChar(CDC *dc,int picX,int picY, char Let);//Prints the graphic
! 43: int GetNum(char let); //Used with ShowChar to locate the graphic to be used.
! 44: int limit_; //limits the characters printed
! 45: int color_; //0 - Black (default) 1 - Red (Numbers are always Blue
! 46: };
! 47:
! 48: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>