Travis Griggs
10/27/2023, 12:24 AMtranslate(size.x.half, size.y.half) { ... }
instead of having to constantly add/subtract from the computed center. But when setting up my pointerInput()... I have to do all of the translation math if I want to work relative to the center. Or is there a way one can do something similiar as the translate in DrawScope? I didn't find anything...
Also, why can't pointerInput use Size instead of IntSize? I already dislike the highly overloaded use of the term 'size' in graphics code. I wish they would have used extent, or some other different word, so size could generally mean "linear counts of things". I just feel like I end up pushing type conversion code all over with these kinds of things.romainguy
10/27/2023, 12:40 AMTravis Griggs
10/27/2023, 12:47 AMromainguy
10/27/2023, 12:48 AMromainguy
10/27/2023, 12:49 AMTravis Griggs
10/27/2023, 12:53 AMTravis Griggs
10/27/2023, 12:54 AMromainguy
10/27/2023, 12:56 AMromainguy
10/27/2023, 12:58 AMTravis Griggs
10/27/2023, 1:00 AMval PointerInputScope.extent: Size get() = size.toSize()
val PointerInputScope.center: Offset get() = extent.half
romainguy
10/27/2023, 1:02 AMromainguy
10/27/2023, 1:02 AMMichael Paus
10/27/2023, 7:40 AM