Did you know ... Search Documentation:
Pack sdlpl -- prolog/sdl/video.pl
PublicShow source
 sdl_window_flag(?Flag:atom, ?Value:integer) is nondet
Enumerate the window creation flags. Each flag is a Prolog atom linked to its SDL bit-mask value.

The user-facing flag atoms are:

  • fullscreen
  • opengl
  • occluded
  • hidden
  • borderless
  • resizable
  • minimized
  • maximized
  • mouse_grabbed
  • input_focus
  • mouse_focus
  • external
  • high_pixel_density
  • mouse_capture
  • mouse_relative_mode
  • always_on_top
  • utility
  • keyboard_grabbed
  • fill_document
  • vulkan
  • metal
  • transparent
  • not_focusable
  • input_grabbed -- synonym for mouse_grabbed
  • allow_highdpi -- synonym for high_pixel_density Flags requiring a parent window (modal, tooltip, popup_menu) are not exposed.
See also
- https://wiki.libsdl.org/SDL3/SDL_CreateWindow
 sdl_windowpos(?Pos:term, ?Value:integer) is nondet
Special window-position constants. A window position is either one of these atoms or a plain integer pixel offset (validated by the sdl_windowpos type, which accepts both).
[99, 101, 110, 116, 101, 114, 101, 100]
[117, 110, 100, 101, 102, 105, 110, 101, 100]
@see https://wiki.libsdl.org/SDL3/SDL_CreateWindow @see https://wiki.libsdl.org/SDL3/SDL_WINDOWPOS_CENTERED
 sdl_createwindow(-Handle:blob, +Title:string, +Width:positive_integer, +Height:positive_integer, +Flags:list(sdl_window_flag)) is det
Create a window. Each element of Flags must be one of the atoms enumerated by sdl_window_flag/2.
See also
- https://wiki.libsdl.org/SDL3/SDL_CreateWindow
 sdl_setwindowposition(+Window:blob, +X:sdl_windowpos, +Y:sdl_windowpos) is det
Move the window. X and Y are each either an atom enumerated by sdl_windowpos/2 or an integer pixel offset.
See also
- https://wiki.libsdl.org/SDL3/SDL_SetWindowPosition

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 sdl_destroywindow(Arg1)
 sdl_destroywindow(Arg1)