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;
import util.Pos;
using tink.CoreApi;
import kernel.ui.TermWriteable;
@@ -38,7 +39,7 @@ class MainTerm implements TermWriteable {
Term.scroll(y);
}
public function getCursorPos():Vec2<Int> {
public function getCursorPos():Pos {
var rtn = Term.getCursorPos();
return {
x: rtn.x - 1,
@@ -59,7 +60,7 @@ class MainTerm implements TermWriteable {
Term.setCursorBlink(blink);
}
public function getSize():Vec2<Int> {
public function getSize():Pos {
var rtn = Term.getSize();
return {
x: rtn.width,