Included Modules

Class/Module Index [+]

Quicksearch

Rabbit::Renderer::Pixmap::Base

Attributes

filename[RW]
height[RW]
pango_context[RW]
width[RW]

Public Class Methods

new(canvas, width=nil, height=nil) click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 18
def initialize(canvas, width=nil, height=nil)
  super(canvas)
  @width = width
  @height = height
  @filename = nil
  init_dummy_pixmap
  init_color
  @pango_context = nil
end

Public Instance Methods

create_pango_context() click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 68
def create_pango_context
  context = Gtk::Invisible.new.create_pango_context
  set_font_resolution(context)
  context
end
draw_slide(slide, simulation) click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 85
def draw_slide(slide, simulation)
  init_pixmap(slide, simulation)
  super
end
index_mode_off() click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 46
def index_mode_off
end
index_mode_on() click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 43
def index_mode_on
end
make_layout(text) click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 55
def make_layout(text)
  attrs, text = Pango.parse_markup(text)
  layout = Pango::Layout.new(@pango_context || create_pango_context)
  layout.text = text
  layout.set_attributes(attrs)
  layout
end
post_apply_theme() click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 28
def post_apply_theme
end
post_move(old_index, index) click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 31
def post_move(old_index, index)
end
post_move_in_slide(old_index, index) click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 34
def post_move_in_slide(old_index, index)
end
post_parse() click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 40
def post_parse
end
post_to_pixbuf(canceled) click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 82
def post_to_pixbuf(canceled)
end
post_toggle_index_mode() click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 52
def post_toggle_index_mode
end
pre_parse() click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 37
def pre_parse
end
pre_to_pixbuf(slide_size) click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 74
def pre_to_pixbuf(slide_size)
end
pre_toggle_index_mode() click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 49
def pre_toggle_index_mode
end
to_pixbuf(slide) click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 63
def to_pixbuf(slide)
  slide.draw(@canvas)
  Utils.drawable_to_pixbuf(@pixmap)
end
to_pixbufing(i) click to toggle source
# File lib/rabbit/renderer/pixmap/base.rb, line 77
def to_pixbufing(i)
  Utils.process_pending_events
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.