Ecore_X_RandR_Group

Langue: en

Autres versions - même langue

Version: 378368 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

X RandR Extension Functions -

Functions related to the X RandR extension.

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.

Detailed Description

Functions related to the X RandR extension.

Function Documentation

EAPI Ecore_X_Screen_Refresh_Rate ecore_x_randr_current_screen_refresh_rate_get (Ecore_X_Window root __UNUSED__)

Get the current refresh rate. Parameters:

root The window (Unused).

Returns:

The current refresh rate.

Get the current refresh rate supported by the screen associated to 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. Parameters:

root The window (Unused).

Returns:

The active size.

Get the active frame buffer size supported by the screen associated to 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. Parameters:

window The window.
on 1 to enable, 0 to disable.

Returns:

1 on success, 0 otherwise.

If 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. Parameters:

window Window whose properties are requested.

EAPI int ecore_x_randr_query (void)

Return whether the X server supports the RandR Extension. Returns:

1 if the X RandR Extension is available, 0 otherwise.

Return 1 if the X server supports the RandR Extension version 1.1, 0 otherwise.

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. Parameters:

root The root window.
size The size.
rate The refresh rate.

Set the size and the refresh rate of the screen associated to 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. Parameters:

root The window (Unused).
num The number of refresh rates.

Returns:

The refresh rates.

Get the list of refresh rates for each size supported by the screen associated to 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. Parameters:

root The window (Unused).

Returns:

The rotation.

Get the rotation supported by the screen associated to 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. Parameters:

root The root window.
rot The rotation.

Set the rotation of the screen associated to 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. Parameters:

root The window (Unused).

Returns:

The set of rotations and reflections.

Get the set of rotations and reflections supported by the screen associated to 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. Parameters:

root The root window.
size The size.

Set the size of the screen associated to 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. Parameters:

root The window (Unused).
num The number of sizes.

Returns:

The sizes.

Get the list of possible frame buffer sizes (at the normal orientation supported by the screen associated to 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.

Author

Generated automatically by Doxygen for Ecore from the source code.