mail[Wesnoth-commits] r33449 - /trunk/src/gui/widgets/text.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on March 08, 2009 - 19:01:
Author: mordante
Date: Sun Mar  8 19:01:47 2009
New Revision: 33449

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33449&view=rev
Log:
Expose more parts of the ttext_ member.

This is needed to have more control over where to place the ellipse.

Modified:
    trunk/src/gui/widgets/text.hpp

Modified: trunk/src/gui/widgets/text.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/text.hpp?rev=33449&r1=33448&r2=33449&view=diff
==============================================================================
--- trunk/src/gui/widgets/text.hpp (original)
+++ trunk/src/gui/widgets/text.hpp Sun Mar  8 19:01:47 2009
@@ -82,6 +82,8 @@
 
        void set_maximum_length(const size_t maximum_length);
 
+       size_t get_length() const { return text_.get_length(); }
+
        /***** ***** ***** setters / getters for members ***** ****** *****/
 
        void set_value(const std::string& text);
@@ -186,6 +188,9 @@
 
        void set_maximum_height(const int height)
                { text_.set_maximum_height(height); }
+
+       void set_ellipse_mode(const PangoEllipsizeMode ellipse_mode)
+               { text_.set_ellipse_mode(ellipse_mode); }
 
        /***** ***** ***** setters / getters for members ***** ****** *****/
 




Related Messages


Powered by MHonArc, Updated Sun Mar 08 19:20:28 2009