Parent

Class/Module Index [+]

Quicksearch

Rabbit::Renderer::Display::ClutterEmbed

Attributes

filename[RW]

Public Class Methods

new(canvas) click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 52
def initialize(canvas)
  @recreate_id = nil
  @need_reload_theme = false
  super
  @filename = nil
  init_clutter_embed
end
priority() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 29
def priority
  0
end

Public Instance Methods

attach_to(window, container=nil) click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 191
def attach_to(window, container=nil)
  super

  init_menu
  add_widgets_to_container(@container)
  widget.show
  attach_menu(@window)
  attach_key(@window)
end
cache_all_slides() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 226
def cache_all_slides
end
clear_slide() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 64
def clear_slide
  super
  redraw
end
detach() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 201
def detach
  detach_key(@window)
  detach_menu(@window)
  widget.hide
  unless @window.destroyed?
    remove_widgets_from_container(@container)
  end

  super
end
display?() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 178
def display?
  true
end
index_mode_off() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 150
def index_mode_off
  restore_cursor(:index)
end
index_mode_on() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 145
def index_mode_on
  keep_cursor(:index)
  update_cursor(nil, true)
end
post_apply_theme() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 81
def post_apply_theme
  recreate_actors
end
post_fullscreen() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 69
def post_fullscreen
  update_cursor(:blank, true)
end
post_iconify() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 78
def post_iconify
end
post_move(old_index, index) click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 85
def post_move(old_index, index)
  update_title
  update_menu

  old_actor = retrieve_actor(old_index)
  old_actor.hide if old_actor
  actor = retrieve_actor(index)
  if actor and !hiding?
    actor.show
    actor.raise_top
    if old_actor
      transition = @canvas.slides[index].transition
      transition_method = "transition_#{transition}"
      if transition and respond_to?(transition_method, true)
        send(transition_method, old_actor, actor, old_index, index)
      end
    end
  end
end
post_move_in_slide(old_index, index) click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 105
def post_move_in_slide(old_index, index)
  actor = retrieve_actor(nil, old_index)
  actor.hide if actor
  actor = retrieve_actor(nil, index)
  if actor and !hiding?
    actor.show
    actor.raise_top
  end
end
post_parse() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 118
def post_parse
  clear_button_handler
  update_title
  update_menu
  if @need_reload_theme
    @need_reload_theme = false
    reload_theme
  end
end
post_to_pixbuf(canceled) click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 142
def post_to_pixbuf(canceled)
end
post_toggle_index_mode() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 131
def post_toggle_index_mode
  recreate_actors
end
post_unfullscreen() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 73
def post_unfullscreen
  update_cursor(nil, true)
  update_menu
end
pre_parse() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 115
def pre_parse
end
pre_to_pixbuf(slide_size) click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 135
def pre_to_pixbuf(slide_size)
end
pre_toggle_index_mode() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 128
def pre_toggle_index_mode
end
reload_theme(&callback) click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 182
def reload_theme(&callback)
  if @canvas.applying?
    @need_reload_theme = true
  else
    callback ||= Utils.process_pending_events_proc
    @canvas.activate("ReloadTheme", &callback)
  end
end
reset_adjustment() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 212
def reset_adjustment
  super
  @actors.each do |slide_actors|
    slide_actors.each do |actor|
      actor.x = 0
      actor.y = 0
      actor.set_scale(1, 1)
      actor.set_rotation(Clutter::X_AXIS, 0, 0, 0, 0)
      actor.set_rotation(Clutter::Y_AXIS, 0, 0, 0, 0)
      actor.set_rotation(Clutter::Z_AXIS, 0, 0, 0, 0)
    end
  end
end
to_pixbufing(i) click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 138
def to_pixbufing(i)
  true
end
toggle_blackout() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 166
def toggle_blackout
  super
  if blackouting?
    @stage.color = Clutter::Color.parse("black")
    current_actor.hide
  else
    reset_stage_color
    current_actor.show
  end
  redraw
end
toggle_whiteout() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 154
def toggle_whiteout
  super
  if whiteouting?
    @stage.color = Clutter::Color.parse("white")
    current_actor.hide
  else
    reset_stage_color
    current_actor.show
  end
  redraw
end
widget() click to toggle source
# File lib/rabbit/renderer/display/clutter-embed.rb, line 60
def widget
  @embed
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.