[][src]Trait iced_native::widget::pick_list::Renderer

pub trait Renderer: Renderer + Renderer {
    type Style: Default;

    const DEFAULT_PADDING: u16;

    fn menu_style(style: &Self::Style) -> Self::Style;
fn draw(
        &mut self,
        bounds: Rectangle,
        cursor_position: Point,
        selected: Option<String>,
        padding: u16,
        text_size: u16,
        font: Self::Font,
        style: &Self::Style
    ) -> Self::Output; }

The renderer of a PickList.

Your renderer will need to implement this trait before being able to use a PickList in your user interface.

Associated Types

type Style: Default

The PickList style supported by this renderer.

Loading content...

Associated Constants

const DEFAULT_PADDING: u16

The default padding of a PickList.

Loading content...

Required methods

fn menu_style(style: &Self::Style) -> Self::Style

Returns the style of the Menu of the PickList.

fn draw(
    &mut self,
    bounds: Rectangle,
    cursor_position: Point,
    selected: Option<String>,
    padding: u16,
    text_size: u16,
    font: Self::Font,
    style: &Self::Style
) -> Self::Output

Draws a PickList.

Loading content...

Implementors

Loading content...