FileBrowser

Struct FileBrowser 

Source
pub struct FileBrowser { /* private fields */ }

Methods from Deref<Target = Widget>§

Source

pub fn handle(&self) -> Handle<UiNode>

Source

pub fn name(&self) -> &str

Source

pub fn set_name<P>(&mut self, name: P) -> &mut Widget
where P: AsRef<str>,

Source

pub fn actual_size( &self, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source

pub fn set_min_size( &mut self, value: Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>, ) -> &mut Widget

Source

pub fn set_min_width(&mut self, value: f32) -> &mut Widget

Source

pub fn set_min_height(&mut self, value: f32) -> &mut Widget

Source

pub fn min_size( &self, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source

pub fn min_width(&self) -> f32

Source

pub fn min_height(&self) -> f32

Source

pub fn is_drag_allowed(&self) -> bool

Source

pub fn is_drop_allowed(&self) -> bool

Source

pub fn invalidate_layout(&self)

Source

pub fn invalidate_measure(&self)

Source

pub fn invalidate_arrange(&self)

Source

pub fn is_hit_test_visible(&self) -> bool

Source

pub fn set_max_size( &mut self, value: Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>, ) -> &mut Widget

Source

pub fn max_size( &self, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source

pub fn max_width(&self) -> f32

Source

pub fn max_height(&self) -> f32

Source

pub fn set_z_index(&mut self, z_index: usize) -> &mut Widget

Source

pub fn z_index(&self) -> usize

Source

pub fn set_background(&mut self, brush: Brush) -> &mut Widget

Source

pub fn background(&self) -> Brush

Source

pub fn set_foreground(&mut self, brush: Brush) -> &mut Widget

Source

pub fn foreground(&self) -> Brush

Source

pub fn set_width(&mut self, width: f32) -> &mut Widget

Source

pub fn width(&self) -> f32

Source

pub fn is_draw_on_top(&self) -> bool

Source

pub fn set_height(&mut self, height: f32) -> &mut Widget

Source

pub fn height(&self) -> f32

Source

pub fn set_desired_local_position( &mut self, pos: Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>, ) -> &mut Widget

Source

pub fn screen_position( &self, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source

pub fn children(&self) -> &[Handle<UiNode>]

Source

pub fn parent(&self) -> Handle<UiNode>

Source

pub fn set_parent(&mut self, parent: Handle<UiNode>)

Source

pub fn column(&self) -> usize

Source

pub fn set_row(&mut self, row: usize) -> &mut Widget

Source

pub fn row(&self) -> usize

Source

pub fn desired_size( &self, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source

pub fn desired_local_position( &self, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source

pub fn screen_bounds(&self) -> Rect<f32>

Source

pub fn has_descendant( &self, node_handle: Handle<UiNode>, ui: &UserInterface, ) -> bool

Source

pub fn find_by_criteria_up<Func>( &self, ui: &UserInterface, func: Func, ) -> Handle<UiNode>
where Func: Fn(&UiNode) -> bool,

Searches a node up on tree starting from given root that matches a criteria defined by a given func.

Source

pub fn handle_routed_message( &mut self, _ui: &mut UserInterface, msg: &mut UiMessage, )

Source

pub fn set_vertical_alignment( &mut self, vertical_alignment: VerticalAlignment, ) -> &mut Widget

Source

pub fn vertical_alignment(&self) -> VerticalAlignment

Source

pub fn set_horizontal_alignment( &mut self, horizontal_alignment: HorizontalAlignment, ) -> &mut Widget

Source

pub fn horizontal_alignment(&self) -> HorizontalAlignment

Source

pub fn set_column(&mut self, column: usize) -> &mut Widget

Source

pub fn set_margin(&mut self, margin: Thickness) -> &mut Widget

Source

pub fn margin(&self) -> Thickness

Source

pub fn measure_override( &self, ui: &UserInterface, available_size: Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source

pub fn arrange_override( &self, ui: &UserInterface, final_size: Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source

pub fn is_arrange_valid(&self) -> bool

Source

pub fn is_measure_valid(&self) -> bool

Source

pub fn actual_local_position( &self, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source

pub fn is_globally_visible(&self) -> bool

Source

pub fn set_visibility(&mut self, visibility: bool) -> &mut Widget

Source

pub fn visibility(&self) -> bool

Source

pub fn set_enabled(&mut self, enabled: bool) -> &mut Widget

Source

pub fn enabled(&self) -> bool

Source

pub fn set_cursor(&mut self, cursor: Option<CursorIcon>)

Source

pub fn cursor(&self) -> Option<CursorIcon>

Source

pub fn user_data_ref<T>(&self) -> Option<&T>
where T: 'static,

Source

pub fn clip_bounds(&self) -> Rect<f32>

Source

pub fn set_opacity(&mut self, opacity: Option<f32>) -> &mut Widget

Source

pub fn opacity(&self) -> Option<f32>

Source

pub fn tooltip(&self) -> Handle<UiNode>

Source

pub fn set_tooltip(&mut self, tooltip: Handle<UiNode>) -> &mut Widget

Source

pub fn tooltip_time(&self) -> f32

Source

pub fn set_tooltip_time(&mut self, tooltip_time: f32) -> &mut Widget

Source

pub fn context_menu(&self) -> Handle<UiNode>

Source

pub fn set_context_menu(&mut self, context_menu: Handle<UiNode>) -> &mut Widget

The context menu receives PopupMessages for being displayed, and so should support those.

Trait Implementations§

Source§

impl Clone for FileBrowser

Source§

fn clone(&self) -> FileBrowser

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Control for FileBrowser

Source§

fn query_component(&self, type_id: TypeId) -> Option<&(dyn Any + 'static)>

Allows a widget to provide access to inner components. For example you can build your custom MyTree widget using engine’s Tree widget as a base. The engine needs to know whether the custom widget is actually extends functionality of some existing widget. Read more
Source§

fn resolve(&mut self, node_map: &NodeHandleMapping)

Source§

fn handle_routed_message( &mut self, ui: &mut UserInterface, message: &mut UiMessage, )

Performs event-specific actions. Must call widget.handle_message()! Read more
Source§

fn update(&mut self, _dt: f32, sender: &Sender<UiMessage>)

Source§

fn on_remove(&self, _sender: &Sender<UiMessage>)

Source§

fn measure_override( &self, ui: &UserInterface, available_size: Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source§

fn arrange_override( &self, ui: &UserInterface, final_size: Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>, ) -> Matrix<f32, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<f32, 2, 1>>

Source§

fn draw(&self, _drawing_context: &mut DrawingContext)

Source§

fn preview_message(&self, _ui: &UserInterface, _message: &mut UiMessage)

Used to react to a message (by producing another message) that was posted outside of current hierarchy. In other words this method is used when you need to “peek” a message before it’ll be passed into bubbling router. Most common use case is to catch messages from popups: popup in 99.9% cases is a child of root canvas and it won’t receive a message from a its logical parent during bubbling message routing. For example preview_message used in a dropdown list: dropdown list has two separate parts - a field with selected value and a popup for all possible options. Visual parent of the popup in this case is the root canvas, but logical parent is the dropdown list. Because of this fact, the field won’t receive any messages from popup, to solve this we use preview_message. This method is much more restrictive - it does not allow you to modify a node and ui, you can either request changes by sending a message or use internal mutability (Cell, RefCell, etc). Read more
Source§

fn handle_os_event( &mut self, _self_handle: Handle<UiNode>, _ui: &mut UserInterface, _event: &OsEvent, )

Provides a way to respond to OS specific events. Can be useful to detect if a key or mouse button was pressed. This method significantly differs from handle_message because os events are not dispatched - they’ll be passed to this method in any case. Read more
Source§

impl DerefMut for FileBrowser

Source§

fn deref_mut(&mut self) -> &mut <FileBrowser as Deref>::Target

Mutably dereferences the value.
Source§

impl Deref for FileBrowser

Source§

type Target = Widget

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<FileBrowser as Deref>::Target

Dereferences the value.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> BaseControl for T
where T: Any + Clone + 'static + Control,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Source§

fn clone_boxed(&self) -> Box<dyn Control<Target = Widget>>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V