Window

sfml.window.Window
See theWindow companion trait
object Window

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Window.type

Members list

Type members

Classlikes

object ctor

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
ctor.type

Value members

Concrete methods

def apply(mode: VideoMode, title: String, style: Style, settings: ContextSettings): Window

Construct a new window.

Construct a new window.

This constructor creates the window with the size and pixel depth defined in mode. An optional style can be passed to customize the look and behavior of the window (borders, title bar, resizable, closable, ...). If style contains Fullscreen, then mode must be a valid video mode.

The fourth parameter is an optional structure specifying advanced OpenGL context settings such as antialiasing, depth-buffer bits, etc.

Value parameters

mode

Video mode to use (defines the width, height and depth of the rendering area of the window)

settings

Additional settings for the underlying OpenGL context

style

Window style, a bitwise OR combination of Style enumerators

title

Title of the window

Attributes

Extensions

Extensions

extension (window: Immutable[Window])
def isOpen(): Boolean
def size: Vector2[Int]