Struct escposify::printer::Printer
[−]
[src]
pub struct Printer<W: Write> { /* fields omitted */ }
Methods
impl<W: Write> Printer<W>
[src]
fn new(
writer: W,
codec: Option<EncodingRef>,
trap: Option<EncoderTrap>
) -> Printer<W>
writer: W,
codec: Option<EncodingRef>,
trap: Option<EncoderTrap>
) -> Printer<W>
fn write_u8(&mut self, n: u8) -> Result<usize>
fn flush(&mut self) -> Result<()>
fn hwinit(&mut self) -> &mut Printer<W>
fn hwselect(&mut self) -> &mut Printer<W>
fn hwreset(&mut self) -> &mut Printer<W>
fn print(&mut self, content: &str) -> &mut Printer<W>
fn println(&mut self, content: &str) -> &mut Printer<W>
fn text(&mut self, content: &str) -> &mut Printer<W>
fn line_space(&mut self, n: i32) -> &mut Printer<W>
fn feed(&mut self, n: usize) -> &mut Printer<W>
fn control(&mut self, ctrl: &str) -> &mut Printer<W>
fn align(&mut self, alignment: &str) -> &mut Printer<W>
fn font(&mut self, family: &str) -> &mut Printer<W>
fn style(&mut self, kind: &str) -> &mut Printer<W>
fn size(&mut self, width: usize, height: usize) -> &mut Printer<W>
fn hardware(&mut self, hw: &str) -> &mut Printer<W>
fn barcode(
&mut self,
code: &str,
kind: &str,
position: &str,
font: &str,
width: usize,
height: usize
) -> &mut Printer<W>
&mut self,
code: &str,
kind: &str,
position: &str,
font: &str,
width: usize,
height: usize
) -> &mut Printer<W>
fn qrimage(&mut self) -> &mut Printer<W>
fn qrcode(
&mut self,
code: &str,
version: Option<i32>,
level: &str,
size: Option<i32>
) -> &mut Printer<W>
&mut self,
code: &str,
version: Option<i32>,
level: &str,
size: Option<i32>
) -> &mut Printer<W>