diff options
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r-- | dw/textblock.hh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh index d64f65ee..3f98f878 100644 --- a/dw/textblock.hh +++ b/dw/textblock.hh @@ -266,7 +266,10 @@ protected: void decorateText(core::View *view, core::style::Style *style, core::style::Color::Shading shading, int x, int yBase, int width); - void drawText(int wordIndex, core::View *view, core::Rectangle *area, + void drawText(core::View *view, core::style::Style *style, + core::style::Color::Shading shading, int x, int y, + const char *text, int start, int len); + void drawWord(int wordIndex, core::View *view, core::Rectangle *area, int xWidget, int yWidgetBase); void drawSpace(int wordIndex, core::View *view, core::Rectangle *area, int xWidget, int yWidgetBase); @@ -277,10 +280,11 @@ protected: Word *addWord (int width, int ascent, int descent, core::style::Style *style); + int textWidth (const char *text, int start, int len, + core::style::Style *style); void calcTextSize (const char *text, size_t len, core::style::Style *style, core::Requisition *size); - /** * \brief Returns the x offset (the indentation plus any offset needed for * centering or right justification) for the line. |