Module: Rabbit::Renderer::Display::Search

Included in:
ClutterEmbed, DrawingAreaBase
Defined in:
lib/rabbit/renderer/display/search.rb

Instance Method Summary collapse

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 search_slide(forward=true)
  if @search_window
    if @search_window.forward? == forward
      search_slide_with_current_input(true)
    else
      @search_window.forward = forward
    end
  else
    setup_search_window(forward)
    adjust_search_window
    @search_window.show
  end
end

#searching?Boolean

Returns:

  • (Boolean)

31
32
33
# File 'lib/rabbit/renderer/display/search.rb', line 31

def searching?
  !@search_window.nil?
end

#stop_slide_searchObject


26
27
28
29
# File 'lib/rabbit/renderer/display/search.rb', line 26

def stop_slide_search
  @search_window.destroy
  @search_window = nil
end