From 7799de0865bc388e5a3e2b8a88426f4151b7c57b Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Sat, 4 Feb 2023 23:20:31 +0100 Subject: [PATCH] renamed Position. Something with haxe being stupid --- src/cc/periphs/Printer.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc/periphs/Printer.hx b/src/cc/periphs/Printer.hx index e2305a1..3213a68 100644 --- a/src/cc/periphs/Printer.hx +++ b/src/cc/periphs/Printer.hx @@ -1,16 +1,16 @@ package cc.periphs; @:multiReturn -extern class Position { +extern class PagePosition { var x:Int; var y:Int; } extern class Printer { public function write(text:String):Void; // Writes text to the current page. - public function getCursorPos():Position; // Returns the current position of the cursor on the page. + public function getCursorPos():PagePosition; // Returns the current position of the cursor on the page. public function setCursorPos(x:Int, y:Int):Void; // Sets the position of the cursor on the page. - public function getPageSize():Position; // Returns the size of the current page. + public function getPageSize():PagePosition; // Returns the size of the current page. public function newPage():Bool; // Starts printing a new page. public function endPage():Bool; // Finalizes printing of the current page and outputs it to the tray. public function setPageTitle(?title:String):Void; // Sets the title of the current page.