Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
General
»
Feature requests
»
Width of a sf::String?
Print
Pages: [
1
]
Author
Topic: Width of a sf::String? (Read 22513 times)
0 Members and 3 Guests are viewing this topic.
NeWsOfTzzz
Newbie
Posts: 15
Width of a sf::String?
«
on:
August 20, 2008, 02:21:09 pm »
Is there any way to find out the width of a text? For example to cut it if it gets too long or to display a cursor?
Logged
Daazku
Hero Member
Posts: 896
Width of a sf::String?
«
Reply #1 on:
August 20, 2008, 02:28:55 pm »
Check the string documentation and the tutorial..
Logged
Pensez à mettre le tag
[Résolu]
une fois la réponse à votre question trouvée.
Remember to add the tag
[Solved]
when you got an answer to your question.
Laurent
Administrator
Hero Member
Posts: 32498
Width of a sf::String?
«
Reply #2 on:
August 20, 2008, 02:32:04 pm »
For cursor stuff, check the 1.4 (SVN) documentation and tutorial.
Logged
Laurent Gomila - SFML developer
NeWsOfTzzz
Newbie
Posts: 15
Width of a sf::String?
«
Reply #3 on:
August 20, 2008, 02:32:08 pm »
Just as you say it I found it! I posted too fast :/
It was not in the tutorial though!
I didn't see the "GetRect()" function even though i looked 2 times over all functions of the string class -.-
Can be closed, sorry :p
ATM I'm using 1.3 though..
Logged
Print
Pages: [
1
]
SFML community forums
»
General
»
Feature requests
»
Width of a sf::String?