Class: Hokusai::PainterEntry

Inherits:
Object
  • Object
show all
Defined in:
ui/src/hokusai/painter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



7
8
9
# File 'ui/src/hokusai/painter.rb', line 7

def block
  @block
end

#hObject (readonly)

Returns the value of attribute h.



7
8
9
# File 'ui/src/hokusai/painter.rb', line 7

def h
  @h
end

#parentObject (readonly)

Returns the value of attribute parent.



7
8
9
# File 'ui/src/hokusai/painter.rb', line 7

def parent
  @parent
end

#wObject (readonly)

Returns the value of attribute w.



7
8
9
# File 'ui/src/hokusai/painter.rb', line 7

def w
  @w
end

#xObject (readonly)

Returns the value of attribute x.



7
8
9
# File 'ui/src/hokusai/painter.rb', line 7

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



7
8
9
# File 'ui/src/hokusai/painter.rb', line 7

def y
  @y
end