Struct direct2d::factory::Factory
[−]
[src]
pub struct Factory { /* fields omitted */ }
Methods
impl Factory
[src]
pub unsafe fn from_ptr(ptr: ComPtr<ID2D1Factory1>) -> Factory
[src]
pub fn new() -> Result<Factory, D2D1Error>
[src]
pub fn create_rectangle_geometry(
&self,
rectangle: &RectF
) -> Result<Rectangle, D2D1Error>
[src]
&self,
rectangle: &RectF
) -> Result<Rectangle, D2D1Error>
pub fn create_rounded_rectangle_geometry(
&self,
rounded_rectangle: &RoundedRect
) -> Result<RoundedRectangle, D2D1Error>
[src]
&self,
rounded_rectangle: &RoundedRect
) -> Result<RoundedRectangle, D2D1Error>
pub fn create_ellipse_geometry(
&self,
ellipse: &Ellipse
) -> Result<Ellipse, D2D1Error>
[src]
&self,
ellipse: &Ellipse
) -> Result<Ellipse, D2D1Error>
pub fn create_geometry_group<G: Geometry>(
&self,
fill_mode: FillMode,
geometries: &[G]
) -> Result<Group, D2D1Error>
[src]
&self,
fill_mode: FillMode,
geometries: &[G]
) -> Result<Group, D2D1Error>
pub fn create_path_geometry(&self) -> Result<Path, D2D1Error>
[src]
pub fn create_stroke_style(
&self,
props: &StrokeStyleProperties
) -> Result<StrokeStyle, D2D1Error>
[src]
&self,
props: &StrokeStyleProperties
) -> Result<StrokeStyle, D2D1Error>
pub fn create_render_target<T: RenderTargetBacking>(
&self,
backing: T
) -> Result<RenderTarget, D2D1Error>
[src]
&self,
backing: T
) -> Result<RenderTarget, D2D1Error>
Trait Implementations
impl Clone for Factory
[src]
fn clone(&self) -> Factory
[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