Struct rg3d_ui::file_browser::FileBrowserBuilder [−][src]
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,
C: Unpin,
M: Unpin,
impl<M, C> !UnwindSafe for FileBrowserBuilder<M, C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,