Class: Hokusai::PainterEntry
- Inherits:
-
Object
- Object
- Hokusai::PainterEntry
- Defined in:
- ui/src/hokusai/painter.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#h ⇒ Object
readonly
Returns the value of attribute h.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#w ⇒ Object
readonly
Returns the value of attribute w.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(block, x, y, w, h) ⇒ PainterEntry
constructor
A new instance of PainterEntry.
Constructor Details
#initialize(block, x, y, w, h) ⇒ PainterEntry
Returns a new instance of PainterEntry.
8 9 10 11 12 13 14 |
# File 'ui/src/hokusai/painter.rb', line 8 def initialize(block, x, y, w, h) @block = block @x = x @y = y @w = w @h = h end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
7 8 9 |
# File 'ui/src/hokusai/painter.rb', line 7 def block @block end |
#h ⇒ Object (readonly)
Returns the value of attribute h.
7 8 9 |
# File 'ui/src/hokusai/painter.rb', line 7 def h @h end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
7 8 9 |
# File 'ui/src/hokusai/painter.rb', line 7 def parent @parent end |
#w ⇒ Object (readonly)
Returns the value of attribute w.
7 8 9 |
# File 'ui/src/hokusai/painter.rb', line 7 def w @w end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
7 8 9 |
# File 'ui/src/hokusai/painter.rb', line 7 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
7 8 9 |
# File 'ui/src/hokusai/painter.rb', line 7 def y @y end |