* CTextBox: When using only digits to display:

- Use for calculating digit height
  font->getDigitHeight() / font->getDigitOffset()
This commit is contained in:
Michael Liebmann
2013-04-24 18:26:44 +02:00
committed by Thilo Graf
parent 9735c670fd
commit fccb07cfc9
2 changed files with 24 additions and 3 deletions

View File

@@ -109,6 +109,7 @@ class CTextBox
void refreshText(void);
void reSizeMainFrameWidth(int maxTextWidth);
void reSizeMainFrameHeight(int maxTextHeight);
int setFontTextHeight();
/* Variables */
std::string m_cText;
@@ -150,6 +151,7 @@ class CTextBox
/* int max_width;*/
int text_border_width;
bool m_FontUseDigitHeight;
public:
/* Constructor */
@@ -178,6 +180,7 @@ class CTextBox
void setWindowPos(const CBox* position){m_cFrame = *position;};
void setWindowMaxDimensions(const int width, const int height);
void setWindowMinDimensions(const int width, const int height);
void setFontUseDigitHeight(bool set=true);
inline bool isPainted(void) {if( frameBuffer == NULL) return (false); else return (true);};
inline CBox getWindowsPos(void) {return(m_cFrame);};