mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 21:30:24 +00:00
Expose more parts of the ttext_ member.
This is needed to have more control over where to place the ellipse.
This commit is contained in:
parent
ef5b08319d
commit
fecdb7660c
@ -82,6 +82,8 @@ public:
|
||||
|
||||
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);
|
||||
@ -187,6 +189,9 @@ protected:
|
||||
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 ***** ****** *****/
|
||||
|
||||
size_t get_selection_start() const { return selection_start_; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user