Tizen Native API
6.0
|
Functions to manipulate wayland subsurfaces, using Ecore_Wl2_Subsurface.
This API is intended to expose Wayland subsurface functionality, although it should not be necessary for most applications to use it, as soon as we have means to make Evas automatically switch Evas images to use subsurfaces.
It can/should be used, for instance, when subsurfaces are needed to be not in sync with the main window surface.
Functions | |
Ecore_Wl2_Subsurface * | ecore_wl2_subsurface_new (Ecore_Wl2_Window *window) |
Create and return a new subsurface. | |
void | ecore_wl2_subsurface_del (Ecore_Wl2_Subsurface *subsurface) |
Destroy the given subsurface, as well as the surface associated with it. | |
void | ecore_wl2_subsurface_sync_set (Ecore_Wl2_Subsurface *subsurface, Eina_Bool sync) |
Enables or disables sub-surface synchronization. | |
void * | ecore_wl2_subsurface_native_surface_get (Ecore_Wl2_Subsurface *subsurface) |
Get the wl_surface for this subsurface. | |
void | ecore_wl2_subsurface_place_surface_above (Ecore_Wl2_Subsurface *subsurface, Ecore_Wl2_Subsurface *other) |
Place subsurface on layer above a reference subsurface. | |
void | ecore_wl2_subsurface_place_surface_below (Ecore_Wl2_Subsurface *subsurface, Ecore_Wl2_Subsurface *other) |
Place subsurface on layer below a reference subsurface. | |
Eina_Bool | ecore_wl2_subsurface_video_surface_prepare (Ecore_Wl2_Subsurface *subsurface) |
Prepare video surface for a given subsurface. | |
Eina_Bool | ecore_wl2_subsurface_video_surface_destination_set (Ecore_Wl2_Subsurface *subsurface, int x, int y, int w, int h) |
Set destination area of video surface for a given subsurface. | |
Eina_Bool | ecore_wl2_subsurface_video_surface_rotation_set (Ecore_Wl2_Subsurface *subsurface, Ecore_Wl2_Subsurface_Rotation rotation) |
Set video surface rotation for a given subsurface. | |
void | ecore_wl2_subsurface_aux_hint_set (Ecore_Wl2_Subsurface *subsurface, const char *hint, const char *val) |
Set an auxiliary hint on a given subsurface. | |
Typedefs | |
typedef enum _Ecore_Wl2_Subsurface_Rotation | Ecore_Wl2_Subsurface_Rotation |
Defines the rotation types of video surface. |
Typedef Documentation
Defines the rotation types of video surface.
- Since :
- 6.0
Enumeration Type Documentation
Defines the rotation types of video surface.
- Since :
- 6.0
- Enumerator:
Function Documentation
void ecore_wl2_subsurface_aux_hint_set | ( | Ecore_Wl2_Subsurface * | subsurface, |
const char * | hint, | ||
const char * | val | ||
) |
Set an auxiliary hint on a given subsurface.
- Parameters:
-
subsurface The subsurface to set an auxiliary hint hint The auxiliary hint string val The value string
- Since :
- 6.0
void ecore_wl2_subsurface_del | ( | Ecore_Wl2_Subsurface * | subsurface | ) |
Destroy the given subsurface, as well as the surface associated with it.
- Parameters:
-
subsurface the subsurface
- Since (EFL) :
- 1.17
- Since :
- 6.0
void* ecore_wl2_subsurface_native_surface_get | ( | Ecore_Wl2_Subsurface * | subsurface | ) |
Get the wl_surface for this subsurface.
- Parameters:
-
subsurface the subsurface
- Returns:
- the wl_surface associated with this subsurface, or NULL on failure, provided as void type
- Since :
- 6.0
Ecore_Wl2_Subsurface* ecore_wl2_subsurface_new | ( | Ecore_Wl2_Window * | window | ) |
Create and return a new subsurface.
Create a new surface (and subsurface interface), with the parent surface being the one associated with the given window.
- Parameters:
-
window The window. It must be visible, otherwise there will be no surface created for it yet.
- Returns:
- the allocated and initialized Ecore_Wl2_Subsurface object, or NULL on failure
- Since (EFL) :
- 1.17
- Since :
- 6.0
void ecore_wl2_subsurface_place_surface_above | ( | Ecore_Wl2_Subsurface * | subsurface, |
Ecore_Wl2_Subsurface * | other | ||
) |
Place subsurface on layer above a reference subsurface.
Moves the subsurface to just above the reference subsurface, changing the z-order. The reference subsurface must be either a sibling or parent surface, else a protocol error will be generated.
- Parameters:
-
subsurface the subsurface other the sibling reference subsurface, or NULL for parent surface
- Since :
- 6.0
void ecore_wl2_subsurface_place_surface_below | ( | Ecore_Wl2_Subsurface * | subsurface, |
Ecore_Wl2_Subsurface * | other | ||
) |
Place subsurface on layer below a reference subsurface.
See ecore_wl2_subsurface_place_surface_above.
- Parameters:
-
subsurface the subsurface other the sibling reference subsurface, or NULL for parent surface
- Since :
- 6.0
void ecore_wl2_subsurface_sync_set | ( | Ecore_Wl2_Subsurface * | subsurface, |
Eina_Bool | sync | ||
) |
Enables or disables sub-surface synchronization.
When synchronization is enabled, surface commits on the subsurface will be cached and only applied when the parent surface's state is applied. This ensures atomic updates of the parent and all of its synchronized sub-surfaces.
When synchronization is disabled, commits will apply to the pending state directly without caching, just like a normal wl_surface. If there are already cached events when this is set, those events are applied simultaneously with the desync event.
Attempting to enable synchronization when the subsurface already thinks it's sync'd, or desync when it believes its desync'd, will be trivially ignored and will not generate a Wayland event.
See Wayland's set_desync documentation for further details and exceptional cases.
- Parameters:
-
subsurface the subsurface sync true to enable synchronization, false to desynchronize
- Since (EFL) :
- 1.17
- Since :
- 6.0
Eina_Bool ecore_wl2_subsurface_video_surface_destination_set | ( | Ecore_Wl2_Subsurface * | subsurface, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Set destination area of video surface for a given subsurface.
- Parameters:
-
subsurface The subsurface 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
Eina_Bool ecore_wl2_subsurface_video_surface_prepare | ( | Ecore_Wl2_Subsurface * | subsurface | ) |
Prepare video surface for a given subsurface.
- Parameters:
-
subsurface The subsurface to prepare video surface
- Returns:
EINA_TRUE
on success,EINA_FALSE
otherwise
- Since :
- 6.0
Eina_Bool ecore_wl2_subsurface_video_surface_rotation_set | ( | Ecore_Wl2_Subsurface * | subsurface, |
Ecore_Wl2_Subsurface_Rotation | rotation | ||
) |
Set video surface rotation for a given subsurface.
- Parameters:
-
subsurface The subsurface to set video surface rotation rotation The rotation type to set video surface rotation
- Returns:
EINA_TRUE
on success,EINA_FALSE
otherwise
- Since :
- 6.0