forked from enlightenment/efl
Ecore_X: Add a missing function for getting the count of screens.
Bonus: Added doxy and the @since stuffs (for Tom) ;) NB: Needed for changes to ecore_evas as that was using xlib ScreenCount. This way we can just use ecore_x_screen_count_get and not have to worry if we are xcb/xlib/etc. SVN revision: 61728
This commit is contained in:
parent
210b6dcc9b
commit
72abee3481
|
@ -1088,6 +1088,7 @@ EAPI Ecore_X_Connection * ecore_x_connection_get(void);
|
||||||
EAPI int ecore_x_fd_get(void);
|
EAPI int ecore_x_fd_get(void);
|
||||||
EAPI Ecore_X_Screen * ecore_x_default_screen_get(void);
|
EAPI Ecore_X_Screen * ecore_x_default_screen_get(void);
|
||||||
EAPI void ecore_x_screen_size_get(const Ecore_X_Screen *screen, int *w, int *h);
|
EAPI void ecore_x_screen_size_get(const Ecore_X_Screen *screen, int *w, int *h);
|
||||||
|
EAPI int ecore_x_screen_count_get(void);
|
||||||
EAPI void ecore_x_double_click_time_set(double t);
|
EAPI void ecore_x_double_click_time_set(double t);
|
||||||
EAPI double ecore_x_double_click_time_get(void);
|
EAPI double ecore_x_double_click_time_get(void);
|
||||||
EAPI void ecore_x_flush(void);
|
EAPI void ecore_x_flush(void);
|
||||||
|
|
|
@ -1057,6 +1057,14 @@ ecore_x_screen_size_get(const Ecore_X_Screen *screen, int *w, int *h)
|
||||||
if (h) *h = s->height_in_pixels;
|
if (h) *h = s->height_in_pixels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves the number of screens.
|
||||||
|
*
|
||||||
|
* @return The count of the number of screens.
|
||||||
|
* @ingroup Ecore_X_Display_Attr_Group
|
||||||
|
*
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
EAPI int
|
EAPI int
|
||||||
ecore_x_screen_count_get(void)
|
ecore_x_screen_count_get(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -711,6 +711,22 @@ ecore_x_screen_size_get(const Ecore_X_Screen *screen, int *w, int *h)
|
||||||
if (h) *h = s->height;
|
if (h) *h = s->height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves the number of screens.
|
||||||
|
*
|
||||||
|
* @return The count of the number of screens.
|
||||||
|
* @ingroup Ecore_X_Display_Attr_Group
|
||||||
|
*
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
|
EAPI int
|
||||||
|
ecore_x_screen_count_get(void)
|
||||||
|
{
|
||||||
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
|
||||||
|
return ScreenCount(_ecore_x_disp);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the timeout for a double and triple clicks to be flagged.
|
* Sets the timeout for a double and triple clicks to be flagged.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue