SFML community forums

Bindings - other languages => C => Topic started by: dowhile on June 13, 2012, 05:22:55 pm

Title: How to get the width of sfText in pixel?
Post by: dowhile on June 13, 2012, 05:22:55 pm
Hello,

how can I get the width of a sfText in pixels? In another topic (C++), someone refers to text.GetRect().getWidth(), but there's no sfText_getRect() function in the C binding.

(Edit: I'm using CSFML-2.0-rc)

I'm thankful for any reply.
Title: Re: How to get the width of sfText in pixel?
Post by: Laurent on June 13, 2012, 05:56:25 pm
In SFML 2 the function is getGlobalBounds().