Class: Viewport
- Inherits:
-
Object
- Object
- Viewport
- Defined in:
- lib/viewport.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#ox ⇒ Object
Returns the value of attribute ox.
-
#oy ⇒ Object
Returns the value of attribute oy.
-
#rect ⇒ Object
Returns the value of attribute rect.
-
#tone ⇒ Object
Returns the value of attribute tone.
-
#visible ⇒ Object
Returns the value of attribute visible.
-
#z ⇒ Object
Returns the value of attribute z.
Instance Method Summary collapse
- #dispose ⇒ Object
- #disposed? ⇒ Boolean
- #flash(color, duration) ⇒ Object
-
#initialize(arg1 = nil, y = nil, width = nil, height = nil) ⇒ Viewport
constructor
A new instance of Viewport.
- #update ⇒ Object
Constructor Details
#initialize(arg1 = nil, y = nil, width = nil, height = nil) ⇒ Viewport
Returns a new instance of Viewport.
3 4 5 |
# File 'lib/viewport.rb', line 3 def initialize(arg1 = nil, y = nil, width = nil, height = nil) fail NotImplementedError end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
33 34 35 |
# File 'lib/viewport.rb', line 33 def color @color end |
#ox ⇒ Object
Returns the value of attribute ox.
29 30 31 |
# File 'lib/viewport.rb', line 29 def ox @ox end |
#oy ⇒ Object
Returns the value of attribute oy.
31 32 33 |
# File 'lib/viewport.rb', line 31 def oy @oy end |
#rect ⇒ Object
Returns the value of attribute rect.
23 24 25 |
# File 'lib/viewport.rb', line 23 def rect @rect end |
#tone ⇒ Object
Returns the value of attribute tone.
35 36 37 |
# File 'lib/viewport.rb', line 35 def tone @tone end |
#visible ⇒ Object
Returns the value of attribute visible.
25 26 27 |
# File 'lib/viewport.rb', line 25 def visible @visible end |
#z ⇒ Object
Returns the value of attribute z.
27 28 29 |
# File 'lib/viewport.rb', line 27 def z @z end |
Instance Method Details
#dispose ⇒ Object
7 8 9 |
# File 'lib/viewport.rb', line 7 def dispose fail NotImplementedError end |
#disposed? ⇒ Boolean
11 12 13 |
# File 'lib/viewport.rb', line 11 def disposed? fail NotImplementedError end |
#flash(color, duration) ⇒ Object
15 16 17 |
# File 'lib/viewport.rb', line 15 def flash(color, duration) fail NotImplementedError end |
#update ⇒ Object
19 20 21 |
# File 'lib/viewport.rb', line 19 def update fail NotImplementedError end |