Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Window size changing  (Read 1759 times)

0 Members and 1 Guest are viewing this topic.

alinuxoid

  • Newbie
  • *
  • Posts: 2
    • View Profile
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.

Tukimitzu

  • Full Member
  • ***
  • Posts: 117
  • Anti-Hero Member
    • View Profile
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

alinuxoid

  • Newbie
  • *
  • Posts: 2
    • View Profile
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)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
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 ;)
Laurent Gomila - SFML developer

 

anything