Class: RubyMVC::Toolkit::WxRuby::Frame

Inherits:
Wx::Frame
  • Object
show all
Includes:
Common
Defined in:
lib/ruby_mvc/toolkit/peers/wxruby/frame.rb

Instance Method Summary collapse

Methods included from Common

#title, #title=

Constructor Details

#initialize(options) ⇒ Frame

Returns a new instance of Frame.



33
34
35
36
37
38
# File 'lib/ruby_mvc/toolkit/peers/wxruby/frame.rb', line 33

def initialize(options)
  opts = {}
  opts[:title] = options[:title]
  opts[:size] = [ options[:width], options[:height] ]
  super(options[:parent], opts)
end

Instance Method Details

#add(child, options = {}) ⇒ Object

This method is used to add a child to the existing frame.



43
44
45
# File 'lib/ruby_mvc/toolkit/peers/wxruby/frame.rb', line 43

def add(child, options = {})
  child.peer.reparent(self)
end