pub struct TreeView(/* private fields */);Implementations§
Source§impl TreeView
impl TreeView
pub fn new() -> Result<Self, PlatformError>
pub fn get_activation_mode(&self) -> ActivationMode
pub fn set_activation_mode(&self, value: ActivationMode)
pub fn get_background_color(&self) -> Color
pub fn set_background_color(&self, value: Color)
pub fn get_branch_indicator_color(&self) -> Color
pub fn set_branch_indicator_color(&self, value: Color)
pub fn get_branch_indicator_width(&self) -> Coord
pub fn set_branch_indicator_width(&self, value: Coord)
pub fn get_branch_line_color(&self) -> Color
pub fn set_branch_line_color(&self, value: Color)
pub fn invoke_clear_focus(&self)
pub fn get_collapsed_branch_indicator(&self) -> SharedString
pub fn set_collapsed_branch_indicator(&self, value: SharedString)
pub fn invoke_current_changed(&self, arg_0: i32)
pub fn on_current_changed(&self, f: impl FnMut(i32) + 'static)
pub fn get_current_index(&self) -> i32
pub fn set_current_index(&self, value: i32)
pub fn get_current_internal_id(&self) -> i32
pub fn invoke_current_parent_change_requested(&self, arg_0: i32, arg_1: i32)
pub fn on_current_parent_change_requested( &self, f: impl FnMut(i32, i32) + 'static, )
pub fn get_decoration_spacing(&self) -> Coord
pub fn set_decoration_spacing(&self, value: Coord)
pub fn get_disabled_opacity(&self) -> f32
pub fn set_disabled_opacity(&self, value: f32)
pub fn get_disabled_text_color(&self) -> Color
pub fn set_disabled_text_color(&self, value: Color)
pub fn get_drop_indicator_color(&self) -> Color
pub fn set_drop_indicator_color(&self, value: Color)
pub fn get_expanded_branch_indicator(&self) -> SharedString
pub fn set_expanded_branch_indicator(&self, value: SharedString)
pub fn get_expands_on_double_click(&self) -> bool
pub fn set_expands_on_double_click(&self, value: bool)
pub fn invoke_focus(&self)
pub fn get_focused(&self) -> bool
pub fn set_focused(&self, value: bool)
pub fn get_highlight_color(&self) -> Color
pub fn set_highlight_color(&self, value: Color)
pub fn get_highlighted_text_color(&self) -> Color
pub fn set_highlighted_text_color(&self, value: Color)
pub fn get_horizontal_padding(&self) -> Coord
pub fn set_horizontal_padding(&self, value: Coord)
pub fn get_hover_color(&self) -> Color
pub fn set_hover_color(&self, value: Color)
pub fn get_hover_highlight(&self) -> bool
pub fn set_hover_highlight(&self, value: bool)
pub fn get_inactive_highlight_color(&self) -> Color
pub fn set_inactive_highlight_color(&self, value: Color)
pub fn get_inactive_highlighted_text_color(&self) -> Color
pub fn set_inactive_highlighted_text_color(&self, value: Color)
pub fn get_indentation(&self) -> Coord
pub fn set_indentation(&self, value: Coord)
pub fn invoke_item_activated(&self, arg_0: i32)
pub fn on_item_activated(&self, f: impl FnMut(i32) + 'static)
pub fn invoke_item_clicked(&self, arg_0: i32)
pub fn on_item_clicked(&self, f: impl FnMut(i32) + 'static)
pub fn invoke_item_collapse_requested(&self, arg_0: i32)
pub fn on_item_collapse_requested(&self, f: impl FnMut(i32) + 'static)
pub fn invoke_item_double_clicked(&self, arg_0: i32)
pub fn on_item_double_clicked(&self, f: impl FnMut(i32) + 'static)
pub fn invoke_item_expand_requested(&self, arg_0: i32)
pub fn on_item_expand_requested(&self, f: impl FnMut(i32) + 'static)
pub fn get_items_expandable(&self) -> bool
pub fn set_items_expandable(&self, value: bool)
pub fn invoke_key_press_event(&self, arg_0: KeyEvent) -> EventResult
pub fn on_key_press_event( &self, f: impl FnMut(KeyEvent) -> EventResult + 'static, )
pub fn get_model(&self) -> ModelRc<TreeItem>
pub fn set_model(&self, value: ModelRc<TreeItem>)
pub fn get_page_size(&self) -> i32
pub fn set_page_size(&self, value: i32)
pub fn invoke_recursive_expand_requested( &self, arg_0: i32, arg_1: bool, arg_2: i32, )
pub fn on_recursive_expand_requested( &self, f: impl FnMut(i32, bool, i32) + 'static, )
pub fn get_root_is_decorated(&self) -> bool
pub fn set_root_is_decorated(&self, value: bool)
pub fn get_row_height(&self) -> Coord
pub fn set_row_height(&self, value: Coord)
pub fn get_text_color(&self) -> Color
pub fn set_text_color(&self, value: Color)
Trait Implementations§
Source§impl ComponentHandle for TreeView
impl ComponentHandle for TreeView
Source§fn clone_strong(&self) -> Self
fn clone_strong(&self) -> Self
Returns a clone of this handle that’s a strong reference.
Source§fn global<'a, T: Global<'a, Self>>(&'a self) -> T
fn global<'a, T: Global<'a, Self>>(&'a self) -> T
This function provides access to instances of global singletons exported in
.slint.
See Global for an example how to export and access globals from .slint markup.Source§fn run(&self) -> Result<(), PlatformError>
fn run(&self) -> Result<(), PlatformError>
This is a convenience function that first calls
Self::show, followed by crate::run_event_loop()
and Self::hide.Source§fn show(&self) -> Result<(), PlatformError>
fn show(&self) -> Result<(), PlatformError>
Convenience function for
crate::Window::show().
This shows the window on the screen and maintains an extra strong reference while
the window is visible. To react to events from the windowing system, such as draw
requests or mouse/touch input, it is still necessary to spin the event loop,
using crate::run_event_loop.Source§fn hide(&self) -> Result<(), PlatformError>
fn hide(&self) -> Result<(), PlatformError>
Convenience function for
crate::Window::hide().
Hides the window, so that it is not visible anymore. The additional strong reference
on the associated component, that was created when show() was called, is dropped.Source§impl<'a> Global<'a, TreeView> for TreeViewStyle<'a>
impl<'a> Global<'a, TreeView> for TreeViewStyle<'a>
Source§type StaticSelf = TreeViewStyle<'static>
type StaticSelf = TreeViewStyle<'static>
The
Self type, with a 'static lifetime.impl StrongHandle for TreeView
Auto Trait Implementations§
impl !RefUnwindSafe for TreeView
impl !Send for TreeView
impl !Sync for TreeView
impl !UnwindSafe for TreeView
impl Freeze for TreeView
impl Unpin for TreeView
impl UnsafeUnpin for TreeView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more