summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-07-31 21:23:35 +0200
committerdavemds <dave@gurumeditation.it>2014-07-31 21:23:35 +0200
commit5aa12930a1ac3971d36c3b713fa010d96cd1c607 (patch)
treef9038d8b2710c7afc74b261d8a5be513caec748c
parent1af5adb8cd2bddc404a2f480f7f9d066ad286bd1 (diff)
Implemented missed ecore.x screensaver functions
-rw-r--r--efl/ecore/x.pxd17
-rw-r--r--efl/ecore/x.pyx65
2 files changed, 82 insertions, 0 deletions
diff --git a/efl/ecore/x.pxd b/efl/ecore/x.pxd
index 12dd83b..6b24b84 100644
--- a/efl/ecore/x.pxd
+++ b/efl/ecore/x.pxd
@@ -1303,6 +1303,23 @@ cdef extern from "Ecore_X.h":
1303 1303
1304 void ecore_x_e_virtual_keyboard_state_set(Ecore_X_Window win, Ecore_X_Virtual_Keyboard_State state) 1304 void ecore_x_e_virtual_keyboard_state_set(Ecore_X_Window win, Ecore_X_Virtual_Keyboard_State state)
1305 1305
1306 Eina_Bool ecore_x_screensaver_event_available_get()
1307 int ecore_x_screensaver_idle_time_get()
1308 void ecore_x_screensaver_set(int timeout, int interval, int prefer_blanking, int allow_exposures)
1309 void ecore_x_screensaver_timeout_set(int timeout)
1310 int ecore_x_screensaver_timeout_get()
1311 void ecore_x_screensaver_blank_set(int timeout)
1312 int ecore_x_screensaver_blank_get()
1313 void ecore_x_screensaver_expose_set(int timeout)
1314 int ecore_x_screensaver_expose_get()
1315 void ecore_x_screensaver_interval_set(int timeout)
1316 int ecore_x_screensaver_interval_get()
1317 void ecore_x_screensaver_event_listen_set(Eina_Bool on)
1318 Eina_Bool ecore_x_screensaver_custom_blanking_enable()
1319 Eina_Bool ecore_x_screensaver_custom_blanking_disable()
1320 void ecore_x_screensaver_supend()
1321 void ecore_x_screensaver_resume()
1322
1306 1323
1307from efl.ecore cimport Event 1324from efl.ecore cimport Event
1308 1325
diff --git a/efl/ecore/x.pyx b/efl/ecore/x.pyx
index c0e6f74..2f854b7 100644
--- a/efl/ecore/x.pyx
+++ b/efl/ecore/x.pyx
@@ -233,5 +233,70 @@ def keyboard_ungrab():
233 ecore_x_keyboard_ungrab() 233 ecore_x_keyboard_ungrab()
234 234
235 235
236def screensaver_event_available_get():
237 """ .. versionadded:: 1.11 """
238 return bool(ecore_x_screensaver_event_available_get())
239
240def screensaver_idle_time_get():
241 """ .. versionadded:: 1.11 """
242 return ecore_x_screensaver_idle_time_get()
243
244def screensaver_set(int timeout, int interval, int prefer_blanking, int allow_exposures):
245 """ .. versionadded:: 1.11 """
246 ecore_x_screensaver_set(timeout, interval, prefer_blanking, allow_exposures)
247
248def screensaver_timeout_set(int timeout):
249 """ .. versionadded:: 1.11 """
250 ecore_x_screensaver_timeout_set(timeout)
251
252def screensaver_timeout_get():
253 """ .. versionadded:: 1.11 """
254 return ecore_x_screensaver_timeout_get()
255
256def screensaver_blank_set(int timeout):
257 """ .. versionadded:: 1.11 """
258 ecore_x_screensaver_blank_set(timeout)
259
260def screensaver_blank_get():
261 """ .. versionadded:: 1.11 """
262 return ecore_x_screensaver_blank_get()
263
264def screensaver_expose_set(int timeout):
265 """ .. versionadded:: 1.11 """
266 ecore_x_screensaver_expose_set(timeout)
267
268def screensaver_expose_get():
269 """ .. versionadded:: 1.11 """
270 return ecore_x_screensaver_expose_get()
271
272def screensaver_interval_set(int timeout):
273 """ .. versionadded:: 1.11 """
274 ecore_x_screensaver_interval_set(timeout)
275
276def screensaver_interval_get():
277 """ .. versionadded:: 1.11 """
278 return ecore_x_screensaver_interval_get()
279
280def screensaver_event_listen_set(Eina_Bool on):
281 """ .. versionadded:: 1.11 """
282 ecore_x_screensaver_event_listen_set(on)
283
284def screensaver_custom_blanking_enable():
285 """ .. versionadded:: 1.11 """
286 return bool(ecore_x_screensaver_custom_blanking_enable())
287
288def screensaver_custom_blanking_disable():
289 """ .. versionadded:: 1.11 """
290 return bool(ecore_x_screensaver_custom_blanking_disable())
291
292def screensaver_supend():
293 """ .. versionadded:: 1.11 """
294 ecore_x_screensaver_supend()
295
296def screensaver_resume():
297 """ .. versionadded:: 1.11 """
298 ecore_x_screensaver_resume()
299
300
236include "x_window.pxi" 301include "x_window.pxi"
237include "x_events.pxi" 302include "x_events.pxi"