### Home Classes Methods

### In Files

- lib/rabbit/renderer/base.rb

### Methods

- ::new
- #add_gesture_action
- #blackouting?
- #can_undo_graffiti?
- #change_graffiti_color
- #clean
- #clean_if_dirty
- #clear_slide
- #clear_theme
- #confirm
- #connect_key
- #create_pango_context
- #disconnect_key
- #display?
- #each_slide_pixbuf
- #expand_hole
- #font_families
- #gl_available?
- #graffiti_mode?
- #have_graffiti?
- #hiding?
- #narrow_hole
- #off_screen_canvas
- #page_margin_bottom
- #page_margin_left
- #page_margin_right
- #page_margin_top
- #post_init_gui
- #print
- #printable?
- #redraw
- #reset_adjustment
- #search_slide
- #searching?
- #setup_event
- #stop_slide_search
- #to_attrs
- #toggle_blackout
- #toggle_info_window
- #toggle_spotlight
- #toggle_whiteout
- #whiteouting?

### Included Modules

- ERB::Util
- Rabbit::GetText
- Rabbit::DirtyCount

### Class/Module Index

Quicksearch

- Rabbit
- Rabbit::AAFigureCanNotHandleError
- Rabbit::Action
- Rabbit::ApplyFinish
- Rabbit::AuthorConfiguration
- Rabbit::BlockDiagCanNotHandleError
- Rabbit::CantAllocateColorError
- Rabbit::CantFindHTMLTemplate
- Rabbit::CantFindThemeRDTemplate
- Rabbit::Canvas
- Rabbit::Command
- Rabbit::Command::Rabbit
- Rabbit::Command::RabbitSlide
- Rabbit::Command::RabbitTheme
- Rabbit::Config
- Rabbit::Console
- Rabbit::Converter
- Rabbit::CursorManager
- Rabbit::DependencyCanvas
- Rabbit::DiaCanNotHandleError
- Rabbit::DirtyCount
- Rabbit::EPSCanNotHandleError
- Rabbit::Element
- Rabbit::Element::Author
- Rabbit::Element::Base
- Rabbit::Element::Base::DrawHook
- Rabbit::Element::BlockElement
- Rabbit::Element::BlockHorizontalCentering
- Rabbit::Element::BlockQuote
- Rabbit::Element::Body
- Rabbit::Element::ClassName
- Rabbit::Element::Code
- Rabbit::Element::Comment
- Rabbit::Element::Container
- Rabbit::Element::ContainerElement
- Rabbit::Element::ContentSource
- Rabbit::Element::CustomTag
- Rabbit::Element::Date
- Rabbit::Element::DeletedText
- Rabbit::Element::DescriptionContent
- Rabbit::Element::DescriptionList
- Rabbit::Element::DescriptionListItem
- Rabbit::Element::DescriptionTerm
- Rabbit::Element::Emphasis
- Rabbit::Element::EnumList
- Rabbit::Element::EnumListItem
- Rabbit::Element::FootText
- Rabbit::Element::FootTextBlock
- Rabbit::Element::Footnote
- Rabbit::Element::HeadLine
- Rabbit::Element::Image
- Rabbit::Element::ImageTitleSlide
- Rabbit::Element::Index
- Rabbit::Element::IndexSlide
- Rabbit::Element::IndexThumbnail
- Rabbit::Element::IndexThumbnailRow
- Rabbit::Element::Institution
- Rabbit::Element::ItemList
- Rabbit::Element::ItemListItem
- Rabbit::Element::Keyboard
- Rabbit::Element::Keyword
- Rabbit::Element::MethodDescription
- Rabbit::Element::MethodKind
- Rabbit::Element::MethodList
- Rabbit::Element::MethodListItem
- Rabbit::Element::MethodName
- Rabbit::Element::MethodTerm
- Rabbit::Element::Note
- Rabbit::Element::Paragraph
- Rabbit::Element::Place
- Rabbit::Element::PopplerPage
- Rabbit::Element::PopplerSlide
- Rabbit::Element::PopplerTitleSlide
- Rabbit::Element::PreformattedBlock
- Rabbit::Element::PreformattedText
- Rabbit::Element::ReferText
- Rabbit::Element::Slide
- Rabbit::Element::SlideElement
- Rabbit::Element::Subscript
- Rabbit::Element::Subtitle
- Rabbit::Element::Superscript
- Rabbit::Element::SyntaxHighlightingBlock
- Rabbit::Element::SyntaxHighlightingText
- Rabbit::Element::Table
- Rabbit::Element::TableBody
- Rabbit::Element::TableCell
- Rabbit::Element::TableHead
- Rabbit::Element::TableHeader
- Rabbit::Element::TableRow
- Rabbit::Element::Text
- Rabbit::Element::TextBlock
- Rabbit::Element::TextBlockElement
- Rabbit::Element::TextContainer
- Rabbit::Element::TextContainerElement
- Rabbit::Element::TextElement
- Rabbit::Element::TextRenderer
- Rabbit::Element::Title
- Rabbit::Element::TitleSlide
- Rabbit::Element::Variable
- Rabbit::Element::Verbatim
- Rabbit::Element::Video
- Rabbit::Element::WaitBlock
- Rabbit::Element::WaitTag
- Rabbit::Element::When
- Rabbit::Element::Where
- Rabbit::EmbedFrame
- Rabbit::Error
- Rabbit::Format
- Rabbit::Format::ConvenienceTextFormatter
- Rabbit::Format::Foreground
- Rabbit::Format::Formatter
- Rabbit::Format::Size
- Rabbit::Format::SpanTextFormatter
- Rabbit::Format::ValueContainerFormatter
- Rabbit::Frame
- Rabbit::Front
- Rabbit::Front::PublicLevel
- Rabbit::GIMPCanNotHandleError
- Rabbit::GemBuilder
- Rabbit::GemFinder
- Rabbit::Gesture
- Rabbit::Gesture::Handler
- Rabbit::Gesture::Processor
- Rabbit::GetText
- Rabbit::Graffiti
- Rabbit::Graffiti::ConfigDialog
- Rabbit::Graffiti::Processor
- Rabbit::HTML
- Rabbit::HTML::Generator
- Rabbit::ImageFileDoesNotExistError
- Rabbit::ImageLoadError
- Rabbit::ImageLoadWithExternalCommandError
- Rabbit::ImageLoader
- Rabbit::ImageManipulable
- Rabbit::ImageManipulable::Base
- Rabbit::ImageManipulable::Default
- Rabbit::ImageManipulable::Dia
- Rabbit::ImageManipulable::EPS
- Rabbit::ImageManipulable::GIMP
- Rabbit::ImageManipulable::PDF
- Rabbit::ImageManipulable::SVG
- Rabbit::ImmutableSourceTypeError
- Rabbit::InfoWindow
- Rabbit::InvalidImageSizeError
- Rabbit::InvalidMotionError
- Rabbit::Keys
- Rabbit::Keys::Alt
- Rabbit::Keys::Control
- Rabbit::Keys::Shift
- Rabbit::Logger
- Rabbit::Logger::Base
- Rabbit::Logger::GUI
- Rabbit::Logger::STDERR
- Rabbit::Logger::Severity
- Rabbit::Menu
- Rabbit::ModuleLoader
- Rabbit::NoPrintSupportError
- Rabbit::NotAvailableInterfaceError
- Rabbit::NotExistError
- Rabbit::NotFileError
- Rabbit::NotReadableError
- Rabbit::NullFrame
- Rabbit::ParseError
- Rabbit::ParseFinish
- Rabbit::Parser
- Rabbit::Parser::Base
- Rabbit::Parser::Ext
- Rabbit::Parser::Ext::AAFigure
- Rabbit::Parser::Ext::BlockDiag
- Rabbit::Parser::Ext::CodeRay
- Rabbit::Parser::Ext::CodeRay::RabbitEncoder
- Rabbit::Parser::Ext::Emacs
- Rabbit::Parser::Ext::Enscript
- Rabbit::Parser::Ext::Entity
- Rabbit::Parser::Ext::Escape
- Rabbit::Parser::Ext::Image
- Rabbit::Parser::Ext::Image::Private
- Rabbit::Parser::Ext::Inline
- Rabbit::Parser::Ext::TeX
- Rabbit::Parser::Ext::Video
- Rabbit::Parser::Image
- Rabbit::Parser::Markdown
- Rabbit::Parser::Markdown::Converter
- Rabbit::Parser::NoteSetter
- Rabbit::Parser::PDF
- Rabbit::Parser::PauseSupport
- Rabbit::Parser::RD
- Rabbit::Parser::RD::Ext
- Rabbit::Parser::RD::Ext::Base
- Rabbit::Parser::RD::Ext::BlockVerbatim
- Rabbit::Parser::RD::Ext::CharacterReference
- Rabbit::Parser::RD::Ext::Image
- Rabbit::Parser::RD::Ext::InlineVerbatim
- Rabbit::Parser::RD::Ext::Refer
- Rabbit::Parser::RD::Ext::Video
- Rabbit::Parser::RD::RD2RabbitVisitor
- Rabbit::Parser::RD::Visitor
- Rabbit::Parser::SlidePropertySetter
- Rabbit::Parser::Wiki
- Rabbit::Parser::Wiki::RabbitOutput
- Rabbit::Parser::Wiki::RabbitOutput::BlockPlugin
- Rabbit::Parser::Wiki::RabbitOutput::InlinePlugin
- Rabbit::Parser::Wiki::RabbitOutput::InlinePlugin::Private
- Rabbit::PathManipulatable
- Rabbit::Progress
- Rabbit::READMEParser
- Rabbit::RT2RabbitVisitor
- Rabbit::Renderer
- Rabbit::Renderer::Base
- Rabbit::Renderer::Color
- Rabbit::Renderer::Display
- Rabbit::Renderer::Display::Base
- Rabbit::Renderer::Display::ButtonHandler
- Rabbit::Renderer::Display::ClutterEmbed
- Rabbit::Renderer::Display::Cursor
- Rabbit::Renderer::Display::DrawingArea
- Rabbit::Renderer::Display::DrawingAreaBase
- Rabbit::Renderer::Display::DrawingAreaPrimitive
- Rabbit::Renderer::Display::DrawingAreaViewOnly
- Rabbit::Renderer::Display::GL
- Rabbit::Renderer::Display::Gesture
- Rabbit::Renderer::Display::Graffiti
- Rabbit::Renderer::Display::HookHandler
- Rabbit::Renderer::Display::Info
- Rabbit::Renderer::Display::KeyHandler
- Rabbit::Renderer::Display::Magnifier
- Rabbit::Renderer::Display::Mask
- Rabbit::Renderer::Display::Menu
- Rabbit::Renderer::Display::Progress
- Rabbit::Renderer::Display::ScrollHandler
- Rabbit::Renderer::Display::Search
- Rabbit::Renderer::Display::Spotlight
- Rabbit::Renderer::Engine
- Rabbit::Renderer::Engine::Cairo
- Rabbit::Renderer::Engine::GDK
- Rabbit::Renderer::GL
- Rabbit::Renderer::Kernel
- Rabbit::Renderer::Pixmap
- Rabbit::Renderer::Pixmap::Base
- Rabbit::Renderer::Pixmap::Cairo
- Rabbit::Renderer::Pixmap::GDK
- Rabbit::Renderer::Pixmap::GL
- Rabbit::Renderer::Print
- Rabbit::Renderer::Print::Base
- Rabbit::Renderer::Print::Cairo
- Rabbit::Renderer::Print::Layout2
- Rabbit::Renderer::Print::LayoutBase
- Rabbit::Renderer::Print::LayoutMore
- Rabbit::Renderer::Print::Multiple
- Rabbit::SOAP
- Rabbit::SOAP::Driver
- Rabbit::SOAP::Server
- Rabbit::ScreenInfo
- Rabbit::SearchWindow
- Rabbit::Searcher
- Rabbit::SlideConfiguration
- Rabbit::Source
- Rabbit::Source::ARGF
- Rabbit::Source::Base
- Rabbit::Source::File
- Rabbit::Source::Hiki
- Rabbit::Source::LimitAccessInterval
- Rabbit::Source::Memory
- Rabbit::Source::SlideShare
- Rabbit::Source::URI
- Rabbit::SourceGenerator
- Rabbit::SourceGenerator::Hiki
- Rabbit::SourceGenerator::Markdown
- Rabbit::SourceGenerator::RD
- Rabbit::SourceUnreadableError
- Rabbit::Stock
- Rabbit::SystemRunner
- Rabbit::Task
- Rabbit::Task::Slide
- Rabbit::Task::SlideShare
- Rabbit::Task::SlideShare::Error
- Rabbit::Task::Theme
- Rabbit::TeXCanNotHandleError
- Rabbit::TemporaryFile
- Rabbit::Theme
- Rabbit::Theme::Applier
- Rabbit::Theme::DirectoryEntry
- Rabbit::Theme::ElementContainer
- Rabbit::Theme::Entry
- Rabbit::Theme::FileEntry
- Rabbit::Theme::GemEntry
- Rabbit::Theme::ImageDirectoryEntry
- Rabbit::Theme::ImageFileEntry
- Rabbit::Theme::ImageGemEntry
- Rabbit::Theme::Manager
- Rabbit::Theme::Searcher
- Rabbit::ThemeConfiguration
- Rabbit::ThemeExit
- Rabbit::TrackBall
- Rabbit::TrackBall::Vector
- Rabbit::UnknownCursorTypeError
- Rabbit::UnknownPropertyError
- Rabbit::UnsupportedFormatError
- Rabbit::Utils
- Rabbit::VideoWindow
- Rabbit::VideoWindow::VideoWidget
- Rabbit::XMLRPC
- Rabbit::XMLRPC::Client
- Rabbit::XMLRPC::Server
- Rabbit::XMLRPC::Servlet
- OptionParser
- OptionParser::Category
- OptionParser::List
- OptionParser::Switch
- Cairo
- Cairo::Context
- Gtk
- Gtk::Action
- Pango
- Pango::Context
- Object

No matching classes.

# Rabbit::Renderer::Base

### Attributes

adjustment_x[RW]
adjustment_y[RW]
draw_scaled_image[RW]
gl_quaternion[RW]
gl_scale[RW]
graffiti_color[RW]
graffiti_line_width[RW]
margin_bottom[RW]
margin_left[RW]
margin_right[RW]
margin_top[RW]
page_margin_bottom[W]
page_margin_left[W]
page_margin_right[W]
page_margin_top[W]
paper_height[RW]
paper_width[RW]
progress_background[RW]
progress_foreground[RW]
slides_per_page[RW]
x_dpi[R]
y_dpi[R]

### Public Class Methods

new(canvas) click to toggle source

    # File lib/rabbit/renderer/base.rb, line 41
    def initialize(canvas)
      super()
      @canvas = canvas
      @font_families = nil
      @paper_width = nil
      @paper_height = nil
      @slides_per_page = nil
      @margin_left = nil
      @margin_right = nil
      @margin_top = nil
      @margin_bottom = nil
      @page_margin_left = nil
      @page_margin_right = nil
      @page_margin_top = nil
      @page_margin_bottom = nil
      @whiteout = false
      @blackout = false
      @list_id = 0
      @adjustment_x = 0
      @adjustment_y = 0
      @progress_foreground = nil
      @progress_background = nil
      @graffiti_color = nil
      @graffiti_line_width = nil
      @draw_scaled_image = true
      clean
      init_dpi
      init_gl_parameters
    end

### Public Instance Methods

add_gesture_action(sequence, action, &block) click to toggle source

    # File lib/rabbit/renderer/base.rb, line 265
    def add_gesture_action(sequence, action, &block)
    end

blackouting?() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 197
    def blackouting?
      @blackout
    end

can_undo_graffiti?() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 236
    def can_undo_graffiti?
      false
    end

change_graffiti_color() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 262
    def change_graffiti_color
    end

clean() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 177
    def clean
      dirty_count_clean
    end

clean_if_dirty() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 181
    def clean_if_dirty
      clean if dirty?
    end

clear_slide() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 114
    def clear_slide
      current = @canvas.current_slide
      current.clear_waiting if current
    end

clear_theme() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 185
    def clear_theme
      init_color
      clear_keys
      clear_progress_color
      clear_graffiti_config
      clear_gesture_actions
    end

confirm() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 160
    def confirm
      true
    end

connect_key(keyval, modifier, flags, &block) click to toggle source

    # File lib/rabbit/renderer/base.rb, line 256
    def connect_key(keyval, modifier, flags, &block)
    end

create_pango_context() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 148
    def create_pango_context
      Pango::Context.new
    end

disconnect_key(keyval, modifier) click to toggle source

    # File lib/rabbit/renderer/base.rb, line 259
    def disconnect_key(keyval, modifier)
    end

display?() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 156
    def display?
      false
    end

each_slide_pixbuf() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 124
    def each_slide_pixbuf
      canvas = off_screen_canvas
      previous_index = canvas.current_index
      pre_to_pixbuf(canvas.slide_size)
      canceled = false
      canvas.slides.each_with_index do |slide, i|
        if !to_pixbufing(i) or !yield(slide, canvas.to_pixbuf(i), i)
          canceled = true
          break
        end
      end
      post_to_pixbuf(canceled)
      canvas.move_to_if_can(previous_index)
      canvas.activate("Quit") if canvas != @canvas
    end

expand_hole() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 240
    def expand_hole
    end

font_families() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 87
    def font_families
      if @font_families.nil? or @font_families.empty?
        @font_families = create_pango_context.families
      end
      @font_families
    end

gl_available?() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 221
    def gl_available?
      @canvas.use_gl? and gl_supported?
    end

graffiti_mode?() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 228
    def graffiti_mode?
      false
    end

have_graffiti?() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 232
    def have_graffiti?
      false
    end

hiding?() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 211
    def hiding?
      @blackout or @whiteout
    end

narrow_hole() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 243
    def narrow_hole
    end

off_screen_canvas() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 140
    def off_screen_canvas
      if off_screen_renderer?
        @canvas
      else
        make_canvas_with_off_screen_renderer
      end
    end

page_margin_bottom() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 83
    def page_margin_bottom
      @page_margin_bottom || 0
    end

page_margin_left() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 71
    def page_margin_left
      @page_margin_left || 0
    end

page_margin_right() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 75
    def page_margin_right
      @page_margin_right || 0
    end

page_margin_top() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 79
    def page_margin_top
      @page_margin_top || 0
    end

post_init_gui() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 225
    def post_init_gui
    end

print(&block) click to toggle source

    # File lib/rabbit/renderer/base.rb, line 94
    def print(&block)
      if printable?
        do_print(&block)
      else
        canvas = make_canvas_with_printable_renderer
        pre_print(canvas.slide_size)
        canceled = false
        canvas.print do |i|
          result = printing(i)
          canceled = !result
          result
        end
        post_print(canceled)
        canvas.activate("Quit")
      end
    end

printable?() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 152
    def printable?
      false
    end

redraw() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 111
    def redraw
    end

reset_adjustment() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 119
    def reset_adjustment
      @adjustment_x = 0
      @adjustment_y = 0
    end

search_slide(forward=true) click to toggle source

    # File lib/rabbit/renderer/base.rb, line 246
    def search_slide(forward=true)
    end

searching?() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 252
    def searching?
      false
    end

setup_event(area) click to toggle source

    # File lib/rabbit/renderer/base.rb, line 164
    def setup_event(area)
    end

stop_slide_search() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 249
    def stop_slide_search
    end

to_attrs(hash) click to toggle source

    # File lib/rabbit/renderer/base.rb, line 167
    def to_attrs(hash)
      hash.collect do |key, value|
        if value
          "#{h key}='#{h value}'"
        else
          nil
        end
      end.compact.join(" ")
    end

toggle_blackout() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 206
    def toggle_blackout
      @blackout = !@blackout
      @whiteout = false
    end

toggle_info_window() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 215
    def toggle_info_window
    end

toggle_spotlight() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 218
    def toggle_spotlight
    end

toggle_whiteout() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 201
    def toggle_whiteout
      @blackout = false
      @whiteout = !@whiteout
    end

whiteouting?() click to toggle source

    # File lib/rabbit/renderer/base.rb, line 193
    def whiteouting?
      @whiteout
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.