Functions
Drm device functions

Functions that deal with finding, opening, closing, or obtaining various information about a drm device. More...

Functions

EAPI Ecore_Drm2_Device * ecore_drm2_device_find (const char *seat, unsigned int tty)
 Try to find a drm device on a given seat. More...
 
EAPI int ecore_drm2_device_open (Ecore_Drm2_Device *device)
 Try to open a given Ecore_Drm2_Device. More...
 
EAPI void ecore_drm2_device_close (Ecore_Drm2_Device *device)
 Close an open Ecore_Drm2_Device. More...
 
EAPI void ecore_drm2_device_free (Ecore_Drm2_Device *device)
 Free a given 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_keyboard_cached_context_set (Ecore_Drm2_Device *device, void *context)
 Set a cached context to be used on keyboards. More...
 
EAPI void ecore_drm2_device_keyboard_cached_keymap_set (Ecore_Drm2_Device *device, void *keymap)
 Set a cached keymap 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...
 

Detailed Description

Functions that deal with finding, opening, closing, or obtaining various information about a drm device.

Function Documentation

§ ecore_drm2_device_find()

EAPI Ecore_Drm2_Device* ecore_drm2_device_find ( const char *  seat,
unsigned int  tty 
)

Try to find a drm device on a given seat.

Parameters
seat
tty
sync
Returns
A newly allocated Ecore_Drm2_Device on success, NULL otherwise
Since
1.18

References eina_stringshare_del(), elput_manager_connect(), and ERR.

§ ecore_drm2_device_open()

EAPI int ecore_drm2_device_open ( Ecore_Drm2_Device *  device)

Try to open a given Ecore_Drm2_Device.

Parameters
device
Returns
A valid file descriptor if open succeeds, -1 otherwise.
Since
1.18

§ ecore_drm2_device_close()

EAPI void ecore_drm2_device_close ( Ecore_Drm2_Device *  device)

Close an open Ecore_Drm2_Device.

Parameters
device
Since
1.18

§ ecore_drm2_device_free()

EAPI void ecore_drm2_device_free ( Ecore_Drm2_Device *  device)

Free a given Ecore_Drm2_Device.

Parameters
device
Since
1.18

§ ecore_drm2_device_clock_id_get()

EAPI int ecore_drm2_device_clock_id_get ( Ecore_Drm2_Device *  device)

Get the type of clock used by a given Ecore_Drm2_Device.

Parameters
device
Returns
The clockid_t used by this drm device
Since
1.18

§ ecore_drm2_device_cursor_size_get()

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.

Parameters
device
width
height
Since
1.18

§ ecore_drm2_device_pointer_xy_get()

EAPI void ecore_drm2_device_pointer_xy_get ( Ecore_Drm2_Device *  device,
int *  x,
int *  y 
)

Get the current pointer position.

Parameters
device
x
y
Since
1.18

§ ecore_drm2_device_pointer_warp()

EAPI void ecore_drm2_device_pointer_warp ( Ecore_Drm2_Device *  device,
int  x,
int  y 
)

Warp the pointer position to given coordinates.

Parameters
dev
x
y
Since
1.18

§ ecore_drm2_device_pointer_left_handed_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.

Parameters
device
left
Returns
EINA_TRUE on success, EINA_FALSE otherwise
Since
1.18

§ ecore_drm2_device_window_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.

Parameters
device
window
Since
1.18

§ ecore_drm2_device_pointer_max_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.

Parameters
device
w
h
Since
1.18

§ ecore_drm2_device_keyboard_cached_context_set()

EAPI void ecore_drm2_device_keyboard_cached_context_set ( Ecore_Drm2_Device *  device,
void *  context 
)

Set a cached context to be used on keyboards.

Parameters
device
context
Since
1.18

§ ecore_drm2_device_keyboard_cached_keymap_set()

EAPI void ecore_drm2_device_keyboard_cached_keymap_set ( Ecore_Drm2_Device *  device,
void *  keymap 
)

Set a cached keymap to be used on keyboards.

Parameters
device
keymap
Since
1.18

§ ecore_drm2_device_crtcs_get()

EAPI unsigned int* ecore_drm2_device_crtcs_get ( Ecore_Drm2_Device *  device,
int *  num 
)

Get the crtcs of a given device.

Parameters
device
num
Returns
The crtcs of this given device or NULL on failure
Since
1.18

§ ecore_drm2_device_screen_size_range_get()

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.

Parameters
device
*minw
*minh
*maxw
*maxh
Since
1.18

§ ecore_drm2_device_calibrate()

EAPI void ecore_drm2_device_calibrate ( Ecore_Drm2_Device *  device,
int  w,
int  h 
)

Calibrate any input devices for given screen size.

Parameters
device
w
h
Since
1.18

§ ecore_drm2_device_vt_set()

EAPI Eina_Bool ecore_drm2_device_vt_set ( Ecore_Drm2_Device *  device,
int  vt 
)

Try to switch to a given virtual terminal.

Parameters
device
vt
Returns
EINA_TRUE on success, EINA_FALSE otherwise
Since
1.18