Class: Rabbit::DependencyCanvas

Inherits:
Canvas
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/rabbit/dependency-canvas.rb

Constant Summary

Constants inherited from Canvas

Canvas::INTERNAL_DPI

Constants included from GetText

GetText::DOMAIN

Instance Attribute Summary

Attributes inherited from Canvas

#actions, #allotted_time, #comment_theme, #comments, #font_resolution_ratio, #last_modified, #logger, #max_n_comments, #migemo_dictionary_name, #migemo_dictionary_search_path, #output_html, #output_index_html, #renderer, #rss_base_uri, #saved_image_base_name, #saved_image_type, #source_filename, #use_gl

Instance Method Summary collapse

Methods inherited from Canvas

#<<, #action, #activate, #append_comment, #apply_theme, #apply_timer, #applying?, #attach_to, #cache_all_slides, #change_current_index, #current_index, #current_slide, #delete_on_comment_proc_by_name, #detach, #each, #find_slide, #first_slide?, #font_resolution, #front, #full_path, #fullscreened, #have_next?, #have_next_slide?, #have_previous?, #have_previous_slide?, #iconified, #index_mode?, #last_slide?, #merge_theme, #move_to_first, #move_to_if_can, #move_to_last, #move_to_next_if_can, #move_to_next_slide_if_can, #move_to_previous_if_can, #move_to_previous_slide_if_can, #need_reload_source?, #next_slide, #on_comment, #parse, #parsing?, #post_terminal, #pre_terminal, #print, #processing?, #quit, #quitted?, #reload_source, #reload_theme, #reset_timer, #rest_time, #save_as_image, #slide_index, #slide_indexes, #slide_size, #slide_text, #slide_title, #slides, #source, #source_force_modified, #start_auto_redraw_timer, #start_timer, #stop_auto_redraw_timer, #theme_name, #title, #title_slide, #tmp_dir_name, #to_pixbuf, #toggle_index_mode, #unfullscreened, #update_index_slides, #use_gl?, #with_index_mode

Methods included from GetText

included

Constructor Details

#initialize(parent, *rest, &block) ⇒ DependencyCanvas

Returns a new instance of DependencyCanvas.


26
27
28
29
30
31
# File 'lib/rabbit/dependency-canvas.rb', line 26

def initialize(parent, *rest, &block)
  @parent = parent
  super(*rest, &block)
  self.base_width = @parent.base_width
  self.base_height = @parent.base_height
end