Parent

Class/Module Index [+]

Quicksearch

Rabbit::InfoWindow

Public Class Methods

new(canvas) click to toggle source
# File lib/rabbit/info-window.rb, line 22
def initialize(canvas)
  @canvas = canvas
  @window = nil
  @timer_started = false
  init_hook_handler
  init_key_handler
  init_button_handler
  init_scroll_handler
end

Public Instance Methods

hide() click to toggle source
# File lib/rabbit/info-window.rb, line 40
def hide
  return unless showing?
  detach_menu(@window)
  detach_key(@window)
  each do |canvas|
    canvas.detach
  end
  @window.signal_handler_disconnect(@window_destroy_id)
  @window.destroy
  @window = @window_destroy_id = nil
  @canvas_widgets = @outer_box = nil
  @timer_started = false
  @previous_canvas = @current_canvas = @next_canvas = nil
end
index_mode_off() click to toggle source
# File lib/rabbit/info-window.rb, line 71
def index_mode_off
  return unless showing?
  toggle_index_mode
end
index_mode_on() click to toggle source
# File lib/rabbit/info-window.rb, line 66
def index_mode_on
  return unless showing?
  toggle_index_mode
end
moved(index) click to toggle source
# File lib/rabbit/info-window.rb, line 59
def moved(index)
  return unless showing?
  check_timer
  update_note_text if on_note_mode?
  adjust_slide(index)
end
show(width=nil, height=nil) click to toggle source
# File lib/rabbit/info-window.rb, line 32
def show(width=nil, height=nil)
  init_gui(width, height)
  @window.show_all
  update_source
  toggle_index_mode if @canvas.index_mode?
  adjust_slide
end
showing?() click to toggle source
# File lib/rabbit/info-window.rb, line 55
def showing?
  !@window.nil?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.