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)

Since:

BlackBerry 10.0.0

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 (For the qcc command, use the -l screen option to link against this library)

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 a type of SCREEN_APPLICATION_WINDOW.

Returns:

0 if a new window was created, or -1 if an error occurred (errno is set).

Last modified: 2014-11-17



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus