Module: Rabbit::Renderer::Display::Search
- Included in:
- ClutterEmbed, DrawingAreaBase
- Defined in:
- lib/rabbit/renderer/display/search.rb
Instance Method Summary collapse
- #initialize(*args, &block) ⇒ Object
- #search_slide(forward = true) ⇒ Object
- #searching? ⇒ Boolean
- #stop_slide_search ⇒ Object
Instance Method Details
#initialize(*args, &block) ⇒ Object
7 8 9 10 |
# File 'lib/rabbit/renderer/display/search.rb', line 7 def initialize(*args, &block) super init_search end |
#search_slide(forward = true) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/rabbit/renderer/display/search.rb', line 12 def (forward=true) if @search_window if @search_window.forward? == forward (true) else @search_window.forward = forward end else setup_search_window(forward) adjust_search_window @search_window.show end end |
#searching? ⇒ Boolean
31 32 33 |
# File 'lib/rabbit/renderer/display/search.rb', line 31 def searching? !@search_window.nil? end |
#stop_slide_search ⇒ Object
26 27 28 29 |
# File 'lib/rabbit/renderer/display/search.rb', line 26 def @search_window.destroy @search_window = nil end |