Tizen(Headed) Native API
6.5
|
Functions that deal with creating, destroying, or interacting with Wayland windows
Functions | |
Ecore_Wl2_Window * | ecore_wl2_window_new (Ecore_Wl2_Display *display, Ecore_Wl2_Window *parent, int x, int y, int w, int h) |
Create a new Ecore_Wl2_Window. | |
int | ecore_wl2_window_id_get (Ecore_Wl2_Window *window) |
Get the window id associated with an Ecore_Wl2_Window. | |
void | ecore_wl2_window_show (Ecore_Wl2_Window *window) |
Show a given Ecore_Wl2_Window. | |
void | ecore_wl2_window_hide (Ecore_Wl2_Window *window) |
Hide a given Ecore_Wl2_Window. | |
void | ecore_wl2_window_free (Ecore_Wl2_Window *window) |
Free a given Ecore_Wl2_Window. | |
void | ecore_wl2_window_raise (Ecore_Wl2_Window *window) |
Raise a given Ecore_Wl2_Window. | |
void | ecore_wl2_window_lower (Ecore_Wl2_Window *window) |
Lower the target window. | |
void | ecore_wl2_window_activate (Ecore_Wl2_Window *window) |
Activate the target window. | |
void | ecore_wl2_window_buffer_attach (Ecore_Wl2_Window *win, void *buffer, int x, int y, Eina_Bool implicit) |
Attach a buffer to a window. | |
void | ecore_wl2_window_damage (Ecore_Wl2_Window *window, Eina_Rectangle *rects, unsigned int count) |
Specifies the area of the window's surface that needs updating internally calling wl_surface_damage. | |
Eina_Bool | ecore_wl2_window_alpha_get (Ecore_Wl2_Window *window) |
Get if a given window is alpha. | |
void | ecore_wl2_window_alpha_set (Ecore_Wl2_Window *window, Eina_Bool alpha) |
Set a given window's alpha property. | |
void | ecore_wl2_window_title_set (Ecore_Wl2_Window *window, const char *title) |
Set the title of a given window. | |
const char * | ecore_wl2_window_title_get (Ecore_Wl2_Window *window) |
Get the title of a given window. | |
Ecore_Wl2_Display * | ecore_wl2_window_display_get (const Ecore_Wl2_Window *window) |
Get which display a given window is using. | |
void | ecore_wl2_window_focus_skip_set (Ecore_Wl2_Window *window, Eina_Bool focus_skip) |
Set if this window should ignore focus requests. | |
Eina_Bool | ecore_wl2_window_focus_skip_get (Ecore_Wl2_Window *window) |
Get if this window ignores focus requests. | |
void | ecore_wl2_window_video_has (Ecore_Wl2_Window *window, Eina_Bool has) |
Register the tizen protocol to provide video through the window's surface. | |
void | ecore_wl2_window_commit (Ecore_Wl2_Window *window, Eina_Bool flush) |
Commit the surface of a wayland window. | |
Ecore_Wl2_Frame_Cb_Handle * | ecore_wl2_window_frame_callback_add (Ecore_Wl2_Window *window, Ecore_Wl2_Frame_Cb cb, void *data) |
Add a callback that fires when the window's surface_frame callback fires. | |
void | ecore_wl2_window_frame_callback_del (Ecore_Wl2_Frame_Cb_Handle *handle) |
Delete a callback that fires when the window's surface_frame callback fires. | |
Eina_Bool | ecore_wl2_window_keygrab_set (Ecore_Wl2_Window *win, const char *key, int mod, int not_mod, int priority, Ecore_Wl2_Window_Keygrab_Mode grab_mode) |
Sets keygrab value of the window. | |
Eina_Bool | ecore_wl2_window_keygrab_unset (Ecore_Wl2_Window *win, const char *key, int mod, int any_mod) |
Unsets keygrab value of the window. | |
Eina_List * | ecore_wl2_window_keygrab_list_set (Ecore_Wl2_Window *win, Eina_List *infos) |
Sets keygrab values of the window. | |
Eina_List * | ecore_wl2_window_keygrab_list_unset (Ecore_Wl2_Window *win, Eina_List *infos) |
Unsets keygrab values of the window. | |
Ecore_Wl2_Egl_Window * | ecore_wl2_egl_window_create (Ecore_Wl2_Window *window, int w, int h) |
Creates wl_egl_window. | |
void | ecore_wl2_egl_window_destroy (Ecore_Wl2_Egl_Window *egl_win) |
Destroy a given Ecore_Wl2_Egl_Window. | |
void * | ecore_wl2_egl_window_native_get (Ecore_Wl2_Egl_Window *egl_win) |
Gets the wl_egl_window that this ecore_wl2_egl_window is using. | |
void | ecore_wl2_egl_window_resize_with_rotation (Ecore_Wl2_Egl_Window *egl_win, int dx, int dy, int w, int h, int rotation) |
Ecore_Wl2_Egl_Window resize with rotation. | |
void * | ecore_wl2_window_native_surface_get (Ecore_Wl2_Window *window) |
Get the native surface(wl_surface) which belongs to this window. | |
Eina_Bool | ecore_wl2_window_video_surface_create (Ecore_Wl2_Window *win) |
Create a video surface for a given window. | |
void * | ecore_wl2_window_video_surface_get (Ecore_Wl2_Window *win) |
Get video surface for a given window. | |
Eina_Bool | ecore_wl2_window_video_surface_destroy (Ecore_Wl2_Window *win) |
Destroy a video surface for a given window. | |
Eina_Bool | ecore_wl2_window_video_surface_sync_set (Ecore_Wl2_Window *win, Eina_Bool sync) |
Set video surface for a given window to synchronized mode the default commit behaviour is synchronized mode. | |
Eina_Bool | ecore_wl2_window_video_surface_destination_set (Ecore_Wl2_Window *win, int x, int y, int w, int h) |
Set destination area of video surface for a given window. | |
int | ecore_wl2_window_render_sync_fd_create (Ecore_Wl2_Window *win, Ecore_Wl2_Window_Render_Sync_Type sync_type) |
Create a file descriptor for rendering sync for a given window. | |
Typedefs | |
typedef enum _Ecore_Wl2_Window_Render_Sync_Type | Ecore_Wl2_Window_Render_Sync_Type |
Defines the types to create a file descriptor which is used for informing render event on the native surface. |
Typedef Documentation
Defines the types to create a file descriptor which is used for informing render event on the native surface.
- Since :
- 6.0
Enumeration Type Documentation
Defines the types to create a file descriptor which is used for informing render event on the native surface.
- Since :
- 6.0
Function Documentation
Ecore_Wl2_Egl_Window* ecore_wl2_egl_window_create | ( | Ecore_Wl2_Window * | window, |
int | w, | ||
int | h | ||
) |
Creates wl_egl_window.
Create wl_egl_window through the connected wl_surface of ecore_wl2_window.
- Parameters:
-
window The Ecore_Wl2_Window w The width of wl_egl_window h The height of wl_egl_window
- Returns:
- The newly created Ecore_Wl2_Egl_Window
- Since :
- 6.0
void ecore_wl2_egl_window_destroy | ( | Ecore_Wl2_Egl_Window * | egl_win | ) |
Destroy a given Ecore_Wl2_Egl_Window.
- Parameters:
-
egl_win The Ecore_Wl2_Egl_Window to destroy
- Since :
- 6.0
void* ecore_wl2_egl_window_native_get | ( | Ecore_Wl2_Egl_Window * | egl_win | ) |
Gets the wl_egl_window that this ecore_wl2_egl_window is using.
Cast the wl_egl_window struct pointer not included in the Managed API to void pointer This pointer can be used as an argument to the function passed to wl_egl_window.
- Parameters:
-
egl_win The Ecore_Wl2_Egl_Window
- Returns:
- The wl_egl_window, it provided as void type
- Since :
- 6.0
void ecore_wl2_egl_window_resize_with_rotation | ( | Ecore_Wl2_Egl_Window * | egl_win, |
int | dx, | ||
int | dy, | ||
int | w, | ||
int | h, | ||
int | rotation | ||
) |
Ecore_Wl2_Egl_Window resize with rotation.
- Parameters:
-
egl_win The Ecore_Wl2_Egl_Window dx The x coord resize dy The y coord resize w The width of Ecore_Wl2_Egl_Window h The height of Ecore_Wl2_Egl_Window rotation The angle of rotation
- Since :
- 6.0
void ecore_wl2_window_activate | ( | Ecore_Wl2_Window * | window | ) |
Activate the target window.
- Parameters:
-
window The target window
- Since :
- 6.0
Eina_Bool ecore_wl2_window_alpha_get | ( | Ecore_Wl2_Window * | window | ) |
Get if a given window is alpha.
- Parameters:
-
window The window to get if is alpha
- Returns:
- EINA_TRUE if window is alpha, EINA_FALSE otherwise
- Since (EFL) :
- 1.17
- Since :
- 6.0
void ecore_wl2_window_alpha_set | ( | Ecore_Wl2_Window * | window, |
Eina_Bool | alpha | ||
) |
Set a given window's alpha property.
- Parameters:
-
window The window on which to set the alpha property alpha EINA_TRUE to set window as alpha, EINA_FALSE otherwise
- Since (EFL) :
- 1.17
- Since :
- 6.0
void ecore_wl2_window_buffer_attach | ( | Ecore_Wl2_Window * | win, |
void * | buffer, | ||
int | x, | ||
int | y, | ||
Eina_Bool | implicit | ||
) |
Attach a buffer to a window.
Note that the GL stack my attach buffers to a surface - we should call this function at that time (with a NULL buffer) to track whether a surface has a valid buffer. That is, call with implicit true and buffer NULL at the time of glSwapBuffers.
- Parameters:
-
window The target window buffer The buffer to attach x X offset from corner y Y offset from corner implicit True if an external library is doing the actual attaching
- Since (EFL) :
- 1.21
- Since :
- 6.0
void ecore_wl2_window_commit | ( | Ecore_Wl2_Window * | window, |
Eina_Bool | flush | ||
) |
Commit the surface of a wayland window.
If flush is set this generates a wl_surface_commit(), otherwise it is expected that some other call in the very near future (such as eglSwapBuffers) will cause an implicit flush.
A surface that has been commit will be in the "pending" state until the compositor tells us it's time to draw again via a frame callback.
- Parameters:
-
window The window whose surface we want to commit flush EINA_TRUE if we need to flush immediately.
- Since (EFL) :
- 1.21
- Since :
- 6.0
void ecore_wl2_window_damage | ( | Ecore_Wl2_Window * | window, |
Eina_Rectangle * | rects, | ||
unsigned int | count | ||
) |
Specifies the area of the window's surface that needs updating internally calling wl_surface_damage.
- Parameters:
-
window The target window rects The rect area that will cause damage count The number of rects
- Since :
- 6.0
Ecore_Wl2_Display* ecore_wl2_window_display_get | ( | const Ecore_Wl2_Window * | window | ) |
Get which display a given window is using.
- Parameters:
-
window The window to get the display of
- Returns:
- The Ecore_Wl2_Display that this window is using, or NULL otherwise
- Since (EFL) :
- 1.17
- Since :
- 6.0
Eina_Bool ecore_wl2_window_focus_skip_get | ( | Ecore_Wl2_Window * | window | ) |
Get if this window ignores focus requests.
- Parameters:
-
window The window to get the focus skip value from
- Returns:
- EINA_TRUE if a window should skip focus requests, EINA_FALSE otherwise
- Since (EFL) :
- 1.20
- Since :
- 6.0
void ecore_wl2_window_focus_skip_set | ( | Ecore_Wl2_Window * | window, |
Eina_Bool | focus_skip | ||
) |
Set if this window should ignore focus requests.
- Parameters:
-
window The window to set ignore focus requests on focus_skip EINA_TRUE if this window should skip focus requests, EINA_FALSE otherwise
- Since (EFL) :
- 1.20
- Since :
- 6.0
Ecore_Wl2_Frame_Cb_Handle* ecore_wl2_window_frame_callback_add | ( | Ecore_Wl2_Window * | window, |
Ecore_Wl2_Frame_Cb | cb, | ||
void * | data | ||
) |
Add a callback that fires when the window's surface_frame callback fires.
- Parameters:
-
window The window to add a callback on cb The callback data User data to provide to the callback handler
- Returns:
- The Ecore_Wl2_Frame_Cb_Handle
- See also:
- ecore_wl2_window_frame_callback_del
- Since (EFL) :
- 1.21
- Since :
- 6.0
void ecore_wl2_window_frame_callback_del | ( | Ecore_Wl2_Frame_Cb_Handle * | handle | ) |
Delete a callback that fires when the window's surface_frame callback fires.
- Parameters:
-
handle The callback handle obtained through ecore_wl2_window_frame_callback_add().
- Since (EFL) :
- 1.21
- Since :
- 6.0
void ecore_wl2_window_free | ( | Ecore_Wl2_Window * | window | ) |
Free a given Ecore_Wl2_Window.
- Parameters:
-
window The Ecore_Wl2_Window to free
- Since (EFL) :
- 1.17
- Since :
- 6.0
void ecore_wl2_window_hide | ( | Ecore_Wl2_Window * | window | ) |
Hide a given Ecore_Wl2_Window.
- Parameters:
-
window The Ecore_Wl2_Window to hide
- Since (EFL) :
- 1.17
- Since :
- 6.0
int ecore_wl2_window_id_get | ( | Ecore_Wl2_Window * | window | ) |
Get the window id associated with an Ecore_Wl2_Window.
- Parameters:
-
window The Ecore_Wl2_Window of which to retrieve the window id
- Returns:
- The id associated with this window
- Since (EFL) :
- 1.17
- Since :
- 6.0
Eina_List* ecore_wl2_window_keygrab_list_set | ( | Ecore_Wl2_Window * | win, |
Eina_List * | infos | ||
) |
Sets keygrab values of the window.
- Warning:
- This is not for use by third-party applications.
- third-party application can use ECORE_WL2_WINDOW_KEYGRAB_TOPMOST mode without keygrab privilege. don't use other modes. those are not for third-party application.
The returned list should be freed with eina_list_free()
when you no longer need it.
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/keygrab
- Parameters:
-
win The window infos The list of keys and grab modes for setting keygrab
- Returns:
- NULL, or the list of keys being failed keygrab set.
- Exceptions:
-
TIZEN_ERROR_NONE Successfully set TIZEN_ERROR_INVALID_PARAMETER Invalid parameter has given TIZEN_ERROR_PERMISSION_DENIED Privilege permission denied
Ecore_Wl2_Window_Keygrab_Info *info = malloc(sizeof(Ecore_Wl2_Window_Keygrab_Info)); info->key = "XF86AudioLowerVolume"; info->mode = ECORE_WL2_WINDOW_KEYGRAB_TOPMOST; infos = eina_list_append(infos, info);
ecore_wl2_window_keygrab_list_set(win, infos);
- Since :
- 6.0
Eina_List* ecore_wl2_window_keygrab_list_unset | ( | Ecore_Wl2_Window * | win, |
Eina_List * | infos | ||
) |
Unsets keygrab values of the window.
- Warning:
- This is not for use by third-party applications.
- third-party application can use ECORE_WL2_WINDOW_KEYGRAB_TOPMOST mode without keygrab privilege. don't use other modes. those are not for third-party application.
The returned list should be freed with eina_list_free()
when you no longer need it.
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/keygrab
- Parameters:
-
win The window infos The list of infos for unsetting keygrab
- Returns:
- NULL, or the list of keys being failed keygrab unset.
- Exceptions:
-
TIZEN_ERROR_NONE Successfully set TIZEN_ERROR_INVALID_PARAMETER Invalid parameter has given TIZEN_ERROR_PERMISSION_DENIED Privilege permission denied
Ecore_Wl2_Window_Keygrab_Info *info = malloc(sizeof(Ecore_Wl2_Window_Keygrab_Info)); info->key = "XF86AudioLowerVolume"; infos = eina_list_append(infos, info);
ecore_wl2_window_keygrab_list_unset(win, infos);
- Since :
- 6.0
Eina_Bool ecore_wl2_window_keygrab_set | ( | Ecore_Wl2_Window * | win, |
const char * | key, | ||
int | mod, | ||
int | not_mod, | ||
int | priority, | ||
Ecore_Wl2_Window_Keygrab_Mode | grab_mode | ||
) |
Sets keygrab value of the window.
- Warning:
- This is not for use by third-party applications.
- third-party application can use ECORE_WL2_WINDOW_KEYGRAB_TOPMOST mode without keygrab privilege. don't use other modes. those are not for third-party application.
This function grabs the key
of window using grab_mode
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/keygrab
- Parameters:
-
win The target Ecore_Wl2_Window key The string is the keyname to grab mod A combination of modifier keys that must be present to trigger the event. Not supported yet not_mod A combination of modifier keys that must not be present to trigger the event. Not supported yet priority Not supported yet grab_mode Describes how the key should be grabbed, wrt. focus and stacking
- Returns:
true
on success,false
otherwise
- Exceptions:
-
TIZEN_ERROR_NONE Successfully set TIZEN_ERROR_INVALID_PARAMETER Invalid parameter has given TIZEN_ERROR_ALREADY_IN_PROGRESS The key already has been grabbed TIZEN_ERROR_PERMISSION_DENIED Privilege permission denied
- Since :
- 6.0
Eina_Bool ecore_wl2_window_keygrab_unset | ( | Ecore_Wl2_Window * | win, |
const char * | key, | ||
int | mod, | ||
int | any_mod | ||
) |
Unsets keygrab value of the window.
- Warning:
- This is not for use by third-party applications.
- third-party application can use ECORE_WL2_WINDOW_KEYGRAB_TOPMOST mode without keygrab privilege. don't use other modes. those are not for third-party application.
This function unset keygrab value. Ungrab key
of window.
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/keygrab
- Parameters:
-
win The target Ecore_Wl2_Window key The string is the keyname to grab mod A combination of modifier keys that must be present to trigger the event. Not supported yet not_mod A combination of modifier keys that must not be present to trigger the event. Not supported yet
- Returns:
true
on success,false
otherwise
- Exceptions:
-
TIZEN_ERROR_NONE Successfully set TIZEN_ERROR_INVALID_PARAMETER Invalid parameter has given TIZEN_ERROR_ALREADY_IN_PROGRESS The key already has been grabbed TIZEN_ERROR_PERMISSION_DENIED Privilege permission denied
- Since :
- 6.0
void ecore_wl2_window_lower | ( | Ecore_Wl2_Window * | window | ) |
Lower the target window.
- Note:
- This API call causes the ECORE_WL2_EVENT_WINDOW_LOWER event
- Parameters:
-
window The target window
- Since :
- 6.0
void* ecore_wl2_window_native_surface_get | ( | Ecore_Wl2_Window * | window | ) |
Get the native surface(wl_surface) which belongs to this window.
- Note:
- The native wl_surface struct is not included in the managed API list and is provided as a void pointer
- Parameters:
-
window The Ecore_Wl2_Window to get the surface of
- Returns:
- The wl_surface associated with this window It provided as void type
- Since :
- 6.0
Ecore_Wl2_Window* ecore_wl2_window_new | ( | Ecore_Wl2_Display * | display, |
Ecore_Wl2_Window * | parent, | ||
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Create a new Ecore_Wl2_Window.
- Parameters:
-
display The Ecore_Wl2_Display on which to create this new window parent The Ecore_Wl2_Window which is the parent of this window x Initial x position of window y Initial y position of window w Initial width of window h Initial height of window
- Returns:
- The Ecore_Wl2_Window that newly creating, or NULL failure
- Since (EFL) :
- 1.17
- Since :
- 6.0
void ecore_wl2_window_raise | ( | Ecore_Wl2_Window * | window | ) |
Raise a given Ecore_Wl2_Window.
- Parameters:
-
window The Ecore_Wl2_Window which to raise
- Since (EFL) :
- 1.17
- Since :
- 6.0
int ecore_wl2_window_render_sync_fd_create | ( | Ecore_Wl2_Window * | win, |
Ecore_Wl2_Window_Render_Sync_Type | sync_type | ||
) |
Create a file descriptor for rendering sync for a given window.
- Parameters:
-
win The window to create a file descriptor for rendering sync sync_type The one of Ecore_Wl2_Window_Render_Sync_Type to create a file descriptor
- Returns:
- The file descriptor. It must be closed manually by the caller using `close`
- Since :
- 6.0
void ecore_wl2_window_show | ( | Ecore_Wl2_Window * | window | ) |
Show a given Ecore_Wl2_Window.
- Parameters:
-
window The Ecore_Wl2_Window to show
- Since (EFL) :
- 1.17
- Since :
- 6.0
const char* ecore_wl2_window_title_get | ( | Ecore_Wl2_Window * | window | ) |
Get the title of a given window.
- Parameters:
-
window The window to set the title of
- Returns:
- A string if found, or NULL otherwise
- Since (EFL) :
- 1.24
- Since :
- 6.0
void ecore_wl2_window_title_set | ( | Ecore_Wl2_Window * | window, |
const char * | title | ||
) |
Set the title of a given window.
- Parameters:
-
window The window to set the title of title The title of the window
- Since (EFL) :
- 1.17
- Since :
- 6.0
void ecore_wl2_window_video_has | ( | Ecore_Wl2_Window * | window, |
Eina_Bool | has | ||
) |
Register the tizen protocol to provide video through the window's surface.
- Parameters:
-
window The target window has EINA_TRUE to set window has video, EINA_FALSE otherwise
- Since :
- 6.0
Create a video surface for a given window.
- Parameters:
-
win The window to create a video surface
- Returns:
EINA_TRUE
on success,EINA_FALSE
otherwise
- Since :
- 6.0
Eina_Bool ecore_wl2_window_video_surface_destination_set | ( | Ecore_Wl2_Window * | win, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Set destination area of video surface for a given window.
- Parameters:
-
win The window to set destination area of video surface x X position of destination area y Y position of destination area w Width of destination area h Height of destination area
- Returns:
EINA_TRUE
on success,EINA_FALSE
otherwise
- Since :
- 6.0
Destroy a video surface for a given window.
- Parameters:
-
win The window to destroy a video surface
- Returns:
EINA_TRUE
on success,EINA_FALSE
otherwise
- Since :
- 6.0
void* ecore_wl2_window_video_surface_get | ( | Ecore_Wl2_Window * | win | ) |
Get video surface for a given window.
- Parameters:
-
win The window to get video surface
- Returns:
- The wl_surface which is used by this window as a video surface It provided as void type
- Since :
- 6.0
Eina_Bool ecore_wl2_window_video_surface_sync_set | ( | Ecore_Wl2_Window * | win, |
Eina_Bool | sync | ||
) |
Set video surface for a given window to synchronized mode the default commit behaviour is synchronized mode.
- Parameters:
-
win The window to set video surface to synchronized mode sync EINA_TRUE to set video surface to synchronized mode, EINA_FALSE to set video surface to desynchronized mode
- Returns:
EINA_TRUE
on success,EINA_FALSE
otherwise
- Since :
- 6.0