Functions that deal with finding, opening, closing, or obtaining various information about a drm device. More...
Functions | |
| EAPI Ecore_Drm2_Device * | ecore_drm2_device_open (const char *seat, unsigned int tty) |
| Try to open the Ecore_Drm2_Device for a given seat. More... | |
| EAPI void | ecore_drm2_device_close (Ecore_Drm2_Device *device) |
| Close an open Ecore_Drm2_Device. More... | |
| EAPI int | ecore_drm2_device_clock_id_get (Ecore_Drm2_Device *device) |
| Get the type of clock used by a given Ecore_Drm2_Device. More... | |
| EAPI void | ecore_drm2_device_cursor_size_get (Ecore_Drm2_Device *device, int *width, int *height) |
| Get the size of the cursor supported by a given Ecore_Drm2_Device. More... | |
| EAPI void | ecore_drm2_device_pointer_xy_get (Ecore_Drm2_Device *device, int *x, int *y) |
| Get the current pointer position. More... | |
| EAPI void | ecore_drm2_device_pointer_warp (Ecore_Drm2_Device *device, int x, int y) |
| Warp the pointer position to given coordinates. More... | |
| EAPI Eina_Bool | ecore_drm2_device_pointer_left_handed_set (Ecore_Drm2_Device *device, Eina_Bool left) |
| Set a left handed mode for the given device. More... | |
| EAPI void | ecore_drm2_device_window_set (Ecore_Drm2_Device *device, unsigned int window) |
| Set which window is to be used for input events. More... | |
| EAPI void | ecore_drm2_device_pointer_max_set (Ecore_Drm2_Device *device, int w, int h) |
| Set maximium position that pointer device is allowed to move. More... | |
| EAPI void | ecore_drm2_device_pointer_accel_speed_set (Ecore_Drm2_Device *device, double speed) |
| Set pointer acceleration speed. More... | |
| EAPI void | ecore_drm2_device_pointer_accel_profile_set (Ecore_Drm2_Device *device, uint32_t profile) |
| Set pointer acceleration profile. More... | |
| EAPI Eina_Bool | ecore_drm2_device_pointer_rotation_set (Ecore_Drm2_Device *device, int rotation) |
| Set pointer value rotation. More... | |
| EAPI void | ecore_drm2_device_touch_tap_to_click_enabled_set (Ecore_Drm2_Device *device, Eina_Bool enabled) |
| Enable or disable pointer tap-to-click. More... | |
| EAPI void | ecore_drm2_device_keyboard_info_set (Ecore_Drm2_Device *device, void *context, void *keymap, int group) |
| Set info to be used on keyboards. More... | |
| EAPI void | ecore_drm2_device_keyboard_group_set (Ecore_Drm2_Device *device, int group) |
| Set a group layout to be used on keyboards. More... | |
| EAPI unsigned int * | ecore_drm2_device_crtcs_get (Ecore_Drm2_Device *device, int *num) |
| Get the crtcs of a given device. More... | |
| EAPI void | ecore_drm2_device_screen_size_range_get (Ecore_Drm2_Device *device, int *minw, int *minh, int *maxw, int *maxh) |
| Get the minimum and maximum screen size range. More... | |
| EAPI void | ecore_drm2_device_calibrate (Ecore_Drm2_Device *device, int w, int h) |
| Calibrate any input devices for given screen size. More... | |
| EAPI Eina_Bool | ecore_drm2_device_vt_set (Ecore_Drm2_Device *device, int vt) |
| Try to switch to a given virtual terminal. More... | |
| EAPI Eina_Bool | ecore_drm2_device_prefer_shadow (Ecore_Drm2_Device *device) |
| Get if a given device prefers the use of shadow buffers. More... | |
| EAPI int | ecore_drm2_device_fd_get (Ecore_Drm2_Device *device) |
| Get the fd of an Ecore_Drm2_Device. More... | |
| EAPI Eina_Bool | ecore_drm2_vblank_supported (Ecore_Drm2_Device *dev) |
| Check if vblank is supported by the current video driver. More... | |
Functions that deal with finding, opening, closing, or obtaining various information about a drm device.
| EAPI Ecore_Drm2_Device* ecore_drm2_device_open | ( | const char * | seat, |
| unsigned int | tty | ||
| ) |
Try to open the Ecore_Drm2_Device for a given seat.
| seat | |
| tty |
References DBG, ecore_event_handler_add(), EINA_FALSE, elput_input_init(), elput_manager_connect(), elput_manager_open(), ERR, and WRN.
| EAPI void ecore_drm2_device_close | ( | Ecore_Drm2_Device * | device | ) |
Close an open Ecore_Drm2_Device.
| device |
References ecore_event_handler_del(), EINA_SAFETY_ON_NULL_RETURN, eina_stringshare_del(), elput_input_shutdown(), and elput_manager_close().
| EAPI int ecore_drm2_device_clock_id_get | ( | Ecore_Drm2_Device * | device | ) |
Get the type of clock used by a given Ecore_Drm2_Device.
| device |
References EINA_SAFETY_ON_NULL_RETURN_VAL.
| EAPI void ecore_drm2_device_cursor_size_get | ( | Ecore_Drm2_Device * | device, |
| int * | width, | ||
| int * | height | ||
| ) |
Get the size of the cursor supported by a given Ecore_Drm2_Device.
| device | |
| width | |
| height |
References EINA_SAFETY_ON_NULL_RETURN.
| EAPI void ecore_drm2_device_pointer_xy_get | ( | Ecore_Drm2_Device * | device, |
| int * | x, | ||
| int * | y | ||
| ) |
Get the current pointer position.
| device | |
| x | |
| y |
References EINA_SAFETY_ON_NULL_RETURN, and elput_input_pointer_xy_get().
| EAPI void ecore_drm2_device_pointer_warp | ( | Ecore_Drm2_Device * | device, |
| int | x, | ||
| int | y | ||
| ) |
Warp the pointer position to given coordinates.
| dev | |
| x | |
| y |
References EINA_SAFETY_ON_NULL_RETURN, and elput_input_pointer_xy_set().
| EAPI Eina_Bool ecore_drm2_device_pointer_left_handed_set | ( | Ecore_Drm2_Device * | device, |
| Eina_Bool | left | ||
| ) |
Set a left handed mode for the given device.
| device | |
| left |
References EINA_FALSE, EINA_SAFETY_ON_NULL_RETURN_VAL, and elput_input_pointer_left_handed_set().
| EAPI void ecore_drm2_device_window_set | ( | Ecore_Drm2_Device * | device, |
| unsigned int | window | ||
| ) |
Set which window is to be used for input events.
| device | |
| window |
References EINA_SAFETY_ON_NULL_RETURN, and elput_manager_window_set().
| EAPI void ecore_drm2_device_pointer_max_set | ( | Ecore_Drm2_Device * | device, |
| int | w, | ||
| int | h | ||
| ) |
Set maximium position that pointer device is allowed to move.
| device | |
| w | |
| h |
References EINA_SAFETY_ON_NULL_RETURN, and elput_input_pointer_max_set().
| EAPI void ecore_drm2_device_pointer_accel_speed_set | ( | Ecore_Drm2_Device * | device, |
| double | speed | ||
| ) |
Set pointer acceleration speed.
| device | |
| speed |
References EINA_SAFETY_ON_NULL_RETURN, and elput_input_pointer_accel_speed_set().
| EAPI void ecore_drm2_device_pointer_accel_profile_set | ( | Ecore_Drm2_Device * | device, |
| uint32_t | profile | ||
| ) |
Set pointer acceleration profile.
| device | |
| profile |
References EINA_SAFETY_ON_NULL_RETURN, and elput_input_pointer_accel_profile_set().
Set pointer value rotation.
| device | |
| rotation |
References EINA_FALSE, EINA_SAFETY_ON_NULL_RETURN_VAL, and elput_input_pointer_rotation_set().
| EAPI void ecore_drm2_device_touch_tap_to_click_enabled_set | ( | Ecore_Drm2_Device * | device, |
| Eina_Bool | enabled | ||
| ) |
Enable or disable pointer tap-to-click.
| device | |
| enabled |
References EINA_SAFETY_ON_NULL_RETURN, and elput_input_touch_tap_to_click_enabled_set().
| EAPI void ecore_drm2_device_keyboard_info_set | ( | Ecore_Drm2_Device * | device, |
| void * | context, | ||
| void * | keymap, | ||
| int | group | ||
| ) |
Set info to be used on keyboards.
| device | |
| context | |
| keymap | |
| group |
References EINA_SAFETY_ON_NULL_RETURN, and elput_input_keyboard_info_set().
| EAPI void ecore_drm2_device_keyboard_group_set | ( | Ecore_Drm2_Device * | device, |
| int | group | ||
| ) |
Set a group layout to be used on keyboards.
| device | |
| group |
References EINA_SAFETY_ON_NULL_RETURN, and elput_input_keyboard_group_set().
| EAPI unsigned int* ecore_drm2_device_crtcs_get | ( | Ecore_Drm2_Device * | device, |
| int * | num | ||
| ) |
Get the crtcs of a given device.
| device | |
| num |
References EINA_SAFETY_ON_NULL_RETURN_VAL.
| EAPI void ecore_drm2_device_screen_size_range_get | ( | Ecore_Drm2_Device * | device, |
| int * | minw, | ||
| int * | minh, | ||
| int * | maxw, | ||
| int * | maxh | ||
| ) |
Get the minimum and maximum screen size range.
| device | |
| *minw | |
| *minh | |
| *maxw | |
| *maxh |
References EINA_SAFETY_ON_NULL_RETURN.
| EAPI void ecore_drm2_device_calibrate | ( | Ecore_Drm2_Device * | device, |
| int | w, | ||
| int | h | ||
| ) |
Calibrate any input devices for given screen size.
| device | |
| w | |
| h |
References EINA_SAFETY_ON_NULL_RETURN, and elput_input_devices_calibrate().
Try to switch to a given virtual terminal.
| device | |
| vt |
References EINA_FALSE, EINA_SAFETY_ON_NULL_RETURN_VAL, and elput_manager_vt_set().
Get if a given device prefers the use of shadow buffers.
| device |
References EINA_FALSE, EINA_SAFETY_ON_NULL_RETURN_VAL, and EINA_TRUE.
| EAPI int ecore_drm2_device_fd_get | ( | Ecore_Drm2_Device * | device | ) |
Get the fd of an Ecore_Drm2_Device.
Query the fd of the device.
| device |
References EINA_SAFETY_ON_NULL_RETURN_VAL.
Check if vblank is supported by the current video driver.
| dev |
References EINA_FALSE, EINA_SAFETY_ON_NULL_RETURN_VAL, and EINA_TRUE.