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.