Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Bindings - other languages
»
C
»
How to get the width of sfText in pixel?
Print
Pages: [
1
]
Author
Topic: How to get the width of sfText in pixel? (Read 4069 times)
0 Members and 1 Guest are viewing this topic.
dowhile
Newbie
Posts: 4
How to get the width of sfText in pixel?
«
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.
«
Last Edit: June 13, 2012, 05:42:42 pm by dowhile
»
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: How to get the width of sfText in pixel?
«
Reply #1 on:
June 13, 2012, 05:56:25 pm »
In SFML 2 the function is getGlobalBounds().
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Bindings - other languages
»
C
»
How to get the width of sfText in pixel?