SFML community forums
Help => Graphics => Topic started by: trilavia on December 24, 2012, 12:01:01 pm
-
Hi,
for example in browser when you resize the window the text is always the same size. In SFML, when I create 1200x900 window, the text is exactly as I want, but when I maximize the window, it is way too big. Is there any simple way to make the text always be the same size :)?
Thanks
-
React to the Resized event and adjust your view accordingly.
-
You can also inherit from RenderWindow and implement your own onResize method that'll automatically resize the current view.
-
You can also inherit from RenderWindow and implement your own onResize method that'll automatically resize the current view
This is an undocumented internal detail that may change in the future.
-
What does 'undocumented' mean and why would that be changed?
-
What does 'undocumented' mean
It means that it's not documented anywhere :P because it's an implementation detail that is not part of the public API, and on which users should not rely.
why would that be changed?
It's an implementation detail, therefore I can touch it without breaking the API compatibility between minor versions of SFML.
Because a member (function) can be accessed doesn't mean that it should be used. Users should strictly stick to what's publicly documented.
-
It means that it's not documented anywhere :P because it's an implementation detail that is not part of the public API, and on which users should not rely.
Unfortunately, you do document it, see here (http://www.sfml-dev.org/documentation/2.0/classsf_1_1RenderWindow.php). That makes it difficult to see what is part of the API.
-
Did you undocument it after the RC? I found it here:
http://sfml-dev.org/documentation/2.0/classsf_1_1RenderWindow.php#a5c85fe482313562d33ffd24a194b6fef
-
I don't document it, doxygen does ;D
I'll fix this, sorry.
-
In the documentation, you can use the @internal (http://www.stack.nl/~dimitri/doxygen/commands.html#cmdinternal) command, so that Doxygen doesn't expose it to the API. The advantage over just using // instead of /// is that you can still create your own documentation where internal symbols show up.