Commit Graph

11 Commits

Author SHA1 Message Date
Jakub Sobon 7d15d24d2f Merge branch '10-braille-canvas-copyto' into 20-braille-canvas 2018-07-01 16:16:31 -04:00
Jakub Sobon 11c9dbab24
Adding a higher resolution canvas.
This canvas uses the braille pattern characters.
2018-07-01 00:12:28 -04:00
Jakub Sobon 30068668d0
The copied-to canvas is always zero-based.
At least from the point of view of the widget.
2018-06-30 22:07:39 -04:00
Jakub Sobon 750d7159e3
Ability to copy a canvas.
Allows one canvas to be copied onto another, potentially with an offset.
2018-06-30 21:39:02 -04:00
Jakub Sobon ba2cb94100
Full-width rune support in the canvas.
- SetCell now returns the number of occupied cells.
- Apply skips over partial cells.
2018-05-20 22:50:07 +01:00
Jakub Sobon 2473cd46d6
A function that draws a rectangle.
Also:
- implementing text trimming and wrapping.
- Switching log.Fatalf to panic() for more understandable test errors.
2018-05-06 19:28:52 +01:00
Jakub Sobon 2cd3343c81 Adding licences and a script to automate the same. 2018-04-14 23:06:57 +01:00
Jakub Sobon 0bbb28d13d
Adding a fake widget. 2018-04-07 14:24:55 +02:00
Jakub Sobon dc1f2c5a29
Implementing canvas functionality.
Done here:
- adding helper library which determines area from size and vice versa.
- fixing an off-by-one bug related to area sizes.
- allowing overwrite of cell options by passing an existing cell.Options
instance.
- implementing canvas and its tests.
2018-03-29 03:28:36 +03:00
Jakub Sobon 59e1bd6472
Implementing cell, buffer, container options and fake terminal.
Push after a partial commit to prevent data loss.
This isn't complete and doesn't have complete test coverage.
2018-03-28 21:34:20 +03:00
Jakub Sobon bc42865277
Defining the APIs. 2018-03-27 19:01:35 +01:00