diff options
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/customweld.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/customweld.hxx b/include/vcl/customweld.hxx index 3e6835b8f864..938308a45ca8 100644 --- a/include/vcl/customweld.hxx +++ b/include/vcl/customweld.hxx @@ -69,6 +69,10 @@ public: void Disable() const { m_pDrawingArea->set_sensitive(false); } bool IsActive() const { return m_pDrawingArea->is_active(); } int GetTextHeight() const { return m_pDrawingArea->get_text_height(); } + int GetTextWidth(const OUString& rText) const + { + return m_pDrawingArea->get_pixel_size(rText).Width(); + } OUString GetAccessibleName() const { return m_pDrawingArea->get_accessible_name(); } OUString GetAccessibleDescription() const { |