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

Author Topic: SFML 2, window styles gone?  (Read 3311 times)

0 Members and 2 Guests are viewing this topic.

Zephilinox

  • Newbie
  • *
  • Posts: 43
    • View Profile
SFML 2, window styles gone?
« on: September 08, 2012, 01:48:18 pm »
I don't want my window to be resized, but there is no sf::Style::xyz, they are all gone. I can't find any documentation on it either, have they been removed or..?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML 2, window styles gone?
« Reply #1 on: September 08, 2012, 01:52:50 pm »
No, they are the same as before. I have no idea why you think they disappeared.
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: SFML 2, window styles gone?
« Reply #2 on: September 08, 2012, 03:04:40 pm »
I have no idea why you think they disappeared.
Maybe because they are a bit harder to find in the documentation, since sf::Style is an enum and not a class...
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Zephilinox

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: SFML 2, window styles gone?
« Reply #3 on: September 08, 2012, 03:35:29 pm »
Code::Blocks autocomplete couldn't find it, and the closest thing I found to sf::Style in the documentation is http://sfml-dev.org/documentation/2.0/functions_enum.php.

Even following the SFML 2 window tutorial and using the styles there, it wouldn't compile.

Anyway, not that important, I was just curious if they had.

victorlevasseur

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: SFML 2, window styles gone?
« Reply #4 on: September 08, 2012, 04:54:48 pm »
Hello,

In sf::Window class reference :
Window (VideoMode mode, const std::string &title, Uint32 style=Style::Default, const ContextSettings &settings=ContextSettings())

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: SFML 2, window styles gone?
« Reply #5 on: September 08, 2012, 04:59:01 pm »
Code::Blocks autocomplete couldn't find it.
Never trust auto completion! ;)

But it should compile nevertheless... Where following the tutorial on how to setup your dev enviroment?
Do mix debug and release modes?
What is the exact error output?

As for the doc, see here
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/