Functions | |
EAPI int | ecore_x_randr_query (void) |
Return whether the X server supports the RandR Extension. | |
EAPI int | ecore_x_randr_events_select (Ecore_X_Window window, int on) |
Select if the ScreenChangeNotify events will be sent. | |
EAPI void | ecore_x_randr_get_screen_info_prefetch (Ecore_X_Window window) |
Sends the GetScreenInfo request. | |
EAPI void | ecore_x_randr_get_screen_info_fetch (void) |
Gets the reply of the GetScreenInfo request sent by ecore_x_randr_get_screen_info_prefetch(). | |
EAPI Ecore_X_Randr_Rotation | ecore_x_randr_screen_rotations_get (Ecore_X_Window root __UNUSED__) |
Get the set of rotations and reflections. | |
EAPI Ecore_X_Randr_Rotation | ecore_x_randr_screen_rotation_get (Ecore_X_Window root __UNUSED__) |
Get the rotation. | |
EAPI Ecore_X_Screen_Size * | ecore_x_randr_screen_sizes_get (Ecore_X_Window root __UNUSED__, int *num) |
Get the frame buffer sizes. | |
EAPI Ecore_X_Screen_Size | ecore_x_randr_current_screen_size_get (Ecore_X_Window root __UNUSED__) |
Get the current frame buffer size. | |
EAPI Ecore_X_Screen_Refresh_Rate | ecore_x_randr_current_screen_refresh_rate_get (Ecore_X_Window root __UNUSED__) |
Get the current refresh rate. | |
EAPI Ecore_X_Screen_Refresh_Rate * | ecore_x_randr_screen_refresh_rates_get (Ecore_X_Window root __UNUSED__, int size_id __UNUSED__, int *num) |
Get the refresh rates. | |
EAPI void | ecore_x_randr_screen_rotation_set (Ecore_X_Window root, Ecore_X_Randr_Rotation rot) |
Set the screen rotation. | |
EAPI int | ecore_x_randr_screen_size_set (Ecore_X_Window root, Ecore_X_Screen_Size size) |
Set the screen size. | |
EAPI int | ecore_x_randr_screen_refresh_rate_set (Ecore_X_Window root, Ecore_X_Screen_Size size, Ecore_X_Screen_Refresh_Rate rate) |
Set the screen refresh rate. |
EAPI Ecore_X_Screen_Refresh_Rate ecore_x_randr_current_screen_refresh_rate_get | ( | Ecore_X_Window root | __UNUSED__ | ) |
Get the current refresh rate.
root | The window (Unused). |
window
(passed to ecore_x_randr_get_screen_info_prefetch()).To use this function, you must call before, and in order, ecore_x_randr_get_screen_info_prefetch(), which sends the GetScreenInfo request, then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
EAPI Ecore_X_Screen_Size ecore_x_randr_current_screen_size_get | ( | Ecore_X_Window root | __UNUSED__ | ) |
Get the current frame buffer size.
root | The window (Unused). |
window
(passed to ecore_x_randr_get_screen_info_prefetch()).To use this function, you must call before, and in order, ecore_x_randr_get_screen_info_prefetch(), which sends the GetScreenInfo request, then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
EAPI int ecore_x_randr_events_select | ( | Ecore_X_Window | window, | |
int | on | |||
) |
Select if the ScreenChangeNotify events will be sent.
window | The window. | |
on | 1 to enable, 0 to disable. |
on
value is 1
, ScreenChangeNotify events will be sent when the screen configuration changes, either from this protocol extension, or due to detected external screen configuration changes. ScreenChangeNotify may also be sent when this request executes if the screen configuration has changed since the client connected, to avoid race conditions.
EAPI void ecore_x_randr_get_screen_info_prefetch | ( | Ecore_X_Window | window | ) |
Sends the GetScreenInfo request.
window | Window whose properties are requested. |
EAPI int ecore_x_randr_query | ( | void | ) |
Return whether the X server supports the RandR Extension.
EAPI int ecore_x_randr_screen_refresh_rate_set | ( | Ecore_X_Window | root, | |
Ecore_X_Screen_Size | size, | |||
Ecore_X_Screen_Refresh_Rate | rate | |||
) |
Set the screen refresh rate.
root | The root window. | |
size | The size. | |
rate | The refresh rate. |
root
.Note that that function is blocking.
EAPI Ecore_X_Screen_Refresh_Rate* ecore_x_randr_screen_refresh_rates_get | ( | Ecore_X_Window root | __UNUSED__, | |
int size_id | __UNUSED__, | |||
int * | num | |||
) |
Get the refresh rates.
root | The window (Unused). | |
num | The number of refresh rates. |
window
(passed to ecore_x_randr_get_screen_info_prefetch()). Each element of 'sizes' has a corresponding element in 'refresh'. An empty list indicates no known rates, or a device for which refresh is not relevant.To use this function, you must call before, and in order, ecore_x_randr_get_screen_info_prefetch(), which sends the GetScreenInfo request, then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
EAPI Ecore_X_Randr_Rotation ecore_x_randr_screen_rotation_get | ( | Ecore_X_Window root | __UNUSED__ | ) |
Get the rotation.
root | The window (Unused). |
window
(passed to ecore_x_randr_get_screen_info_prefetch()).To use this function, you must call before, and in order, ecore_x_randr_get_screen_info_prefetch(), which sends the GetScreenInfo request, then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
EAPI void ecore_x_randr_screen_rotation_set | ( | Ecore_X_Window | root, | |
Ecore_X_Randr_Rotation | rot | |||
) |
Set the screen rotation.
root | The root window. | |
rot | The rotation. |
root
.Note that that function is blocking.
EAPI Ecore_X_Randr_Rotation ecore_x_randr_screen_rotations_get | ( | Ecore_X_Window root | __UNUSED__ | ) |
Get the set of rotations and reflections.
root | The window (Unused). |
window
(passed to ecore_x_randr_get_screen_info_prefetch()).To use this function, you must call before, and in order, ecore_x_randr_get_screen_info_prefetch(), which sends the GetScreenInfo request, then ecore_x_randr_get_screen_info_fetch(), which gets the reply.
EAPI int ecore_x_randr_screen_size_set | ( | Ecore_X_Window | root, | |
Ecore_X_Screen_Size | size | |||
) |
Set the screen size.
root | The root window. | |
size | The size. |
root
.Note that that function is blocking.
EAPI Ecore_X_Screen_Size* ecore_x_randr_screen_sizes_get | ( | Ecore_X_Window root | __UNUSED__, | |
int * | num | |||
) |
Get the frame buffer sizes.
root | The window (Unused). | |
num | The number of sizes. |
window
(passed to ecore_x_randr_get_screen_info_prefetch()). Each size indicates both the linear physical size of the screen and the pixel size.To use this function, you must call before, and in order, ecore_x_randr_get_screen_info_prefetch(), which sends the GetScreenInfo request, then ecore_x_randr_get_screen_info_fetch(), which gets the reply.