Package | com.myflashlab.air.extensions.rongta |
Class | public class Cmd |
Inheritance | Cmd Object |
Cmd
object is used to send print commands to the printer. You must initialize a Cmd object for every
print command you are sending to the printer. Use Rongta.createCmd();
to init.
Method | Defined By | ||
---|---|---|---|
append($bytes:String):void
Append cmds
| Cmd | ||
clear():void
Clear all cmds
| Cmd | ||
getAllCutCmd():String
All cut
| Cmd | ||
getAppendCmds():String
Get All Cmds
| Cmd | ||
getBarcodeCmd($type:int, $setting:BarcodeSetting, $content:String):String
Get Barcode Printing command
| Cmd | ||
getBeepCmd():String
Beep
| Cmd | ||
getBitmapCmd($bitmapSetting:BitmapSetting, $bitmap:BitmapData):String
Get Bitmap printing command
| Cmd | ||
getChartName():String
Get current charset name. | Cmd | ||
getCRCmd():String
Enter
| Cmd | ||
getEndCmd():String
End command
| Cmd | ||
getHalfCutCmd():String
Half cut
| Cmd | ||
getHeaderCmd():String
Get header commands
| Cmd | ||
getLFCmd():String
Wrap
| Cmd | ||
getLFCRCmd():String
Wrap + Enter
| Cmd | ||
getSelfTestCmd():String
Test page print
| Cmd | ||
getTextCmd($textSettings:TextSettings, $text:String):String
Print text command
| Cmd | ||
setChartName(a:String):void
charset name setting
| Cmd |
append | () | method |
public function append($bytes:String):void
Append cmds
Parameters
$bytes:String — Base64 String bytes
|
clear | () | method |
public function clear():void
Clear all cmds
getAllCutCmd | () | method |
public function getAllCutCmd():String
All cut
ReturnsString — Base64 String representative of the bytes.
|
getAppendCmds | () | method |
public function getAppendCmds():String
Get All Cmds
ReturnsString — Base64 String representative of the bytes.
|
getBarcodeCmd | () | method |
public function getBarcodeCmd($type:int, $setting:BarcodeSetting, $content:String):String
Get Barcode Printing command
Parameters
$type:int — barcodeType, BarcodeSetting.QR_CODE for example.
| |
$setting:BarcodeSetting | |
$content:String |
String — Base64 String representative of the bytes.
|
getBeepCmd | () | method |
public function getBeepCmd():String
Beep
ReturnsString — Base64 String representative of the bytes.
|
getBitmapCmd | () | method |
public function getBitmapCmd($bitmapSetting:BitmapSetting, $bitmap:BitmapData):String
Get Bitmap printing command
Parameters
$bitmapSetting:BitmapSetting — Bitmap setting (width limit)
| |
$bitmap:BitmapData — the bitmap which to print
|
String — Base64 String representative of the bytes.
|
getChartName | () | method |
public function getChartName():String
Get current charset name.
ReturnsString — |
getCRCmd | () | method |
public function getCRCmd():String
Enter
ReturnsString — Base64 String representative of the bytes.
|
getEndCmd | () | method |
public function getEndCmd():String
End command
ReturnsString — Base64 String representative of the bytes.
|
getHalfCutCmd | () | method |
public function getHalfCutCmd():String
Half cut
ReturnsString — Base64 String representative of the bytes.
|
getHeaderCmd | () | method |
public function getHeaderCmd():String
Get header commands
ReturnsString — Base64 String representative of the bytes.
|
getLFCmd | () | method |
public function getLFCmd():String
Wrap
ReturnsString — Base64 String representative of the bytes.
|
getLFCRCmd | () | method |
public function getLFCRCmd():String
Wrap + Enter
ReturnsString — Base64 String representative of the bytes.
|
getSelfTestCmd | () | method |
public function getSelfTestCmd():String
Test page print
ReturnsString — Base64 String representative of the bytes.
|
getTextCmd | () | method |
public function getTextCmd($textSettings:TextSettings, $text:String):String
Print text command
Parameters
$textSettings:TextSettings | |
$text:String |
String — Base64 String representative of the bytes.
|
setChartName | () | method |
public function setChartName(a:String):void
charset name setting
Parameters
a:String |