Documentation ¶
Index ¶
Constants ¶
View Source
const ( WidthNoMedia MediaWidth = 0 Width3_5 = 4 Width6 = 6 Width9 = 9 Width12 = 12 Width18 = 18 Width24 = 24 )
View Source
const ( TypeNoMedia MediaType = 0x00 TypeLaminated = 0x01 TypeNonLaminated = 0x03 TypeHeatShrink21 = 0x11 TypeHeatShrink31 = 0x17 TypeIncompatible = 0xFF )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaWidth ¶
type MediaWidth uint8
func (MediaWidth) DPI ¶
func (w MediaWidth) DPI() int
func (MediaWidth) Dx ¶
func (w MediaWidth) Dx() (int, error)
Dx returns the exact width of images that can be printed, in pixels.
func (MediaWidth) MinDy ¶
func (w MediaWidth) MinDy() int
Dy returns the minimum height of images that can be printed, in pixels.
func (MediaWidth) String ¶
func (w MediaWidth) String() string
type PT700 ¶
type PT700 int // We have to poll() to read responses, it's easier to use a raw FD.
PT700 controls a Brother PT-700 label printer on Linux through the usblp driver.
type Status ¶
type Status struct { Err1 Error1 Err2 Error2 MediaWidth MediaWidth MediaType MediaType Type StatusType Phase PhaseType }
type StatusType ¶
type StatusType uint8
const ( StatusReplyToRequest StatusType = iota StatusPrintingCompleted StatusErrorOccurred StatusExitIFMode StatusTurnedOff StatusNotification StatusPhaseChange )
func (StatusType) String ¶
func (t StatusType) String() string
Click to show internal directories.
Click to hide internal directories.