efl/src/lib/ecore/ecore_poller.eo

42 lines
1.1 KiB
Plaintext
Raw Normal View History

class Ecore.Poller (Eo.Base)
2014-03-23 06:32:06 -07:00
{
methods {
constructor {
2015-06-08 09:36:23 -07:00
[[Constructor with parameters for Ecore Poller.]]
legacy: null;
2014-03-23 06:32:06 -07:00
params {
@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
}
}
@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.
]]
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.]]
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 {
Eo.Base.destructor;
Eo.Base.finalize;
2014-03-23 06:32:06 -07:00
}
constructors {
.constructor;
}
}