Documentation de SFML 2.0

Attention: cette page se réfère à une ancienne version de SFML. Cliquez ici pour passer à la dernière version.
Window module

Provides OpenGL-based windows, and abstractions for events and input handling. More...

Classes

class  sf::Context
 Class holding a valid drawing context. More...
 
class  sf::ContextSettings
 Structure defining the settings of the OpenGL context attached to a window. More...
 
class  sf::Event
 Defines a system event and its parameters. More...
 
class  sf::GlResource
 Base class for classes that require an OpenGL context. More...
 
class  sf::Joystick
 Give access to the real-time state of the joysticks. More...
 
class  sf::Keyboard
 Give access to the real-time state of the keyboard. More...
 
class  sf::Mouse
 Give access to the real-time state of the mouse. More...
 
class  sf::VideoMode
 VideoMode defines a video mode (width, height, bpp) More...
 
class  sf::Window
 Window that serves as a target for OpenGL rendering. More...
 
struct  sf::Event::JoystickButtonEvent
 Joystick buttons events parameters (JoystickButtonPressed, JoystickButtonReleased) More...
 
struct  sf::Event::JoystickConnectEvent
 Joystick connection events parameters (JoystickConnected, JoystickDisconnected) More...
 
struct  sf::Event::JoystickMoveEvent
 Joystick axis move event parameters (JoystickMoved) More...
 
struct  sf::Event::KeyEvent
 Keyboard event parameters (KeyPressed, KeyReleased) More...
 
struct  sf::Event::MouseButtonEvent
 Mouse buttons events parameters (MouseButtonPressed, MouseButtonReleased) More...
 
struct  sf::Event::MouseMoveEvent
 Mouse move event parameters (MouseMoved) More...
 
struct  sf::Event::MouseWheelEvent
 Mouse wheel events parameters (MouseWheelMoved) More...
 
struct  sf::Event::SizeEvent
 Size events parameters (Resized) More...
 
struct  sf::Event::TextEvent
 Text event parameters (TextEntered) More...
 

Enumerations

enum  {
  sf::Style::None = 0,
  sf::Style::Titlebar = 1 << 0,
  sf::Style::Resize = 1 << 1,
  sf::Style::Close = 1 << 2,
  sf::Style::Fullscreen = 1 << 3,
  sf::Style::Default = Titlebar | Resize | Close
}
 Enumeration of the window styles. More...
 

Detailed Description

Provides OpenGL-based windows, and abstractions for events and input handling.

Enumeration Type Documentation

anonymous enum

Enumeration of the window styles.

Enumerator:
None 

No border / title bar (this flag and all others are mutually exclusive)

Titlebar 

Title bar + fixed border.

Resize 

Titlebar + resizable border + maximize button.

Close 

Titlebar + close button.

Fullscreen 

Fullscreen mode (this flag and all others are mutually exclusive)

Default 

Default window style.

Definition at line 38 of file WindowStyle.hpp.