update periphs to not be static
This commit is contained in:
@@ -7,13 +7,13 @@ extern class Position {
|
||||
}
|
||||
|
||||
extern class Printer {
|
||||
public static function write(text:String):Void; // Writes text to the current page.
|
||||
public static function getCursorPos():Position; // Returns the current position of the cursor on the page.
|
||||
public static function setCursorPos(x:Int, y:Int):Void; // Sets the position of the cursor on the page.
|
||||
public static function getPageSize():Position; // Returns the size of the current page.
|
||||
public static function newPage():Bool; // Starts printing a new page.
|
||||
public static function endPage():Bool; // Finalizes printing of the current page and outputs it to the tray.
|
||||
public static function setPageTitle(?title:String):Void; // Sets the title of the current page.
|
||||
public static function getInkLevel():Float; // Returns the amount of ink left in the printer.
|
||||
public static function getPaperLevel():Int; // Returns the amount of paper left in the 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 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 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.
|
||||
public function getInkLevel():Float; // Returns the amount of ink left in the printer.
|
||||
public function getPaperLevel():Int; // Returns the amount of paper left in the printer.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user