Class: Opine::Window

Inherits:
Widget show all
Defined in:
lib/opine/widgets/table.rb,
lib/opine/widgets/window.rb

Direct Known Subclasses

Native::Window

Constant Summary collapse

DEFAULTS =
{
  :title => 'ruby',
  :frame => Opine::Rect.new(x: 0, y: 0, width: 320, height: 240)
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Widget

#initialize

Constructor Details

This class inherits a constructor from Opine::Widget

Instance Attribute Details

#content_viewObject

Returns the value of attribute content_view.



2
3
4
# File 'lib/opine/widgets/window.rb', line 2

def content_view
  @content_view
end

#frameObject

Returns the value of attribute frame.



2
3
4
# File 'lib/opine/widgets/window.rb', line 2

def frame
  @frame
end

#titleObject

Returns the value of attribute title.



2
3
4
# File 'lib/opine/widgets/window.rb', line 2

def title
  @title
end

#windowObject

Returns the value of attribute window.



2
3
4
# File 'lib/opine/widgets/window.rb', line 2

def window
  @window
end

Instance Method Details

#table(resources, options = {}, &block) ⇒ Object



10
11
12
# File 'lib/opine/widgets/table.rb', line 10

def table(resources, options={}, &block)
  "Opine::#{Opine::Application.theme.to_s.camelize}::Table".constantize.new(self,resources, options, &block)
end