screen_create_window()

Create a window that can be used to make graphical content visible on a display

Synopsis:

#include <screen/screen.h>
int screen_create_window(screen_window_t *pwin,
                         screen_context_t ctx)

Arguments:

pwin
An address where the function can store the handle to the newly created native window.
ctx
The connection to the composition manager. This context must have been created with screen_create_context().

Library:

libscreen

Description:

Function Type: Immediate Execution

This function creates a window object. The window size defaults to full screen when it is created. This is equivalent to calling screen_create_window_type() with type as SCREEN_APPLICATION_WINDOW.

Returns:

0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).