[−][src]Struct dxplr::d2d1::BitmapRenderTarget
Trait Implementations
impl Clone for BitmapRenderTarget
[src]
pub fn clone(&self) -> BitmapRenderTarget
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BitmapRenderTarget
[src]
impl IBitmapRenderTarget for BitmapRenderTarget
[src]
pub fn get_bitmap(&self) -> Result<Bitmap, HResult>
[src]
impl IRenderTarget for BitmapRenderTarget
[src]
pub fn begin_draw(&self)
[src]
pub fn clear(&self, color: impl Into<ColorF>)
[src]
pub unsafe fn create_bitmap(
&self,
size: impl Into<SizeU>,
src_data: Option<&[u8]>,
pitch: u32,
props: &BitmapProperties
) -> Result<Bitmap, HResult>
[src]
&self,
size: impl Into<SizeU>,
src_data: Option<&[u8]>,
pitch: u32,
props: &BitmapProperties
) -> Result<Bitmap, HResult>
pub fn create_bitmap_brush(
&self,
bitmap: &impl IBitmap,
props: Option<&BitmapBrushProperties>,
brush_props: Option<&BrushProperties>
) -> Result<BitmapBrush, HResult>
[src]
&self,
bitmap: &impl IBitmap,
props: Option<&BitmapBrushProperties>,
brush_props: Option<&BrushProperties>
) -> Result<BitmapBrush, HResult>
pub fn create_compatible_render_target(
&self,
size: Option<SizeF>,
pixel_size: Option<SizeU>,
format: Option<&PixelFormat>,
options: CompatibleRenderTargetOptions
) -> Result<BitmapRenderTarget, HResult>
[src]
&self,
size: Option<SizeF>,
pixel_size: Option<SizeU>,
format: Option<&PixelFormat>,
options: CompatibleRenderTargetOptions
) -> Result<BitmapRenderTarget, HResult>
pub fn create_gradient_stop_collection(
&self,
stops: &[GradientStop],
gamma: Gamma,
mode: ExtendMode
) -> Result<GradientStopCollection, HResult>
[src]
&self,
stops: &[GradientStop],
gamma: Gamma,
mode: ExtendMode
) -> Result<GradientStopCollection, HResult>
pub fn create_layer(&self, size: Option<SizeF>) -> Result<Layer, HResult>
[src]
pub fn create_linear_gradient_brush(
&self,
props: &LinearGradientBrushProperties,
brush_props: Option<&BrushProperties>,
gradient: &impl IGradientStopCollection
) -> Result<LinearGradientBrush, HResult>
[src]
&self,
props: &LinearGradientBrushProperties,
brush_props: Option<&BrushProperties>,
gradient: &impl IGradientStopCollection
) -> Result<LinearGradientBrush, HResult>
pub fn create_mesh(&self) -> Result<Mesh, HResult>
[src]
pub fn create_radial_gradient_brush(
&self,
props: &RadialGradientBrushProperties,
brush_props: Option<&BrushProperties>,
gradient: &impl IGradientStopCollection
) -> Result<RadialGradientBrush, HResult>
[src]
&self,
props: &RadialGradientBrushProperties,
brush_props: Option<&BrushProperties>,
gradient: &impl IGradientStopCollection
) -> Result<RadialGradientBrush, HResult>
pub fn create_solid_color_brush(
&self,
color: impl Into<ColorF>,
brush_props: Option<&BrushProperties>
) -> Result<SolidColorBrush, HResult>
[src]
&self,
color: impl Into<ColorF>,
brush_props: Option<&BrushProperties>
) -> Result<SolidColorBrush, HResult>
pub fn draw_bitmap(
&self,
bitmap: &impl IBitmap,
dest_rect: Option<&RectF>,
opacity: Option<f32>,
interpolation: Option<BitmapInterpolationMode>,
src_rect: Option<&RectF>
)
[src]
&self,
bitmap: &impl IBitmap,
dest_rect: Option<&RectF>,
opacity: Option<f32>,
interpolation: Option<BitmapInterpolationMode>,
src_rect: Option<&RectF>
)
pub fn draw_ellipse(
&self,
ellipse: &Ellipse,
brush: &impl IBrush,
width: Option<f32>,
stroke_style: Option<&StrokeStyle>
)
[src]
&self,
ellipse: &Ellipse,
brush: &impl IBrush,
width: Option<f32>,
stroke_style: Option<&StrokeStyle>
)
pub fn draw_geometry(
&self,
geometry: &impl IGeometry,
brush: &impl IBrush,
width: Option<f32>,
stroke_style: Option<&StrokeStyle>
)
[src]
&self,
geometry: &impl IGeometry,
brush: &impl IBrush,
width: Option<f32>,
stroke_style: Option<&StrokeStyle>
)
pub fn draw_glyph_run(
&self,
baseline_origin: impl Into<Point2F>,
glyph_run: &GlyphRun<'_, '_, '_>,
brush: &impl IBrush,
mode: MeasuringMode
)
[src]
&self,
baseline_origin: impl Into<Point2F>,
glyph_run: &GlyphRun<'_, '_, '_>,
brush: &impl IBrush,
mode: MeasuringMode
)
pub fn draw_line(
&self,
point0: impl Into<Point2F>,
point1: impl Into<Point2F>,
brush: &impl IBrush,
width: Option<f32>,
stroke_style: Option<&StrokeStyle>
)
[src]
&self,
point0: impl Into<Point2F>,
point1: impl Into<Point2F>,
brush: &impl IBrush,
width: Option<f32>,
stroke_style: Option<&StrokeStyle>
)
pub fn draw_rectangle(
&self,
rect: impl Into<RectF>,
brush: &impl IBrush,
width: Option<f32>,
stroke_style: Option<&StrokeStyle>
)
[src]
&self,
rect: impl Into<RectF>,
brush: &impl IBrush,
width: Option<f32>,
stroke_style: Option<&StrokeStyle>
)
pub fn draw_rounded_rectangle(
&self,
round: &RoundedRect,
brush: &impl IBrush,
width: Option<f32>,
stroke_style: Option<&StrokeStyle>
)
[src]
&self,
round: &RoundedRect,
brush: &impl IBrush,
width: Option<f32>,
stroke_style: Option<&StrokeStyle>
)
pub fn draw_text(
&self,
string: impl AsRef<str>,
format: &impl ITextFormat,
rect: impl Into<RectF>,
fill_brush: &impl IBrush,
options: Option<DrawTextOptions>,
measure_mode: Option<MeasuringMode>
)
[src]
&self,
string: impl AsRef<str>,
format: &impl ITextFormat,
rect: impl Into<RectF>,
fill_brush: &impl IBrush,
options: Option<DrawTextOptions>,
measure_mode: Option<MeasuringMode>
)
pub fn draw_text_layout(
&self,
origin: impl Into<Point2F>,
layout: &impl ITextLayout,
fill_brush: &impl IBrush,
options: Option<DrawTextOptions>
)
[src]
&self,
origin: impl Into<Point2F>,
layout: &impl ITextLayout,
fill_brush: &impl IBrush,
options: Option<DrawTextOptions>
)
pub fn end_draw(&self) -> Result<(), HResultWithTags>
[src]
pub fn fill_ellipse(&self, ellipse: &Ellipse, brush: &impl IBrush)
[src]
pub fn fill_geometry(
&self,
geometry: &impl IGeometry,
brush: &impl IBrush,
opacity: Option<&Brush>
)
[src]
&self,
geometry: &impl IGeometry,
brush: &impl IBrush,
opacity: Option<&Brush>
)
pub fn fill_mesh(&self, mesh: &impl IMesh, brush: &impl IBrush)
[src]
pub fn fill_opacity_mask(
&self,
mask: &impl IBitmap,
brush: &impl IBrush,
content: OpacityMaskContent,
dest_rect: Option<&RectF>,
src_rect: Option<&RectF>
)
[src]
&self,
mask: &impl IBitmap,
brush: &impl IBrush,
content: OpacityMaskContent,
dest_rect: Option<&RectF>,
src_rect: Option<&RectF>
)
pub fn fill_rectangle(&self, rect: impl Into<RectF>, brush: &impl IBrush)
[src]
pub fn fill_rounded_rectangle(&self, rounded: &RoundedRect, brush: &impl IBrush)
[src]
pub fn flush(&self) -> Result<(), HResultWithTags>
[src]
pub fn get_antialias_mode(&self) -> AntialiasMode
[src]
pub fn get_dpi(&self) -> Vector2F
[src]
pub fn get_maximum_bitmap_size(&self) -> u32
[src]
pub fn get_pixel_format(&self) -> PixelFormat
[src]
pub fn get_pixel_size(&self) -> SizeU
[src]
pub fn get_size(&self) -> SizeF
[src]
pub fn get_tags(&self) -> (Tag, Tag)
[src]
pub fn get_text_antialias_mode(&self) -> TextAntialiasMode
[src]
pub fn get_text_rendering(&self) -> Option<RenderingParams>
[src]
pub fn get_transform(&self) -> Matrix3x2F
[src]
pub fn is_supported(&self, props: &RenderTargetProperties) -> bool
[src]
pub fn pop_axis_aligned_clip(&self)
[src]
pub fn pop_layer(&self)
[src]
pub fn push_axis_aligned_clip(
&self,
rect: impl Into<RectF>,
mode: AntialiasMode
)
[src]
&self,
rect: impl Into<RectF>,
mode: AntialiasMode
)
pub fn push_layer(&self, params: &LayerParameters, layer: Option<&Layer>)
[src]
pub fn restore_drawing_state(&self, block: &impl IDrawingStateBlock)
[src]
pub fn save_drawing_state(&self, block: &impl IDrawingStateBlock)
[src]
pub fn set_antialias_mode(&self, mode: AntialiasMode)
[src]
pub fn set_dpi(&self, x: f32, y: f32)
[src]
pub fn set_tags(&self, tag1: Tag, tag2: Tag)
[src]
pub fn set_text_antialias_mode(&self, mode: TextAntialiasMode)
[src]
pub fn set_text_rendering_params(&self, params: Option<&RenderingParams>)
[src]
pub fn set_transform(&self, m: &Matrix3x2F)
[src]
impl IResource for BitmapRenderTarget
[src]
pub fn get_factory(&self) -> Factory
[src]
impl Interface for BitmapRenderTarget
[src]
type APIType = ID2D1BitmapRenderTarget
pub fn new(p: ComPtr<Self::APIType>) -> Self
[src]
pub fn uuidof() -> Guid
[src]
pub fn as_ptr(&self) -> *mut Self::APIType
[src]
pub fn as_com_ptr(&self) -> &ComPtr<Self::APIType>
[src]
pub fn as_unknown(&self) -> *mut IUnknown
[src]
pub fn from_com_ptr(p: ComPtr<Self::APIType>) -> Self
[src]
pub fn query_interface<T: Interface>(&self) -> Result<T, HResult>
[src]
impl Send for BitmapRenderTarget
[src]
impl Sync for BitmapRenderTarget
[src]
Auto Trait Implementations
impl RefUnwindSafe for BitmapRenderTarget
impl Unpin for BitmapRenderTarget
impl UnwindSafe for BitmapRenderTarget
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,