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