Struct direct2d::render_target::RenderTarget
[−]
[src]
pub struct RenderTarget { /* fields omitted */ }
Methods
impl RenderTarget
[src]
pub unsafe fn hwnd_rt(&self) -> Option<ComPtr<ID2D1HwndRenderTarget>>
[src]
pub fn get_factory(&mut self) -> Factory
[src]
pub fn get_size(&self) -> SizeF
[src]
pub fn create_solid_color_brush<C: Into<ColorF>>(
&self,
color: C,
props: &BrushProperties
) -> Result<SolidColor, D2D1Error>
[src]
&self,
color: C,
props: &BrushProperties
) -> Result<SolidColor, D2D1Error>
pub fn begin_draw(&mut self)
[src]
pub fn end_draw(&mut self) -> Result<(), (D2D1Error, Option<RenderTag>)>
[src]
pub fn set_tag(&mut self, tag: RenderTag)
[src]
pub fn get_tag(&mut self) -> Option<RenderTag>
[src]
pub fn flush(&mut self) -> Result<(), (D2D1Error, Option<RenderTag>)>
[src]
pub fn clear(&mut self, color: &ColorF)
[src]
pub fn draw_line<B: Brush>(
&mut self,
p0: &Point2F,
p1: &Point2F,
brush: &B,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>
)
[src]
&mut self,
p0: &Point2F,
p1: &Point2F,
brush: &B,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>
)
pub fn draw_rectangle<B: Brush>(
&mut self,
rect: &RectF,
brush: &B,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>
)
[src]
&mut self,
rect: &RectF,
brush: &B,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>
)
pub fn fill_rectangle<B: Brush>(&mut self, rect: &RectF, brush: &B)
[src]
pub fn draw_rounded_rectangle<B: Brush>(
&mut self,
rect: &RoundedRect,
brush: &B,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>
)
[src]
&mut self,
rect: &RoundedRect,
brush: &B,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>
)
pub fn fill_rounded_rectangle<B: Brush>(
&mut self,
rect: &RoundedRect,
brush: &B
)
[src]
&mut self,
rect: &RoundedRect,
brush: &B
)
pub fn draw_ellipse<B: Brush>(
&mut self,
ellipse: &Ellipse,
brush: &B,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>
)
[src]
&mut self,
ellipse: &Ellipse,
brush: &B,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>
)
pub fn fill_ellipse<B: Brush>(&mut self, ellipse: &Ellipse, brush: &B)
[src]
pub fn draw_geometry<G: Geometry, B: Brush>(
&mut self,
geometry: &G,
brush: &B,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>
)
[src]
&mut self,
geometry: &G,
brush: &B,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>
)
pub fn fill_geometry<G: Geometry, B: Brush>(&mut self, geometry: &G, brush: &B)
[src]
pub fn fill_geometry_with_opacity<G: Geometry, B: Brush, OB: Brush>(
&mut self,
geometry: &G,
brush: &B,
opacity_brush: &OB
)
[src]
&mut self,
geometry: &G,
brush: &B,
opacity_brush: &OB
)
pub fn draw_text<B: Brush>(
&mut self,
text: &str,
format: &TextFormat,
layout_rect: &RectF,
foreground_brush: &B,
options: &[DrawTextOption]
)
[src]
&mut self,
text: &str,
format: &TextFormat,
layout_rect: &RectF,
foreground_brush: &B,
options: &[DrawTextOption]
)
pub fn draw_text_layout<B: Brush>(
&mut self,
origin: &Point2F,
layout: &TextLayout,
brush: &B,
options: &[DrawTextOption]
)
[src]
&mut self,
origin: &Point2F,
layout: &TextLayout,
brush: &B,
options: &[DrawTextOption]
)
pub fn set_transform(&mut self, transform: &Matrix3x2F)
[src]
pub fn get_transform(&self) -> Matrix3x2F
[src]
Trait Implementations
impl Clone for RenderTarget
[src]
fn clone(&self) -> RenderTarget
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more