[][src]Struct iced_graphics::Renderer

pub struct Renderer<B: Backend> { /* fields omitted */ }

A backend-agnostic renderer that supports all the built-in widgets.

Implementations

impl<B: Backend> Renderer<B>[src]

pub fn new(backend: B) -> Self[src]

Creates a new Renderer from the given Backend.

pub fn backend(&self) -> &B[src]

Returns a reference to the Backend of the Renderer.

pub fn backend_mut(&mut self) -> &mut B[src]

Returns a mutable reference to the Backend of the Renderer.

Trait Implementations

impl<B: Debug + Backend> Debug for Renderer<B>[src]

impl<B> Debugger for Renderer<B> where
    B: Backend
[src]

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

type Output = (Primitive, Interaction)

The type of output of the [Renderer]. Read more

type Defaults = Defaults

The default styling attributes of the [Renderer]. Read more

impl<B> Renderer for Renderer<B> where
    B: Backend + Text
[src]

type Style = Style

The [Menu] style supported by this renderer. Read more

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

type Style = Box<dyn StyleSheet>

The style supported by this renderer.

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

type Style = Box<dyn StyleSheet>

The style supported by this renderer.

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

type Style = Box<dyn StyleSheet>

The style supported by this renderer.

impl<B> Renderer for Renderer<B> where
    B: Backend + Text
[src]

type Style = Box<dyn StyleSheet>

The style supported by this renderer.

impl<B> Renderer for Renderer<B> where
    B: Backend + Image
[src]

impl<B> Renderer for Renderer<B> where
    B: Backend + Text
[src]

type Style = Box<dyn StyleSheet>

The [PickList] style supported by this renderer. Read more

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

type Style = Box<dyn StyleSheet>

The style supported by this renderer.

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

impl<B> Renderer for Renderer<B> where
    B: Backend + Svg
[src]

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

type Style = Box<dyn StyleSheet>

The style supported by this renderer.

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

type Style = Box<dyn StyleSheet>

The style supported by this renderer.

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

impl<B> Renderer for Renderer<B> where
    B: Backend + Text
[src]

type Font = Font

The font type used for [Text]. Read more

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

type Style = Box<dyn StyleSheet>

The style supported by this renderer.

impl<B> Renderer for Renderer<B> where
    B: Backend + Text
[src]

type Style = Box<dyn StyleSheet>

The style supported by this renderer.

impl<B> Renderer for Renderer<B> where
    B: Backend
[src]

impl<B> Renderer for Renderer<B> where
    B: Backend + Text
[src]

impl<Message, P, B> Widget<Message, Renderer<B>> for Canvas<Message, P> where
    P: Program<Message>,
    B: Backend
[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for Renderer<B> where
    B: RefUnwindSafe

impl<B> Send for Renderer<B> where
    B: Send

impl<B> Sync for Renderer<B> where
    B: Sync

impl<B> Unpin for Renderer<B> where
    B: Unpin

impl<B> UnwindSafe for Renderer<B> where
    B: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,