SFML community forums

Help => Window => Topic started by: Nor on March 22, 2011, 08:09:41 pm

Title: Window Styles
Post by: Nor 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.
Title: Window Styles
Post by: Tank 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. ;)
Title: Window Styles
Post by: Laurent 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
Title: Window Styles
Post by: Tank on March 23, 2011, 08:49:16 am
Oh snap, I knew it, but was too lazy to look it up. Nevermind then. :)