logo
pub struct Context { /* private fields */ }

Implementations

Set the line or text color of a primitive.

Set the fill color of a primitive.

Set the gamma of the device. out_color = in_color ** gamma

Set the width of the line in chosen units.

Set the type of the line.

Blank    => <invisible>
Solid    => ------
Dashed   => - - - -
Dotted   => . . . .
DotDash  => . - . -
LongDash => --  --
TwoDash  => . . - -

Set the line end type.

  LineEnd::RoundCap
  LineEnd::ButtCap  
  LineEnd::SquareCap

Set the line join type.

  LineJoin::RoundJoin
  LineJoin::MitreJoin
  LineJoin::BevelJoin

Set the line miter limit - the point where the line becomes a bevel join.

Set the line height for text.

Set the font face.

  FontFace::PlainFont
  FontFace::BoldFont
  FontFace::ItalicFont
  FontFace::BoldItalicFont
  FontFace::SymbolFont

Set the transform as a 3x2 matrix.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.