abstract class Works::Cell
- Works::Cell
- Reference
- Object
Direct Known Subclasses
Defined in:
works/cell.crConstant Summary
-
Dimensions =
{x: 1_u8, y: 1_u8}
-
SelectionLength =
10 * Screen.scale_factor
-
SelectionThickness =
3 * Screen.scale_factor
-
Size =
32_u16 * Screen.scale_factor
Constructors
Class Method Summary
- .dimensions : NamedTuple(x: UInt8, y: UInt8)
- .draw_selection(x, y, width, height, selection_color = nil)
- .size : UInt16
Instance Method Summary
- #clone
- #col : UInt16
- #col=(col : UInt16)
- #cols : UInt8
- #dimensions : NamedTuple(x: UInt8, y: UInt8)
- #draw(x, y)
- #draw_selection(dx, dy, color = nil)
- #height
- #hover?(mouse_col, mouse_row)
- #name
- #overlaps?(o_col, o_row)
- #overlaps?(cell : Cell)
- #print_str
- #row : UInt16
- #row=(row : UInt16)
- #rows : UInt8
- #size : UInt16
- #width
- #x
- #y