mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CTextBox: More precise function description
Note: In this context i noticed, it seems method getRenderWith() in Fontrender class returns wrong values with BOLD font types. It would be nice if anybody could verify this possible bug. If I see that correctly, we should fix this.
This commit is contained in:
@@ -222,7 +222,7 @@ class CTextBox : public sigc::trackable
|
|||||||
int getLines(){return(m_nNrOfLines);}
|
int getLines(){return(m_nNrOfLines);}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns maximal width of passed text
|
* Returns width of largest line from passed text
|
||||||
* @param[in] text
|
* @param[in] text
|
||||||
* @li exepts type std::string
|
* @li exepts type std::string
|
||||||
* @param[in] font
|
* @param[in] font
|
||||||
@@ -233,9 +233,10 @@ class CTextBox : public sigc::trackable
|
|||||||
static int getMaxLineWidth(const std::string& text, Font* font);
|
static int getMaxLineWidth(const std::string& text, Font* font);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns internal defined maximal line width of an existent CTextBox instance.
|
* Returns internal defined largest line width of an existant CTextBox instance.
|
||||||
* @return width of largest line as int
|
* @return width of largest line as int
|
||||||
* @see static version getMaxLineWidth()
|
* @see static version getMaxLineWidth()
|
||||||
|
* setText(), parameter: max_width
|
||||||
*/
|
*/
|
||||||
int getMaxLineWidth() {return(m_nMaxTextWidth);}
|
int getMaxLineWidth() {return(m_nMaxTextWidth);}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user