Skip to content

class Canvas public

Hokusai::Canvas represents a drawable region It provides information between Hokusai::Painter and a Hokusai::Block

#vertical=(value) public

Should the following blocks be vertical?

Arguments

  • value - true if vertical

Returns

Returns Nothing

#initialize internal

Constructor for Hokusai::Canvas

You should not need to use this

#reset(x, y, width, height) public

Resets canvas at [x,y,width, height]

Arguments

  • x - x coordinate
  • y - y coordinate
  • width - width of canvas
  • height - height of canvas

Returns

Returns Nothing

#to_bounds public

Convert a canvas to a Hokusai::Rect

Returns

Returns Hokusai::Rect

#hovered?(input) internal

Test if Mouse input is hovering this canvas

Arguments

  • input - a Hokusai::Input

Returns

Returns boolean

#reverse? public

Are the following children of this Canvas reversed?

Returns

Returns boolean