2014-06-26 11:37:40 -07:00
|
|
|
class Ecore.Poller (Eo.Base)
|
2014-03-23 06:32:06 -07:00
|
|
|
{
|
2014-08-27 07:01:09 -07:00
|
|
|
methods {
|
2014-09-01 07:53:35 -07:00
|
|
|
constructor {
|
2015-06-08 09:36:23 -07:00
|
|
|
[[Constructor with parameters for Ecore Poller.]]
|
2014-08-27 07:01:09 -07:00
|
|
|
legacy: null;
|
2014-03-23 06:32:06 -07:00
|
|
|
params {
|
2015-05-18 08:13:08 -07:00
|
|
|
@in type: Ecore_Poller_Type;
|
|
|
|
@in interval: int;
|
|
|
|
@in func: Ecore_Task_Cb;
|
|
|
|
@in data: const(void)*;
|
2014-03-23 06:32:06 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property interval {
|
2014-03-23 06:32:06 -07:00
|
|
|
set {
|
2015-06-08 09:36:23 -07:00
|
|
|
[[Changes the polling interval rate of the poller.
|
2014-03-23 06:32:06 -07:00
|
|
|
|
2015-06-08 09:36:23 -07:00
|
|
|
This allows the changing of a poller's polling interval. It is
|
|
|
|
useful when you want to alter a poll rate without deleting and
|
|
|
|
re-creating a poller.
|
|
|
|
]]
|
2014-08-07 08:58:45 -07:00
|
|
|
legacy: ecore_poller_poller_interval_set;
|
2015-06-08 09:36:23 -07:00
|
|
|
return: bool; [[true on success, false on failure.]]
|
2014-03-23 06:32:06 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-06-08 09:36:23 -07:00
|
|
|
[[Gets the polling interval rate of the poller.]]
|
2014-08-07 08:58:45 -07:00
|
|
|
legacy: ecore_poller_poller_interval_get;
|
2014-03-23 06:32:06 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-06-08 09:36:23 -07:00
|
|
|
interval: int; [[The tick interval; must be a power of 2 and <= 32768.]]
|
2014-03-23 06:32:06 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 03:14:59 -07:00
|
|
|
Eo.Base.destructor;
|
2015-05-20 06:56:45 -07:00
|
|
|
Eo.Base.finalize;
|
2014-03-23 06:32:06 -07:00
|
|
|
}
|
2014-09-01 07:53:35 -07:00
|
|
|
constructors {
|
|
|
|
.constructor;
|
|
|
|
}
|
2014-06-26 11:37:40 -07:00
|
|
|
}
|