[−][src]Struct raqote::DrawTarget
Methods
impl DrawTarget
[src]
pub fn new(width: i32, height: i32) -> DrawTarget
[src]
pub fn set_transform(&mut self, transform: &Transform2D<f32>)
[src]
pub fn get_transform(&self) -> &Transform2D<f32>
[src]
pub fn push_clip_rect(&mut self, rect: Box2D<i32>)
[src]
pub fn pop_clip(&mut self)
[src]
pub fn push_clip(&mut self, path: &Path)
[src]
pub fn push_layer(&mut self, opacity: f32)
[src]
pub fn pop_layer(&mut self)
[src]
pub fn mask(&mut self, src: &Source, x: i32, y: i32, mask: &Mask)
[src]
pub fn stroke(&mut self, path: &Path, style: &StrokeStyle, src: &Source)
[src]
pub fn fill(&mut self, path: &Path, src: &Source, winding_mode: Winding)
[src]
pub fn draw_text(
&mut self,
font: &Font,
point_size: f32,
text: &str,
start: Point2D<f32>,
src: &Source
)
[src]
&mut self,
font: &Font,
point_size: f32,
text: &str,
start: Point2D<f32>,
src: &Source
)
pub fn draw_glyphs(
&mut self,
font: &Font,
point_size: f32,
ids: &[u32],
positions: &[Point2D<f32>],
src: &Source
)
[src]
&mut self,
font: &Font,
point_size: f32,
ids: &[u32],
positions: &[Point2D<f32>],
src: &Source
)
pub fn get_data(&self) -> &[u32]
[src]
pub fn write_png<P: AsRef<Path>>(&self, path: P)
[src]
Auto Trait Implementations
impl !Send for DrawTarget
impl !Sync for DrawTarget
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,