[−][src]Struct azure::azure_hl::DrawTarget
Fields
azure_draw_target: AzDrawTargetRef
backing: DrawTargetBacking
Methods
impl DrawTarget
[src]
pub fn new(
backend: BackendType,
size: Size2D<i32>,
format: SurfaceFormat
) -> DrawTarget
[src]
backend: BackendType,
size: Size2D<i32>,
format: SurfaceFormat
) -> DrawTarget
pub fn new_with_data(
backend: BackendType,
data: Vec<u8>,
offset: usize,
size: Size2D<i32>,
stride: i32,
format: SurfaceFormat
) -> DrawTarget
[src]
backend: BackendType,
data: Vec<u8>,
offset: usize,
size: Size2D<i32>,
stride: i32,
format: SurfaceFormat
) -> DrawTarget
pub fn new_with_gl_rasterization_context(
gl_rasterization_context: Arc<GLRasterizationContext>,
format: SurfaceFormat
) -> DrawTarget
[src]
gl_rasterization_context: Arc<GLRasterizationContext>,
format: SurfaceFormat
) -> DrawTarget
pub fn clone(&self) -> DrawTarget
[src]
pub fn make_current(&self)
[src]
pub fn finish(self)
[src]
pub fn get_size(&self) -> AzIntSize
[src]
pub fn get_format(&self) -> SurfaceFormat
[src]
pub fn get_transform(&self) -> Transform2D<AzFloat>
[src]
pub fn flush(&self)
[src]
pub fn clear_rect(&self, rect: &Rect<AzFloat>)
[src]
pub fn fill(&self, path: &Path, pattern: PatternRef, draw_options: &DrawOptions)
[src]
pub fn fill_rect(
&self,
rect: &Rect<AzFloat>,
pattern: PatternRef,
draw_options: Option<&DrawOptions>
)
[src]
&self,
rect: &Rect<AzFloat>,
pattern: PatternRef,
draw_options: Option<&DrawOptions>
)
pub fn stroke(
&self,
path: &Path,
pattern: PatternRef,
stroke_options: &StrokeOptions,
draw_options: &DrawOptions
)
[src]
&self,
path: &Path,
pattern: PatternRef,
stroke_options: &StrokeOptions,
draw_options: &DrawOptions
)
pub fn stroke_line(
&self,
start: Point2D<AzFloat>,
end: Point2D<AzFloat>,
pattern: PatternRef,
stroke_options: &StrokeOptions,
draw_options: &DrawOptions
)
[src]
&self,
start: Point2D<AzFloat>,
end: Point2D<AzFloat>,
pattern: PatternRef,
stroke_options: &StrokeOptions,
draw_options: &DrawOptions
)
pub fn stroke_rect(
&self,
rect: &Rect<AzFloat>,
pattern: PatternRef,
stroke_options: &StrokeOptions,
draw_options: &DrawOptions
)
[src]
&self,
rect: &Rect<AzFloat>,
pattern: PatternRef,
stroke_options: &StrokeOptions,
draw_options: &DrawOptions
)
pub fn draw_surface(
&self,
surface: SourceSurface,
dest: Rect<AzFloat>,
source: Rect<AzFloat>,
surf_options: DrawSurfaceOptions,
options: DrawOptions
)
[src]
&self,
surface: SourceSurface,
dest: Rect<AzFloat>,
source: Rect<AzFloat>,
surf_options: DrawSurfaceOptions,
options: DrawOptions
)
pub fn copy_surface(
&self,
surface: SourceSurface,
source: Rect<i32>,
destination: Point2D<i32>
)
[src]
&self,
surface: SourceSurface,
source: Rect<i32>,
destination: Point2D<i32>
)
pub fn draw_filter(
&self,
filter: &FilterNode,
source_rect: &Rect<AzFloat>,
dest_point: &Point2D<AzFloat>,
options: DrawOptions
)
[src]
&self,
filter: &FilterNode,
source_rect: &Rect<AzFloat>,
dest_point: &Point2D<AzFloat>,
options: DrawOptions
)
pub fn draw_surface_with_shadow(
&self,
surface: SourceSurface,
dest: &Point2D<AzFloat>,
color: &Color,
offset: &Vector2D<AzFloat>,
sigma: AzFloat,
operator: CompositionOp
)
[src]
&self,
surface: SourceSurface,
dest: &Point2D<AzFloat>,
color: &Color,
offset: &Vector2D<AzFloat>,
sigma: AzFloat,
operator: CompositionOp
)
pub fn snapshot(&self) -> SourceSurface
[src]
pub fn create_source_surface_from_data(
&self,
data: &[u8],
size: Size2D<i32>,
stride: i32,
format: SurfaceFormat
) -> Option<SourceSurface>
[src]
&self,
data: &[u8],
size: Size2D<i32>,
stride: i32,
format: SurfaceFormat
) -> Option<SourceSurface>
Creates a source surface from the given data. If the data is zero-sized, returns None
;
otherwise, returns the source surface.
pub fn create_similar_draw_target(
&self,
size: &Size2D<i32>,
format: SurfaceFormat
) -> DrawTarget
[src]
&self,
size: &Size2D<i32>,
format: SurfaceFormat
) -> DrawTarget
pub fn create_shadow_draw_target(
&self,
size: &Size2D<i32>,
format: SurfaceFormat,
sigma: AzFloat
) -> DrawTarget
[src]
&self,
size: &Size2D<i32>,
format: SurfaceFormat,
sigma: AzFloat
) -> DrawTarget
pub fn create_gradient_stops(
&self,
gradient_stops: &[GradientStop],
extend_mode: ExtendMode
) -> GradientStops
[src]
&self,
gradient_stops: &[GradientStop],
extend_mode: ExtendMode
) -> GradientStops
pub fn set_transform(&self, matrix: &Transform2D<AzFloat>)
[src]
pub fn fill_glyphs(
&self,
azfontref: AzScaledFontRef,
glyphbuf: struct__AzGlyphBuffer,
azure_pattern: AzColorPatternRef,
options: struct__AzDrawOptions,
rendering_options: AzGlyphRenderingOptionsRef
)
[src]
&self,
azfontref: AzScaledFontRef,
glyphbuf: struct__AzGlyphBuffer,
azure_pattern: AzColorPatternRef,
options: struct__AzDrawOptions,
rendering_options: AzGlyphRenderingOptionsRef
)
pub fn create_path_builder(&self) -> PathBuilder
[src]
pub fn create_filter(&self, filter_type: FilterType) -> FilterNode
[src]
pub fn push_clip(&self, path: &Path)
[src]
pub fn push_clip_rect(&self, rect: &Rect<AzFloat>)
[src]
pub fn pop_clip(&self)
[src]
Trait Implementations
impl Drop for DrawTarget
[src]
impl PartialEq<DrawTarget> for DrawTarget
[src]
Auto Trait Implementations
impl !Send for DrawTarget
impl Unpin for DrawTarget
impl !Sync for DrawTarget
impl !RefUnwindSafe for DrawTarget
impl !UnwindSafe 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,