egui_path_picker 0.2.0

Simple egui widget for picking paths
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// A simple 'static' trait that provides the [crate::PathPicker] with fitting icons to be used in the GUI
pub trait IconProvider {
    const BACK_ICON: &'static str;
    const FOLDER_ICON: &'static str;
    const FILE_ICON: &'static str;
    const OPEN_ICON: &'static str;
}

/// My [IconProvider] of choice
pub struct DefaultIconProvider;

impl IconProvider for DefaultIconProvider {
    const BACK_ICON: &'static str = "โคด";
    const FOLDER_ICON: &'static str = "๐Ÿ“";
    const FILE_ICON: &'static str = "";
    const OPEN_ICON: &'static str = "๐Ÿ“‚";
}