terminal/src/til/ut_til
Michael Niksa 57ee5a9d0d
til::size (#4850)
## Summary of the Pull Request
Introduces convenience type `til::size` which automatically implements our best practices for size-related types and provides automatic conversions in/out of the relevant types.

## PR Checklist
* [x] In support of Differental Rendering #778
* [X] I work here.
* [x] Tests added/passed
* [x] I'm a core contributor.

## Detailed Description of the Pull Request / Additional comments
- Automatically converts in from anything with a X/Y (console `COORD`) or cx/cy (Win32 `SIZE`)
- Automatically converts out to `COORD`, `SIZE`, or `D2D1_SIZE_F`.
- Constructs from bare integers written into source file
- Default constructs to empty
- Uses Chromium Math for all basic math operations (+, -, *, /)
- Provides equality tests
- Adds initial proposal for division-to-ceiling (round up division) that attempts to `ceil` without any floating point math.
- Accessors for height/width
- Type converting accessors (that use safe conversions and throw) for height/width
- Convenience function for area calculation (as that's common with type) and uses safe math to do it.
- TAEF/WEX Output and Comparators so they will print very nicely with `VERIFY` and `Log` macros in our testing suite.

## Validation Steps Performed
- See automated tests of functionality.
2020-03-10 20:51:26 +00:00
..
ColorTests.cpp add til::color, a universal-converting color type (#4108) 2020-03-10 00:17:24 +00:00
DefaultResource.rc Introduce til::some (#4123) 2020-01-09 09:07:52 -08:00
product.pbxproj Introduce til::some (#4123) 2020-01-09 09:07:52 -08:00
SizeTests.cpp til::size (#4850) 2020-03-10 20:51:26 +00:00
SomeTests.cpp til::size (#4850) 2020-03-10 20:51:26 +00:00
sources add til::color, a universal-converting color type (#4108) 2020-03-10 00:17:24 +00:00
til.unit.tests.vcxproj til::size (#4850) 2020-03-10 20:51:26 +00:00
til.unit.tests.vcxproj.filters til::size (#4850) 2020-03-10 20:51:26 +00:00
u8u16convertTests.cpp ensure u8u16 handles lead & continuation bytes in separate txns (#4798) 2020-03-04 11:15:35 -08:00