Functions that deal with finding, opening, closing, and otherwise using the DRM device itself. More...
Functions | |
EAPI Ecore_Drm_Device * | ecore_drm_device_find (const char *name, const char *seat) |
Find a drm device in the system. More... | |
EAPI void | ecore_drm_device_free (Ecore_Drm_Device *dev) |
Free an Ecore_Drm_Device. More... | |
EAPI Eina_Bool | ecore_drm_device_open (Ecore_Drm_Device *dev) |
Open an Ecore_Drm_Device. More... | |
EAPI Eina_Bool | ecore_drm_device_close (Ecore_Drm_Device *dev) |
Close an Ecore_Drm_Device. More... | |
EAPI Eina_Bool | ecore_drm_device_master_get (Ecore_Drm_Device *dev) |
Get if a given Ecore_Drm_Device is master. More... | |
EAPI Eina_Bool | ecore_drm_device_master_set (Ecore_Drm_Device *dev) |
Set a given Ecore_Drm_Device to master. More... | |
EAPI Eina_Bool | ecore_drm_device_master_drop (Ecore_Drm_Device *dev) |
Tell a given Ecore_Drm_Device to stop being master. More... | |
EAPI int | ecore_drm_device_fd_get (Ecore_Drm_Device *dev) |
Get the file descriptor of Ecore_Drm_Device. More... | |
EAPI void | ecore_drm_device_window_set (Ecore_Drm_Device *dev, unsigned int window) |
Set the window of Ecore_Drm_Device. More... | |
EAPI const char * | ecore_drm_device_name_get (Ecore_Drm_Device *dev) |
Get the name of the Ecore_Drm_Device. More... | |
EAPI Eina_Bool | ecore_drm_device_software_setup (Ecore_Drm_Device *dev) |
Setup an Ecore_Drm_Device for software rendering. More... | |
EAPI Eina_Bool | ecore_drm_device_pointer_left_handed_set (Ecore_Drm_Device *dev, Eina_Bool left_handed) |
Set a left handed mode at the given Ecore_Drm_Device. More... | |
EAPI void | ecore_drm_device_keyboard_cached_context_set (struct xkb_context *ctx) |
Setup a cached context to use same context for each devices. More... | |
EAPI void | ecore_drm_device_keyboard_cached_keymap_set (struct xkb_keymap *map) |
Setup a cached keymap to use same keymap for each devices. More... | |
EAPI Ecore_Drm_Output * | ecore_drm_device_output_find (Ecore_Drm_Device *dev, int x, int y) |
Find an Ecore_Drm_Output at the given coordinates. More... | |
EAPI void | ecore_drm_device_pointer_xy_get (Ecore_Drm_Device *dev, int *x, int *y) |
Get the pointer position of Ecore_Drm_Device. More... | |
EAPI void | ecore_drm_device_pointer_warp (Ecore_Drm_Device *dev, int x, int y) |
Warp the pointer position of Ecore_Drm_Device. More... | |
EAPI const Eina_List * | ecore_drm_devices_get (void) |
Get the list of drm devices which are allocated. More... | |
EAPI void | ecore_drm_screen_size_range_get (Ecore_Drm_Device *dev, int *minw, int *minh, int *maxw, int *maxh) |
Get the minimum and maximum screen size range. More... | |
EAPI Ecore_Drm_Output * | ecore_drm_device_output_name_find (Ecore_Drm_Device *dev, const char *name) |
Find an Ecore_Drm_Output which has the given name. More... | |
Functions that deal with finding, opening, closing, and otherwise using the DRM device itself.
EAPI Ecore_Drm_Device* ecore_drm_device_find | ( | const char * | name, |
const char * | seat | ||
) |
Find a drm device in the system.
name | The name of the device to find. If NULL, this function will search for the default drm device. |
seat | The name of the seat where this device may be found. If NULL, this function will use a default seat name 'seat0'. |
References DBG, eeze_udev_find_by_type(), eeze_udev_syspath_get_devpath(), eeze_udev_syspath_get_parent_filtered(), eeze_udev_syspath_get_property(), eeze_udev_syspath_get_sysattr(), eeze_udev_syspath_get_sysnum(), EEZE_UDEV_TYPE_DRM, EINA_FALSE, eina_list_append(), EINA_LIST_FOREACH, EINA_LIST_FREE, eina_stringshare_add(), eina_stringshare_del(), and EINA_TRUE.
EAPI void ecore_drm_device_free | ( | Ecore_Drm_Device * | dev | ) |
Free an Ecore_Drm_Device.
This function will cleanup and free any previously allocated Ecore_Drm_Device.
dev | The Ecore_Drm_Device to free |
Referenced by ecore_drm_shutdown().
EAPI Eina_Bool ecore_drm_device_open | ( | Ecore_Drm_Device * | dev | ) |
Open an Ecore_Drm_Device.
This function will open an existing Ecore_Drm_Device for use.
dev | The Ecore_Drm_Device to try and open |
References DBG, ECORE_FD_READ, ecore_main_fd_handler_add(), EEZE_UDEV_EVENT_ADD, EEZE_UDEV_EVENT_CHANGE, EEZE_UDEV_EVENT_REMOVE, EEZE_UDEV_TYPE_DRM, eeze_udev_watch_add(), EINA_FALSE, EINA_TRUE, and ERR.
EAPI Eina_Bool ecore_drm_device_close | ( | Ecore_Drm_Device * | dev | ) |
Close an Ecore_Drm_Device.
This function will close a previously opened Ecore_Drm_Device
dev | The Ecore_Drm_Device to free |
EAPI Eina_Bool ecore_drm_device_master_get | ( | Ecore_Drm_Device * | dev | ) |
Get if a given Ecore_Drm_Device is master.
This function will check if the given drm device is set to master
dev | The Ecore_Drm_Device to check |
References EINA_FALSE, and EINA_TRUE.
EAPI Eina_Bool ecore_drm_device_master_set | ( | Ecore_Drm_Device * | dev | ) |
Set a given Ecore_Drm_Device to master.
This function will attempt to set a given drm device to be master
dev | The Ecore_Drm_Device to set |
References DBG, EINA_FALSE, and EINA_TRUE.
EAPI Eina_Bool ecore_drm_device_master_drop | ( | Ecore_Drm_Device * | dev | ) |
Tell a given Ecore_Drm_Device to stop being master.
This function will attempt to ask a drm device to stop being master
dev | The Ecore_Drm_Device to set |
References DBG, EINA_FALSE, and EINA_TRUE.
EAPI int ecore_drm_device_fd_get | ( | Ecore_Drm_Device * | dev | ) |
Get the file descriptor of Ecore_Drm_Device.
This function will get the file descriptor of drm device
dev | The Ecore_Drm_Device to get |
EAPI void ecore_drm_device_window_set | ( | Ecore_Drm_Device * | dev, |
unsigned int | window | ||
) |
Set the window of Ecore_Drm_Device.
This function will set the window for given drm device
dev | The Ecore_Drm_Device for which window is set |
window | The window to set |
EAPI const char* ecore_drm_device_name_get | ( | Ecore_Drm_Device * | dev | ) |
Get the name of the Ecore_Drm_Device.
This function will return the name of Ecore_Drm_Device
dev | The Ecore_Drm_Device to get name |
EAPI Eina_Bool ecore_drm_device_software_setup | ( | Ecore_Drm_Device * | dev | ) |
Setup an Ecore_Drm_Device for software rendering.
This function will setup an Ecore_Drm_Device for software rendering which includes creating dumb buffers to render into
dev | The Ecore_Drm_Device to setup for software rendering |
EAPI Eina_Bool ecore_drm_device_pointer_left_handed_set | ( | Ecore_Drm_Device * | dev, |
Eina_Bool | left_handed | ||
) |
Set a left handed mode at the given Ecore_Drm_Device.
This function will loop all the registered inputs in Ecore_Drm_Device and set/unset left handed mode.
dev | The Ecore_Drm_Device to set left handed mode |
left_handed | The flag of enable/disable left handed mode |
EAPI void ecore_drm_device_keyboard_cached_context_set | ( | struct xkb_context * | ctx | ) |
Setup a cached context to use same context for each devices.
This function will setup a cached context to use same context for each devices This function will be called before initialize Ecore_Drm.
ctx | struct xkb_context used in libxkbcommon |
EAPI void ecore_drm_device_keyboard_cached_keymap_set | ( | struct xkb_keymap * | map | ) |
Setup a cached keymap to use same keymap for each devices.
This function will setup a cached keymap to use same keymap for each devices This function will be called before initialize Ecore_Drm.
map | struct xkb_keymap used in libxkbcommon |
EAPI Ecore_Drm_Output* ecore_drm_device_output_find | ( | Ecore_Drm_Device * | dev, |
int | x, | ||
int | y | ||
) |
Find an Ecore_Drm_Output at the given coordinates.
This function will loop all the existing outputs in Ecore_Drm_Device and return an output if one exists that encapsulates the given coordinates.
dev | The Ecore_Drm_Device to search |
x | The x coordinate |
y | The y coordinate |
EAPI void ecore_drm_device_pointer_xy_get | ( | Ecore_Drm_Device * | dev, |
int * | x, | ||
int * | y | ||
) |
Get the pointer position of Ecore_Drm_Device.
This function will give the pointer position of Ecore_Drm_Device
dev | The Ecore_Drm_Device to get pointer position for |
*x | The parameter in which output x co-ordinate is stored |
*y | The parameter in which output y co-ordinate is stored |
EAPI void ecore_drm_device_pointer_warp | ( | Ecore_Drm_Device * | dev, |
int | x, | ||
int | y | ||
) |
Warp the pointer position of Ecore_Drm_Device.
This function will set the pointer position of Ecore_Drm_Device
dev | The Ecore_Drm_Device to set pointer position for |
x | The new x co-ordinate |
y | The new y co-ordinate |
Get the list of drm devices which are allocated.
Referenced by ecore_drm_shutdown().
EAPI void ecore_drm_screen_size_range_get | ( | Ecore_Drm_Device * | dev, |
int * | minw, | ||
int * | minh, | ||
int * | maxw, | ||
int * | maxh | ||
) |
Get the minimum and maximum screen size range.
dev | The Ecore_Drm_Device to get screen size range from |
*minw | The parameter in which smallest width is stored |
*minh | The parameter in which smallest height is stored |
*maxw | The parameter in which largest width is stored |
*maxh | The parameter in which largest height is stored |
EAPI Ecore_Drm_Output* ecore_drm_device_output_name_find | ( | Ecore_Drm_Device * | dev, |
const char * | name | ||
) |
Find an Ecore_Drm_Output which has the given name.
This function will loop all the existing outputs in Ecore_Drm_Device and return an output if one exists that matches the given name.
dev | The Ecore_Drm_Device to search |
name | The Ecore_Drm_Output matching this name |