Struct mltg::Factory [−][src]
pub struct Factory { /* fields omitted */ }
Implementations
pub fn create_gradient_stop_collection<U>(
&self,
stops: &[U]
) -> Result<GradientStopCollection> where
U: Into<GradientStop> + Clone,
pub fn create_linear_gradient_brush(
&self,
start: impl Into<Point>,
end: impl Into<Point>,
stop_collection: &GradientStopCollection
) -> Result<Brush>
pub fn create_radial_gradient_brush(
&self,
center: impl Into<Point>,
offset: impl Into<Point>,
radius: impl Into<Vector>,
stop_collection: &GradientStopCollection
) -> Result<Brush>
pub fn create_text_format(
&self,
font: &Font,
size: impl Into<f32>,
style: Option<&TextStyle>
) -> Result<TextFormat>
pub fn create_text_layout(
&self,
text: impl AsRef<str>,
format: &TextFormat,
alignment: TextAlignment,
size: Option<Size>
) -> Result<TextLayout>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more