Enumerations | Enumerator | Functions
EFL Wayland

A multiseat Wayland compositor in an Evas object. More...

Enumerations

enum  Efl_Wl_Rotation {
  EFL_WL_ROTATION_0,
  EFL_WL_ROTATION_90,
  EFL_WL_ROTATION_180,
  EFL_WL_ROTATION_270
}
 The rotation to apply to the compositor's internal wl_output.
 

Functions

EAPI Evas_Objectefl_wl_add (Evas *e)
 Add a compositor widget to the given canvas. More...
 
EAPI Ecore_Exe * efl_wl_run (Evas_Object *obj, const char *cmd)
 Run a command in the compositor widget. More...
 
EAPI Eina_Bool efl_wl_next (Evas_Object *obj)
 Put the bottom-most toplevel window on top and apply focus to it. More...
 
EAPI Eina_Bool efl_wl_prev (Evas_Object *obj)
 Put the second top-most toplevel window on top and apply focus to it. More...
 
EAPI void efl_wl_rotate (Evas_Object *obj, Efl_Wl_Rotation rot, Eina_Bool rtl)
 Set rotation and flip for the compositor's output. More...
 
EAPI void efl_wl_scale_set (Evas_Object *obj, double scale)
 Set the scale factor for the compositor's output. More...
 

Detailed Description

A multiseat Wayland compositor in an Evas object.

All toplevel windows will be sized to the size of the compositor object.

Since
1.20

Function Documentation

◆ efl_wl_add()

EAPI Evas_Object* efl_wl_add ( Evas e)

Add a compositor widget to the given canvas.

Parameters
eThe canvas
Returns
The compositor object, NULL on failure

◆ efl_wl_run()

EAPI Ecore_Exe* efl_wl_run ( Evas_Object obj,
const char *  cmd 
)

Run a command in the compositor widget.

Note
If GL is available, the ELM_ACCEL environment variable will be set to "gl" while executing the command.
Parameters
objThe compositor widget
cmdThe command to run
Returns
The Ecore_Exe from the executed process, NULL on failure

References evas_object_type_get().

◆ efl_wl_next()

EAPI Eina_Bool efl_wl_next ( Evas_Object obj)

Put the bottom-most toplevel window on top and apply focus to it.

Parameters
objThe compositor widget
Returns
EINA_TRUE if the window stacking was changed

References evas_object_type_get().

◆ efl_wl_prev()

EAPI Eina_Bool efl_wl_prev ( Evas_Object obj)

Put the second top-most toplevel window on top and apply focus to it.

Parameters
objThe compositor widget
Returns
EINA_TRUE if the window stacking was changed

References evas_object_type_get().

◆ efl_wl_rotate()

EAPI void efl_wl_rotate ( Evas_Object obj,
Efl_Wl_Rotation  rot,
Eina_Bool  rtl 
)

Set rotation and flip for the compositor's output.

Parameters
objThe compositor widget
rotThe rotation to apply
rtlIf set, the output will apply a flip around the Y axis
Note
rtl is equivalent to WL_OUTPUT_TRANSFORM_FLIPPED and rotations are applied on top

References evas_object_type_get().

◆ efl_wl_scale_set()

EAPI void efl_wl_scale_set ( Evas_Object obj,
double  scale 
)

Set the scale factor for the compositor's output.

Parameters
objThe compositor widget
scaleThe scale factor to set

References evas_object_type_get().