CComponentsText: Add function getTextLinesAutoHeight()

- Function is used for determine the number of lines
 in a text box in AUTO_HIGH mode.

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: ad630c5acb
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-10-23 (Wed, 23 Oct 2013)

Origin message was:
------------------
CComponentsText: Add function getTextLinesAutoHeight()

- Function is used for determine the number of lines
 in a text box in AUTO_HIGH mode.

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2013-10-23 16:42:40 +02:00
committed by Thilo Graf
parent 9f144909f3
commit bc1f7f1833
2 changed files with 18 additions and 0 deletions

View File

@@ -133,6 +133,9 @@ class CComponentsText : public CComponentsItem, public CBox
///gets the embedded CTextBox object, so it's possible to get access directly to its methods and properties
virtual CTextBox* getCTextBoxObject() { return ct_textbox; };
///returns count of lines from a text box page
virtual int getTextLinesAutoHeight(const int& textMaxHeight, const int& textWidth, const int& mode);
};