Module: Clutter::Threads
- Defined in:
- lib/clutter/threads.rb
Class Method Summary collapse
- .add_idle(priority = nil, &block) ⇒ Object
- .add_idle_full ⇒ Object
- .add_timeout(interval_or_priority, interval = nil, &block) ⇒ Object
- .add_timeout_full ⇒ Object
Class Method Details
.add_idle(priority = nil, &block) ⇒ Object
32 33 34 35 |
# File 'lib/clutter/threads.rb', line 32 def add_idle(priority=nil, &block) priority ||= GLib::PRIORITY_DEFAULT_IDLE add_idle_full(priority, &block) end |
.add_idle_full ⇒ Object
31 |
# File 'lib/clutter/threads.rb', line 31 alias_method :add_idle_full, :add_idle |
.add_timeout(interval_or_priority, interval = nil, &block) ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/clutter/threads.rb', line 21 def add_timeout(interval_or_priority, interval=nil, &block) if interval.nil? priority, interval = GLib::PRIORITY_DEFAULT, interval_or_priority add_timeout_full(priority, interval, &block) else priority = interval_or_priority add_timeout_full(priority, interval, &block) end end |
.add_timeout_full ⇒ Object
20 |
# File 'lib/clutter/threads.rb', line 20 alias_method :add_timeout_full, :add_timeout |