Window.shaped


Description:

[ Version ( since = "2.0.5" ) ]
[ CCode ( cname = "SDL_CreateShapedWindow" ) ]
public Window.shaped (string title, int x, int y, int w, int h, uint32 flags)

Create a window that can be shaped with the specified position, dimensions, and flags.

Parameters:

title

The title of the window, in UTF-8 encoding.

x

The x position of the window, POS_CENTERED, or POS_UNDEFINED.

y

The y position of the window, POS_CENTERED, or POS_UNDEFINED.

w

The width of the window.

h

The height of the window.

flags

The flags for the window, a mask of WindowFlags.BORDERLESS with any of the following:
WindowFlags.OPENGL, WindowFlags.INPUT_GRABBED,
WindowFlags.HIDDEN, WindowFlags.RESIZABLE
WindowFlags.MAXIMIZED, WindowFlags.MINIMIZED

WindowFlags.BORDERLESS is always set, and WindowFlags.FULLSCREEN is always unset.

Returns:

The window created, or null if window creation failed.

See also:

destroy




2022 vala-language.org