[−][src]Trait directwrite::geometry_sink::GeometrySink
A sink for geometry made of straight lines and cubic bezier curves.
Required methods
fn set_fill_mode(&mut self, mode: u32)
Sets the fill mode to be used for any figures that come after this method call until
this method is called again. See direct2d::enums::FillMode
for interpreting
the mode parameter.
fn set_segment_flags(&mut self, flags: u32)
Specifies stroke and join options to be applied to new segments added to the geometry
sink. After this method is called, the specified segment flags are applied to each segment
subsequently added to the sink. The segment flags are applied to every additional segment
until this method is called again and a different set of segment flags is specified. See
direct2d::enums::PathSegment
for interpreting the flags parameter.
fn begin_figure(&mut self, start: Point2f, begin_flag: u32)
Called at the beginning of a new figure. See direct2d::enums::FigureBegin
for interpreting the flag parameter.
fn add_beziers(&mut self, beziers: &[BezierSegment])
Adds a list of cubic bezier segments. Each segment begins at the last point passed
to the current figure. If there are no lines or curves added yet, the last point will be
the point passed to begin_figure
.
fn add_lines(&mut self, points: &[Point2f])
Adds a list of straight lines to the figure. The start point for each line segment is the
last point on the previous segment. If there are no lines or curves added yet, the last
point will be the point passed to begin_figure
.
fn end_figure(&mut self, end_flag: u32)
Called to end a figure. See direct2d::enums::FigureEnd
for interpreting the flag parameter.
fn close(&mut self) -> DWResult<()>
Closes the geometry sink, indicates whether it is in an error state, and resets the sink's error state.
Implementations on Foreign Types
impl<'a, T> GeometrySink for &'a mut T where
T: GeometrySink,
[src]
T: GeometrySink,