[][src]Struct nannou::ui::prelude::widget::file_navigator::DirectoryView

pub struct DirectoryView<'a> {
    pub style: Style,
    pub directory: &'a Path,
    pub types: Types<'a>,
    // some fields omitted
}

For viewing, selecting, double-clicking, etc the contents of a directory.

Fields

style: Style

Unique styling for the widget.

directory: &'a Path

The path of the directory to display.

types: Types<'a>

Only display files of the given type.

Implementations

impl<'a> DirectoryView<'a>[src]

pub fn new(directory: &'a Path, types: Types<'a>) -> DirectoryView<'a>[src]

Begin building a DirectoryNavigator widget that displays only files of the given types.

pub fn unselected_color(self, color: Color) -> DirectoryView<'a>[src]

The color of the unselected entries within each DirectoryView.

pub fn text_color(self, color: Color) -> DirectoryView<'a>[src]

The color of the Text used to display the file names.

pub fn show_hidden_files(self, show_hidden: bool) -> DirectoryView<'a>[src]

Whether to show hidden files and directories

pub fn font_size(self, font_size: u32) -> DirectoryView<'a>[src]

Build the type's self.$($assignee).+ with the given $Type.

Trait Implementations

impl<'a> Colorable for DirectoryView<'a>[src]

fn color(self, color: Color) -> DirectoryView<'a>[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a> Common for DirectoryView<'a>[src]

impl<'a> Widget for DirectoryView<'a>[src]

type State = State

State to be stored within the Uis widget cache. Read more

type Style = Style

Every widget is required to have its own associated Style type. This type is intended to contain high-level styling information for the widget that can be optionally specified by a user of the widget. Read more

type Event = Vec<Event>

The type of event yielded by the widget, returned via the Widget::set function. Read more

Auto Trait Implementations

impl<'a> RefUnwindSafe for DirectoryView<'a>

impl<'a> Send for DirectoryView<'a>

impl<'a> Sync for DirectoryView<'a>

impl<'a> Unpin for DirectoryView<'a>

impl<'a> UnwindSafe for DirectoryView<'a>

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<W> Positionable for W where
    W: Widget
[src]

impl<T> SetParameter for T

impl<W> Sizeable for W where
    W: Widget
[src]

fn get_x_dimension(&self, ui: &Ui) -> Dimension[src]

We attempt to retrieve the x Dimension for the widget via the following:

  • Check for specified value at maybe_x_dimension
  • Otherwise, use the default returned by Widget::default_x_dimension.

fn get_y_dimension(&self, ui: &Ui) -> Dimension[src]

We attempt to retrieve the y Dimension for the widget via the following:

  • Check for specified value at maybe_y_dimension
  • Otherwise, use the default returned by Widget::default_y_dimension.

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>,