Struct rg3d_ui::file_browser::FileBrowserBuilder[][src]

pub struct FileBrowserBuilder<M: MessageData, C: Control<M, C>> { /* fields omitted */ }

Implementations

impl<M: MessageData, C: Control<M, C>> FileBrowserBuilder<M, C>[src]

pub fn new(widget_builder: WidgetBuilder<M, C>) -> Self[src]

pub fn with_filter(self, filter: Rc<RefCell<Filter>>) -> Self[src]

pub fn with_opt_filter(self, filter: Option<Rc<RefCell<Filter>>>) -> Self[src]

pub fn with_path<P: AsRef<Path>>(self, path: P) -> Self[src]

Sets desired path which will be used to build file system tree.

Notes

It does not bring tree item with given path into view because it is impossible during construction stage - there is not enough layout information to do so. You can send FileBrowserMessage::Path right after creation and it will bring tree item into view without any problems. It is possible because all widgets were created at that moment and layout system can give correct offsets to bring item into view.

pub fn with_root(self, root: PathBuf) -> Self[src]

pub fn build(self, ctx: &mut BuildContext<'_, M, C>) -> Handle<UINode<M, C>>[src]

Auto Trait Implementations

impl<M, C> !RefUnwindSafe for FileBrowserBuilder<M, C>

impl<M, C> !Send for FileBrowserBuilder<M, C>

impl<M, C> !Sync for FileBrowserBuilder<M, C>

impl<M, C> Unpin for FileBrowserBuilder<M, C> where
    C: Unpin,
    M: Unpin

impl<M, C> !UnwindSafe for FileBrowserBuilder<M, C>

Blanket Implementations

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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