Trait glyph_packer::Packer
[−]
[src]
pub trait Packer { type Buffer: Buffer2d; fn new(b: Self::Buffer) -> Self; fn pack<O: Buffer2d<Pixel = <Self::Buffer as Buffer2d>::Pixel>>(
&mut self,
buf: &O
) -> Option<Rect>; fn buf(&self) -> &Self::Buffer; fn buf_mut(&mut self) -> &mut Self::Buffer; fn into_buf(self) -> Self::Buffer; fn dimensions(&self) -> (u32, u32); fn set_dimensions(&mut self, w: u32, h: u32); fn set_margin(&mut self, _val: u32) { ... } }
Associated Types
Required Methods
fn new(b: Self::Buffer) -> Self
fn pack<O: Buffer2d<Pixel = <Self::Buffer as Buffer2d>::Pixel>>(
&mut self,
buf: &O
) -> Option<Rect>
&mut self,
buf: &O
) -> Option<Rect>
fn buf(&self) -> &Self::Buffer
fn buf_mut(&mut self) -> &mut Self::Buffer
fn into_buf(self) -> Self::Buffer
fn dimensions(&self) -> (u32, u32)
fn set_dimensions(&mut self, w: u32, h: u32)
Provided Methods
fn set_margin(&mut self, _val: u32)
Implementors
impl<B: Buffer2d> Packer for SkylinePacker<B>