use Pos instead of Vec2<Int>

This commit is contained in:
2022-03-08 13:33:40 +01:00
parent edc3195192
commit de35f34173
13 changed files with 59 additions and 45 deletions

View File

@@ -1,5 +1,6 @@
package kernel.ui;
import util.Pos;
using tink.CoreApi;
import util.Vec.Vec2;
@@ -85,7 +86,7 @@ class VirtualTermWriter implements TermWriteable extends TermBuffer {
super.scroll(y);
}
public override function getCursorPos():Vec2<Int> {
public override function getCursorPos():Pos {
if (isEnabled()) {
return target.getCursorPos();
} else {