Module: Rabbit::Renderer::Display::Info
- Included in:
- ClutterEmbed, DrawingAreaBase
- Defined in:
- lib/rabbit/renderer/display/info.rb
Instance Method Summary collapse
- #hide_info_window ⇒ Object
- #index_mode_off ⇒ Object
- #index_mode_on ⇒ Object
- #initialize(canvas) ⇒ Object
- #post_move(old_index, index) ⇒ Object
- #post_move_in_slide(old_index, index) ⇒ Object
- #post_parse ⇒ Object
- #show_info_window ⇒ Object
- #toggle_info_window ⇒ Object
Instance Method Details
#hide_info_window ⇒ Object
24 25 26 |
# File 'lib/rabbit/renderer/display/info.rb', line 24 def hide_info_window @info_window.hide end |
#index_mode_off ⇒ Object
48 49 50 51 |
# File 'lib/rabbit/renderer/display/info.rb', line 48 def index_mode_off super @info_window.index_mode_off end |
#index_mode_on ⇒ Object
43 44 45 46 |
# File 'lib/rabbit/renderer/display/info.rb', line 43 def index_mode_on super @info_window.index_mode_on end |
#initialize(canvas) ⇒ Object
7 8 9 10 |
# File 'lib/rabbit/renderer/display/info.rb', line 7 def initialize(canvas) super @info_window = InfoWindow.new(@canvas) end |
#post_move(old_index, index) ⇒ Object
33 34 35 36 |
# File 'lib/rabbit/renderer/display/info.rb', line 33 def post_move(old_index, index) super @info_window.moved end |
#post_move_in_slide(old_index, index) ⇒ Object
38 39 40 41 |
# File 'lib/rabbit/renderer/display/info.rb', line 38 def (old_index, index) super @info_window.moved end |
#post_parse ⇒ Object
28 29 30 31 |
# File 'lib/rabbit/renderer/display/info.rb', line 28 def post_parse super @info_window.parsed end |
#show_info_window ⇒ Object
20 21 22 |
# File 'lib/rabbit/renderer/display/info.rb', line 20 def show_info_window @info_window.show(width, height) end |
#toggle_info_window ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/rabbit/renderer/display/info.rb', line 12 def toggle_info_window if @info_window.showing? hide_info_window else show_info_window end end |