# File lib/rabbit/front.rb, line 57 def initialize(canvas, public_level=nil) super() @canvas = canvas @image_type = "png" @public_level = public_level || PublicLevel::STRICT @previous_width = @canvas.width @previous_height = @canvas.height setup_public_interface clean end
# File lib/rabbit/front.rb, line 133 def accept_move? not (@public_level & Front::PublicLevel::MOVE).zero? end
# File lib/rabbit/front.rb, line 137 def append_comment(comment) GLib::Idle.add do @canvas.append_comment(comment) false end true end
# File lib/rabbit/front.rb, line 123 def available_interfaces AVAILABLE_INTERFACES.collect do |name, level, need_clear_cache| [name, level, @canvas.method(name).arity] end end
# File lib/rabbit/front.rb, line 68 def current_slide_image update_images_if_need @images[@canvas.current_index] end
# File lib/rabbit/front.rb, line 95 def current_slide_number @canvas.current_index end
# File lib/rabbit/front.rb, line 78 def current_slide_rd slide = @canvas.current_slide slide ? slide.to_rd : "" end
# File lib/rabbit/front.rb, line 73 def current_slide_text slide = @canvas.current_slide slide ? slide.text : "" end
# File lib/rabbit/front.rb, line 99 def first_slide? @canvas.first_slide? end
# File lib/rabbit/front.rb, line 111 def have_next? @canvas.have_next? end
# File lib/rabbit/front.rb, line 103 def have_next_slide? @canvas.have_next_slide? end
# File lib/rabbit/front.rb, line 115 def have_previous? @canvas.have_previous? end
# File lib/rabbit/front.rb, line 107 def have_previous_slide? @canvas.have_previous_slide? end
# File lib/rabbit/front.rb, line 119 def last_slide? @canvas.last_slide? end
# File lib/rabbit/front.rb, line 87 def slide_title @canvas.slide_title end
Generated with the Darkfish Rdoc Generator 2.