Module: Ruby2D::Renderable
Instance Attribute Summary collapse
-
#z ⇒ Object
Returns the value of attribute z.
Instance Method Summary collapse
Instance Attribute Details
#z ⇒ Object
Returns the value of attribute z.
3 4 5 |
# File 'lib/ruby2d/renderable.rb', line 3 def z @z end |
Instance Method Details
#add ⇒ Object
11 12 13 14 15 |
# File 'lib/ruby2d/renderable.rb', line 11 def add if Module.const_defined? :DSL Application.add(self) end end |
#contains?(x, y) ⇒ Boolean
31 32 33 |
# File 'lib/ruby2d/renderable.rb', line 31 def contains?(x, y) raise "Not implemented yet" end |
#opacity ⇒ Object
23 24 25 |
# File 'lib/ruby2d/renderable.rb', line 23 def opacity self.color.opacity end |
#opacity=(val) ⇒ Object
27 28 29 |
# File 'lib/ruby2d/renderable.rb', line 27 def opacity=(val) self.color.opacity = val end |
#remove ⇒ Object
17 18 19 20 21 |
# File 'lib/ruby2d/renderable.rb', line 17 def remove if Module.const_defined? :DSL Application.remove(self) end end |