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

Author Topic: Window Styles  (Read 1821 times)

0 Members and 1 Guest are viewing this topic.

Nor

  • Newbie
  • *
  • Posts: 1
    • View Profile
Window Styles
« on: March 22, 2011, 08:09:41 pm »
Hello I'm new to SFML, and I was wondering what all the Window Styles do.
I tried looking around this site but I can't seem to find the exact info I'm looking for.

Code: [Select]
enum
{
         None       = 0,      
         Titlebar   = 1 << 0,
         Resize     = 1 << 1,
         Close      = 1 << 2,
         Fullscreen = 1 << 3  
};


I can easily tell what Fullscreen and Resize do.
But what about Close and Titlebar? And what happens if None is used?

If anyone could tell me or point me in the right direction to find the info (Like a link, not  google),
I would be quite appreciative.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Window Styles
« Reply #1 on: March 22, 2011, 08:40:30 pm »
They're quite self-explanatory: Titlebar shows the titlebar, Close shows the close button. None disables all of them, ergo you don't have a titlebar, close button, can't resize and are in windowed mode.

But maybe Laurent can punch some ///< comments in, just for the case. ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Window Styles
« Reply #2 on: March 22, 2011, 10:42:44 pm »
Quote
But maybe Laurent can punch some ///< comments in, just for the case.

They are commented. I then thought that they were somehow missing in the generated HTML doc, but... no, they are there too.

So there's really no excuse for asking such a question :P
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Window Styles
« Reply #3 on: March 23, 2011, 08:49:16 am »
Oh snap, I knew it, but was too lazy to look it up. Nevermind then. :)