Class: Hokusai::Commands::ScissorBegin
- Defined in:
- ui/src/hokusai/commands/scissor.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(x, y, width, height) ⇒ ScissorBegin
constructor
A new instance of ScissorBegin.
Methods inherited from Base
#after_draw, draw, #draw, on_draw
Constructor Details
#initialize(x, y, width, height) ⇒ ScissorBegin
Returns a new instance of ScissorBegin.
5 6 7 8 9 10 |
# File 'ui/src/hokusai/commands/scissor.rb', line 5 def initialize(x, y, width, height) @x = x @y = y @width = width @height = height end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
3 4 5 |
# File 'ui/src/hokusai/commands/scissor.rb', line 3 def height @height end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
3 4 5 |
# File 'ui/src/hokusai/commands/scissor.rb', line 3 def width @width end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
3 4 5 |
# File 'ui/src/hokusai/commands/scissor.rb', line 3 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
3 4 5 |
# File 'ui/src/hokusai/commands/scissor.rb', line 3 def y @y end |
Instance Method Details
#hash ⇒ Object
12 13 14 |
# File 'ui/src/hokusai/commands/scissor.rb', line 12 def hash [self.class, x, y, width, height].hash end |