Flags for SDLWindow::new and returned by SDLWindow::flags

Introduced properties

fun allow_highdpi: SDLWindowFlags

sdl2 :: SDLWindowFlags :: allow_highdpi

Add the flag to request a window using the system High-DPI mode
fun borderless: SDLWindowFlags

sdl2 :: SDLWindowFlags :: borderless

Add the flag requesting a borderless window
fun fullscreen: SDLWindowFlags

sdl2 :: SDLWindowFlags :: fullscreen

Add the flag requesting a fullscreen window
fun fullscreen_desktop: SDLWindowFlags

sdl2 :: SDLWindowFlags :: fullscreen_desktop

Add the flag requesting a fullscreen window for the current desktop
fun has_input_focus: Bool

sdl2 :: SDLWindowFlags :: has_input_focus

Does the window has the input focus?
fun has_mouse_focus: Bool

sdl2 :: SDLWindowFlags :: has_mouse_focus

Does the window has the mouse focus?
fun hidden: SDLWindowFlags

sdl2 :: SDLWindowFlags :: hidden

Add the flag requesting a hidden window
fun input_grabbed: SDLWindowFlags

sdl2 :: SDLWindowFlags :: input_grabbed

Add the flag to grab the input focus
fun is_shown: Bool

sdl2 :: SDLWindowFlags :: is_shown

Is the window shown?
fun maximized: SDLWindowFlags

sdl2 :: SDLWindowFlags :: maximized

Add the flag requesting a maximimez window
fun minimized: SDLWindowFlags

sdl2 :: SDLWindowFlags :: minimized

Add the flag requesting a minimized window
init new: SDLWindowFlags

sdl2 :: SDLWindowFlags :: new

Get the default empty flag set
fun opengl: SDLWindowFlags

sdl2 :: SDLWindowFlags :: opengl

Add the flag requesting a window usable with an OpenGL context
fun resizable: SDLWindowFlags

sdl2 :: SDLWindowFlags :: resizable

Add the flag requesting a resizable window

Redefined properties

redef type SELF: SDLWindowFlags

sdl2 $ SDLWindowFlags :: SELF

Type of this instance, automatically specialized in every class

All properties

fun !=(other: nullable Object): Bool

core :: Object :: !=

Have self and other different values?
fun ==(other: nullable Object): Bool

core :: Object :: ==

Have self and other the same value?
type CLASS: Class[SELF]

core :: Object :: CLASS

The type of the class of self.
type SELF: Object

core :: Object :: SELF

Type of this instance, automatically specialized in every class
fun address_is_null: Bool

core :: Pointer :: address_is_null

Is the address behind this Object at NULL?
fun allow_highdpi: SDLWindowFlags

sdl2 :: SDLWindowFlags :: allow_highdpi

Add the flag to request a window using the system High-DPI mode
fun borderless: SDLWindowFlags

sdl2 :: SDLWindowFlags :: borderless

Add the flag requesting a borderless window
protected fun class_factory(name: String): CLASS

core :: Object :: class_factory

Implementation used by get_class to create the specific class.
fun class_name: String

core :: Object :: class_name

The class name of the object.
fun free

core :: Pointer :: free

Free the memory pointed by this pointer
fun fullscreen: SDLWindowFlags

sdl2 :: SDLWindowFlags :: fullscreen

Add the flag requesting a fullscreen window
fun fullscreen_desktop: SDLWindowFlags

sdl2 :: SDLWindowFlags :: fullscreen_desktop

Add the flag requesting a fullscreen window for the current desktop
fun get_class: CLASS

core :: Object :: get_class

The meta-object representing the dynamic type of self.
fun has_input_focus: Bool

sdl2 :: SDLWindowFlags :: has_input_focus

Does the window has the input focus?
fun has_mouse_focus: Bool

sdl2 :: SDLWindowFlags :: has_mouse_focus

Does the window has the mouse focus?
fun hash: Int

core :: Object :: hash

The hash code of the object.
fun hidden: SDLWindowFlags

sdl2 :: SDLWindowFlags :: hidden

Add the flag requesting a hidden window
init init

core :: Object :: init

fun input_grabbed: SDLWindowFlags

sdl2 :: SDLWindowFlags :: input_grabbed

Add the flag to grab the input focus
fun inspect: String

core :: Object :: inspect

Developer readable representation of self.
protected fun inspect_head: String

core :: Object :: inspect_head

Return "CLASSNAME:#OBJECTID".
intern fun is_same_instance(other: nullable Object): Bool

core :: Object :: is_same_instance

Return true if self and other are the same instance (i.e. same identity).
fun is_same_serialized(other: nullable Object): Bool

core :: Object :: is_same_serialized

Is self the same as other in a serialization context?
intern fun is_same_type(other: Object): Bool

core :: Object :: is_same_type

Return true if self and other have the same dynamic type.
fun is_shown: Bool

sdl2 :: SDLWindowFlags :: is_shown

Is the window shown?
fun maximized: SDLWindowFlags

sdl2 :: SDLWindowFlags :: maximized

Add the flag requesting a maximimez window
fun minimized: SDLWindowFlags

sdl2 :: SDLWindowFlags :: minimized

Add the flag requesting a minimized window
init new: SDLWindowFlags

sdl2 :: SDLWindowFlags :: new

Get the default empty flag set
init nul: Pointer

core :: Pointer :: nul

C NULL pointer
intern fun object_id: Int

core :: Object :: object_id

An internal hash code for the object based on its identity.
fun opengl: SDLWindowFlags

sdl2 :: SDLWindowFlags :: opengl

Add the flag requesting a window usable with an OpenGL context
fun output

core :: Object :: output

Display self on stdout (debug only).
intern fun output_class_name

core :: Object :: output_class_name

Display class name on stdout (debug only).
fun resizable: SDLWindowFlags

sdl2 :: SDLWindowFlags :: resizable

Add the flag requesting a resizable window
fun serialization_hash: Int

core :: Object :: serialization_hash

Hash value use for serialization
intern fun sys: Sys

core :: Object :: sys

Return the global sys object, the only instance of the Sys class.
abstract fun to_jvalue(env: JniEnv): JValue

core :: Object :: to_jvalue

fun to_s: String

core :: Object :: to_s

User readable representation of self.
package_diagram sdl2::SDLWindowFlags SDLWindowFlags core::Pointer Pointer sdl2::SDLWindowFlags->core::Pointer core::Object Object core::Pointer->core::Object ...core::Object ... ...core::Object->core::Object

Ancestors

interface Object

core :: Object

The root of the class hierarchy.

Parents

extern class Pointer

core :: Pointer

Pointer classes are used to manipulate extern C structures.

Class definitions

sdl2 $ SDLWindowFlags
# Flags for `SDLWindow::new` and returned by `SDLWindow::flags`
extern class SDLWindowFlags `{ Uint32 `}
	# Get the default empty flag set
	new `{ return 0; `}

	# Add the flag requesting a fullscreen window
	fun fullscreen: SDLWindowFlags `{ return self | SDL_WINDOW_FULLSCREEN; `}

	# Add the flag requesting a fullscreen window for the current desktop
	fun fullscreen_desktop: SDLWindowFlags `{ return self | SDL_WINDOW_FULLSCREEN_DESKTOP; `}

	# Add the flag requesting a window usable with an OpenGL context
	fun opengl: SDLWindowFlags `{ return self | SDL_WINDOW_OPENGL; `}

	# Add the flag requesting a hidden window
	fun hidden: SDLWindowFlags `{ return self | SDL_WINDOW_HIDDEN; `}

	# Add the flag requesting a borderless window
	fun borderless: SDLWindowFlags `{ return self | SDL_WINDOW_BORDERLESS; `}

	# Add the flag requesting a resizable window
	fun resizable: SDLWindowFlags `{ return self | SDL_WINDOW_RESIZABLE; `}

	# Add the flag requesting a minimized window
	fun minimized: SDLWindowFlags `{ return self | SDL_WINDOW_MINIMIZED; `}

	# Add the flag requesting a maximimez window
	fun maximized: SDLWindowFlags `{ return self | SDL_WINDOW_MAXIMIZED; `}

	# Add the flag to grab the input focus
	fun input_grabbed: SDLWindowFlags `{ return self | SDL_WINDOW_INPUT_GRABBED; `}

	# Add the flag to request a window using the system High-DPI mode
	fun allow_highdpi: SDLWindowFlags `{
		#if SDL_VERSION_ATLEAST(2, 0, 2)
			return self | SDL_WINDOW_ALLOW_HIGHDPI;
		#else
			return self;
		#endif
	`}

	# Is the window shown?
	#
	# Can only be queried because it is ignored by `SDLWindow::new`
	fun is_shown: Bool `{ return self & SDL_WINDOW_SHOWN; `}

	# Does the window has the input focus?
	#
	# Can only be queried because it is ignored by `SDLWindow::new`
	fun has_input_focus: Bool `{ return self & SDL_WINDOW_INPUT_FOCUS; `}

	# Does the window has the mouse focus?
	#
	# Can only be queried because it is ignored by `SDLWindow::new`
	fun has_mouse_focus: Bool `{ return self & SDL_WINDOW_MOUSE_FOCUS; `}

	# TODO add all other `is_` methods, as needed
end
lib/sdl2/sdl2_base.nit:168,1--225,3