pub struct Factory { /* private fields */ }
Implementations§
source§impl Factory
impl Factory
pub fn create_solid_color_brush( &self, color: impl Into<Rgba<f32>> ) -> Result<Brush>
pub fn create_gradient_stop_collection<T>( &self, mode: GradientMode, stops: &[T] ) -> Result<GradientStopCollection>where T: Into<GradientStop> + Clone,
pub fn create_linear_gradient_brush( &self, start: impl Into<Point<f32>>, end: impl Into<Point<f32>>, stops: &GradientStopCollection ) -> Result<Brush>
pub fn create_radial_gradient_brush( &self, ellipse: impl Into<Ellipse>, offset: impl Into<Point<f32>>, stops: &GradientStopCollection ) -> Result<Brush>
pub fn create_text_format( &self, font: Font<'_, '_>, size: impl Into<f32>, style: Option<&TextStyle>, locale: Option<&str> ) -> Result<TextFormat>
pub fn create_text_layout( &self, text: impl AsRef<str>, format: &TextFormat, alignment: TextAlignment, size: Option<Size<f32>> ) -> Result<TextLayout>
pub fn create_stroke_style( &self, props: &StrokeStyleProperties<'_> ) -> Result<StrokeStyle>
pub fn create_image_from_file(&self, path: impl AsRef<Path>) -> Result<Image>
pub fn create_filled_path(&self) -> Result<PathBuilder<FilledPath>>
pub fn create_hollow_path(&self) -> Result<PathBuilder<HollowPath>>
pub fn lock(&self) -> LockGuard<'_>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Factory
impl !Send for Factory
impl !Sync for Factory
impl Unpin for Factory
impl UnwindSafe for Factory
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more