Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Window size changing
Print
Pages: [
1
]
Author
Topic: Window size changing (Read 2415 times)
0 Members and 1 Guest are viewing this topic.
alinuxoid
Newbie
Posts: 2
Window size changing
«
on:
April 04, 2016, 10:40:42 pm »
How to disable window size changing? Working with sf::RenderWindow and don't see methods which should do this.
Logged
Tukimitzu
Full Member
Posts: 117
Anti-Hero Member
Re: Window size changing
«
Reply #1 on:
April 04, 2016, 10:49:06 pm »
On the creation method, for the sf::Style parameter:
sf::Style::Default ^ sf::Style::Resize
Logged
@davi_doro
Pointless Wars Devlog
alinuxoid
Newbie
Posts: 2
Re: Window size changing
«
Reply #2 on:
April 04, 2016, 11:09:16 pm »
Thanks. Works fine (i am newbie in SFML, almost always using GTK+ in Vala, but already know C (and, partially, C++). So, thanks. (trying to use low-level library for my own project, which requires low-level code)
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: Window size changing
«
Reply #3 on:
April 05, 2016, 06:18:07 am »
The more idiomatic and more correct expression would be
sf
::
Style
::
Default
&
~sf
::
Style
::
Resize
Unlike the other expression, it also works if the Resize bit is not part of Default. It's also clearer about the intention of the developer
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Window size changing
anything