[][src]Struct azure::azure_hl::DrawTarget

pub struct DrawTarget {
    pub azure_draw_target: AzDrawTargetRef,
    pub backing: DrawTargetBacking,
}

Fields

azure_draw_target: AzDrawTargetRefbacking: DrawTargetBacking

Methods

impl DrawTarget[src]

pub fn new(
    backend: BackendType,
    size: Size2D<i32>,
    format: SurfaceFormat
) -> DrawTarget
[src]

pub fn new_with_data(
    backend: BackendType,
    data: Vec<u8>,
    offset: usize,
    size: Size2D<i32>,
    stride: i32,
    format: SurfaceFormat
) -> DrawTarget
[src]

pub fn new_with_gl_rasterization_context(
    gl_rasterization_context: Arc<GLRasterizationContext>,
    format: SurfaceFormat
) -> DrawTarget
[src]

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]

pub fn stroke(
    &self,
    path: &Path,
    pattern: PatternRef,
    stroke_options: &StrokeOptions,
    draw_options: &DrawOptions
)
[src]

pub fn stroke_line(
    &self,
    start: Point2D<AzFloat>,
    end: Point2D<AzFloat>,
    pattern: PatternRef,
    stroke_options: &StrokeOptions,
    draw_options: &DrawOptions
)
[src]

pub fn stroke_rect(
    &self,
    rect: &Rect<AzFloat>,
    pattern: PatternRef,
    stroke_options: &StrokeOptions,
    draw_options: &DrawOptions
)
[src]

pub fn draw_surface(
    &self,
    surface: SourceSurface,
    dest: Rect<AzFloat>,
    source: Rect<AzFloat>,
    surf_options: DrawSurfaceOptions,
    options: DrawOptions
)
[src]

pub fn copy_surface(
    &self,
    surface: SourceSurface,
    source: Rect<i32>,
    destination: Point2D<i32>
)
[src]

pub fn draw_filter(
    &self,
    filter: &FilterNode,
    source_rect: &Rect<AzFloat>,
    dest_point: &Point2D<AzFloat>,
    options: DrawOptions
)
[src]

pub fn draw_surface_with_shadow(
    &self,
    surface: SourceSurface,
    dest: &Point2D<AzFloat>,
    color: &Color,
    offset: &Vector2D<AzFloat>,
    sigma: AzFloat,
    operator: CompositionOp
)
[src]

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]

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]

pub fn create_shadow_draw_target(
    &self,
    size: &Size2D<i32>,
    format: SurfaceFormat,
    sigma: AzFloat
) -> DrawTarget
[src]

pub fn create_gradient_stops(
    &self,
    gradient_stops: &[GradientStop],
    extend_mode: ExtendMode
) -> GradientStops
[src]

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]

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]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]