Parent

Included Modules

Class/Module Index [+]

Quicksearch

Rabbit::Frame

Attributes

force_keep_above[RW]
geometry[RW]
logger[R]
window[R]

Public Class Methods

new(logger, canvas) click to toggle source
# File lib/rabbit/frame.rb, line 30
def initialize(logger, canvas)
  @logger = logger
  @canvas = canvas
  @geometry = nil
  @force_keep_above = nil
end

Public Instance Methods

destroyed?() click to toggle source
# File lib/rabbit/frame.rb, line 37
def destroyed?
  @window.nil? or @window.destroyed?
end
fullscreen() click to toggle source
# File lib/rabbit/frame.rb, line 59
def fullscreen
  @fullscreen_toggled = false
  @fullscreen = true
  @window.fullscreen
end
fullscreen?() click to toggle source
# File lib/rabbit/frame.rb, line 79
def fullscreen?
  if @window.respond_to?(:fullscreen?)
    @window.fullscreen?
  else
    @fullscreen
  end
end
fullscreen_available?() click to toggle source
# File lib/rabbit/frame.rb, line 110
def fullscreen_available?
  true
end
height() click to toggle source
# File lib/rabbit/frame.rb, line 51
def height
  @window.size[1]
end
iconify_available?() click to toggle source
# File lib/rabbit/frame.rb, line 114
def iconify_available?
  true
end
init_gui(width, height, main_window, window_type=nil) click to toggle source
# File lib/rabbit/frame.rb, line 95
def init_gui(width, height, main_window, window_type=nil)
  init_window(width, height, window_type)
  @fullscreen_toggled = false
  @fullscreen = false
  @iconify = false
  @main_window = main_window
  if @main_window
    @window.keep_above = @force_keep_above unless @force_keep_above.nil?
  else
    @window.keep_above = true
  end
  @window.show
  @canvas.post_init_gui
end
main_window?() click to toggle source
# File lib/rabbit/frame.rb, line 87
def main_window?
  @main_window
end
parse(source, callback=nil, &block) click to toggle source
# File lib/rabbit/frame.rb, line 55
def parse(source, callback=nil, &block)
  @canvas.parse(source, callback, &block)
end
quit() click to toggle source
# File lib/rabbit/frame.rb, line 41
def quit
  @window.destroy unless destroyed?
  @window = nil
  true
end
toggle_fullscreen() click to toggle source
# File lib/rabbit/frame.rb, line 71
def toggle_fullscreen
  if fullscreen?
    unfullscreen
  else
    fullscreen
  end
end
unfullscreen() click to toggle source
# File lib/rabbit/frame.rb, line 65
def unfullscreen
  @fullscreen_toggled = false
  @fullscreen = false
  @window.unfullscreen
end
update_title(new_title) click to toggle source
# File lib/rabbit/frame.rb, line 91
def update_title(new_title)
  @window.title = Utils.unescape_title(new_title)
end
width() click to toggle source
# File lib/rabbit/frame.rb, line 47
def width
  @window.size[0]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.