Struct fltk::tree::Tree [−][src]
pub struct Tree { /* fields omitted */ }
Expand description
Defines a tree widget
Implementations
impl Tree
[src]
impl Tree
[src]pub fn set_root_label(&mut self, new_label: &str)
[src]
pub fn set_root_label(&mut self, new_label: &str)
[src]Sets the root label
pub fn insert_above(&mut self, above: &TreeItem, name: &str) -> Option<TreeItem>
[src]
pub fn insert_above(&mut self, above: &TreeItem, name: &str) -> Option<TreeItem>
[src]Inserts a TreeItem
above another tree item
pub fn insert(
&mut self,
item: &TreeItem,
name: &str,
pos: i32
) -> Option<TreeItem>
[src]
pub fn insert(
&mut self,
item: &TreeItem,
name: &str,
pos: i32
) -> Option<TreeItem>
[src]Inserts a TreeItem
at a position pos
pub fn clear_children(&mut self, item: &TreeItem)
[src]
pub fn clear_children(&mut self, item: &TreeItem)
[src]Clears all children
pub fn find_clicked(&self, yonly: bool) -> Option<TreeItem>
[src]
pub fn find_clicked(&self, yonly: bool) -> Option<TreeItem>
[src]finds a clicked item
pub fn set_item_clicked(&mut self) -> Option<TreeItem>
[src]
pub fn set_item_clicked(&mut self) -> Option<TreeItem>
[src]Set the item that was last clicked.
pub fn first_visible_item(&mut self) -> Option<TreeItem>
[src]
pub fn first_visible_item(&mut self) -> Option<TreeItem>
[src]Gets the first visible tree item
pub fn last_visible_item(&mut self) -> Option<TreeItem>
[src]
pub fn last_visible_item(&mut self) -> Option<TreeItem>
[src]Gets the last visible tree item
pub fn next_visible_item(
&mut self,
start: &TreeItem,
direction_key: Key
) -> Option<TreeItem>
[src]
pub fn next_visible_item(
&mut self,
start: &TreeItem,
direction_key: Key
) -> Option<TreeItem>
[src]Gets the next visible tree item
pub fn first_selected_item(&mut self) -> Option<TreeItem>
[src]
pub fn first_selected_item(&mut self) -> Option<TreeItem>
[src]Gets the first selected tree item
pub fn last_selected_item(&mut self) -> Option<TreeItem>
[src]
pub fn last_selected_item(&mut self) -> Option<TreeItem>
[src]Gets the last selected tree item
pub fn next_item(
&mut self,
item: &TreeItem,
direction_key: Key,
visible: bool
) -> Option<TreeItem>
[src]
pub fn next_item(
&mut self,
item: &TreeItem,
direction_key: Key,
visible: bool
) -> Option<TreeItem>
[src]Gets the next tree item, direction_key
is by default Key::Down
pub fn next_selected_item(
&mut self,
item: &TreeItem,
direction_key: Key
) -> Option<TreeItem>
[src]
pub fn next_selected_item(
&mut self,
item: &TreeItem,
direction_key: Key
) -> Option<TreeItem>
[src]Gets the next selected tree item, direction_key
is by default Key::Down
pub fn get_selected_items(&mut self) -> Option<Vec<TreeItem>>
[src]
pub fn get_selected_items(&mut self) -> Option<Vec<TreeItem>>
[src]Gets the selected tree items
pub fn open_toggle(&mut self, item: &TreeItem, do_callback: bool)
[src]
pub fn open_toggle(&mut self, item: &TreeItem, do_callback: bool)
[src]Toggle the open state
pub fn select_toggle(&mut self, item: &TreeItem, do_callback: bool)
[src]
pub fn select_toggle(&mut self, item: &TreeItem, do_callback: bool)
[src]Toggle the select state of the specified
pub fn deselect(
&mut self,
path: &str,
do_callback: bool
) -> Result<(), FltkError>
[src]
pub fn deselect(
&mut self,
path: &str,
do_callback: bool
) -> Result<(), FltkError>
[src]Deselect an item at path
and determine whether to do the callback
Errors
Errors on failure to deselect item
pub fn select_only(
&mut self,
selected_item: &TreeItem,
do_callback: bool
) -> Result<(), FltkError>
[src]
pub fn select_only(
&mut self,
selected_item: &TreeItem,
do_callback: bool
) -> Result<(), FltkError>
[src]Select only the specified item, deselecting all others that might be selected.
Errors
Errors on failure to select an item
pub fn extend_selection_dir(
&mut self,
from: &TreeItem,
to: &TreeItem,
direction_key: Key,
val: TreeItemSelect,
visible: bool
) -> Result<(), FltkError>
[src]
pub fn extend_selection_dir(
&mut self,
from: &TreeItem,
to: &TreeItem,
direction_key: Key,
val: TreeItemSelect,
visible: bool
) -> Result<(), FltkError>
[src]Extend the selection between and including from
and to
in a certain direction
Errors
Errors on failure to extend selection in direction
pub fn extend_selection(
&mut self,
from: &TreeItem,
to: &TreeItem,
val: TreeItemSelect,
visible: bool
) -> Result<(), FltkError>
[src]
pub fn extend_selection(
&mut self,
from: &TreeItem,
to: &TreeItem,
val: TreeItemSelect,
visible: bool
) -> Result<(), FltkError>
[src]pub fn set_item_focus(&mut self, item: &TreeItem)
[src]
pub fn set_item_focus(&mut self, item: &TreeItem)
[src]Set the item that currently should have keyboard focus
pub fn get_item_focus(&self) -> Option<TreeItem>
[src]
pub fn get_item_focus(&self) -> Option<TreeItem>
[src]Get the item that currently has keyboard focus
pub fn is_selected(&self, path: &str) -> bool
[src]
pub fn is_selected(&self, path: &str) -> bool
[src]Returns whether an item is selected
pub fn item_label_font(&self) -> Font
[src]
pub fn item_label_font(&self) -> Font
[src]Gets the items’ label font
pub fn set_item_label_font(&mut self, val: Font)
[src]
pub fn set_item_label_font(&mut self, val: Font)
[src]Sets the items’ label font
pub fn item_label_size(&self) -> i32
[src]
pub fn item_label_size(&self) -> i32
[src]Gets the items’ label size
pub fn set_item_label_size(&mut self, val: i32)
[src]
pub fn set_item_label_size(&mut self, val: i32)
[src]Sets the items’ label size
pub fn item_label_fgcolor(&self) -> Color
[src]
pub fn item_label_fgcolor(&self) -> Color
[src]Gets the items’ foreground color
pub fn set_item_label_fgcolor(&mut self, val: Color)
[src]
pub fn set_item_label_fgcolor(&mut self, val: Color)
[src]Sets the items’ foreground color
pub fn item_label_bgcolor(&self) -> Color
[src]
pub fn item_label_bgcolor(&self) -> Color
[src]Gets the items’ background color
pub fn set_item_label_bgcolor(&mut self, val: Color)
[src]
pub fn set_item_label_bgcolor(&mut self, val: Color)
[src]Sets the items’ foreground color
pub fn connector_color(&self) -> Color
[src]
pub fn connector_color(&self) -> Color
[src]Gets the items’ connector color
pub fn set_connector_color(&mut self, val: Color)
[src]
pub fn set_connector_color(&mut self, val: Color)
[src]Sets the items’ foreground color
pub fn margin_left(&self) -> i32
[src]
pub fn margin_left(&self) -> i32
[src]Gets the left margin
pub fn set_margin_left(&mut self, val: i32)
[src]
pub fn set_margin_left(&mut self, val: i32)
[src]Sets the left margin
pub fn margin_top(&self) -> i32
[src]
pub fn margin_top(&self) -> i32
[src]Gets the top margin
pub fn set_margin_top(&mut self, val: i32)
[src]
pub fn set_margin_top(&mut self, val: i32)
[src]Sets the top margin
pub fn margin_bottom(&self) -> i32
[src]
pub fn margin_bottom(&self) -> i32
[src]Gets the bottom margin
pub fn set_margin_bottom(&mut self, val: i32)
[src]
pub fn set_margin_bottom(&mut self, val: i32)
[src]Sets the bottom margin
pub fn line_spacing(&self) -> i32
[src]
pub fn line_spacing(&self) -> i32
[src]Gets the line spacing
pub fn set_line_spacing(&mut self, val: i32)
[src]
pub fn set_line_spacing(&mut self, val: i32)
[src]Sets the line spacing
pub fn open_child_margin_bottom(&self) -> i32
[src]
pub fn open_child_margin_bottom(&self) -> i32
[src]Gets the open child bottom margin
pub fn set_open_child_margin_bottom(&mut self, val: i32)
[src]
pub fn set_open_child_margin_bottom(&mut self, val: i32)
[src]Sets the open child bottom margin
pub fn user_icon_margin_left(&self) -> i32
[src]
pub fn user_icon_margin_left(&self) -> i32
[src]Gets the user icon left margin
pub fn set_user_icon_margin_left(&mut self, val: i32)
[src]
pub fn set_user_icon_margin_left(&mut self, val: i32)
[src]Sets the user icon left margin
pub fn label_margin_left(&self) -> i32
[src]
pub fn label_margin_left(&self) -> i32
[src]Gets the label’s left margin
pub fn set_label_margin_left(&mut self, val: i32)
[src]
pub fn set_label_margin_left(&mut self, val: i32)
[src]Sets the label’s left margin
pub fn widget_margin_left(&self) -> i32
[src]
pub fn widget_margin_left(&self) -> i32
[src]Gets the widget’s left margin
pub fn set_widget_margin_left(&mut self, val: i32)
[src]
pub fn set_widget_margin_left(&mut self, val: i32)
[src]Sets the widget’s left margin
pub fn connector_width(&self) -> i32
[src]
pub fn connector_width(&self) -> i32
[src]Gets the connector’s width
pub fn set_connector_width(&mut self, val: i32)
[src]
pub fn set_connector_width(&mut self, val: i32)
[src]Sets the connector’s width
pub fn set_user_icon<Img: ImageExt>(&mut self, image: Option<Img>)
[src]
pub fn set_user_icon<Img: ImageExt>(&mut self, image: Option<Img>)
[src]Sets the user icon
pub fn set_open_icon<Img: ImageExt>(&mut self, image: Option<Img>)
[src]
pub fn set_open_icon<Img: ImageExt>(&mut self, image: Option<Img>)
[src]Sets the opne icon
pub fn close_icon(&self) -> Option<Box<dyn ImageExt>>
[src]
pub fn close_icon(&self) -> Option<Box<dyn ImageExt>>
[src]Gets the close icon
pub fn set_close_icon<Img: ImageExt>(&mut self, image: Option<Img>)
[src]
pub fn set_close_icon<Img: ImageExt>(&mut self, image: Option<Img>)
[src]Sets the opne icon
pub fn show_collapse(&self) -> bool
[src]
pub fn show_collapse(&self) -> bool
[src]Returns true if the collapse icon is enabled, false if not.
pub fn set_show_collapse(&mut self, flag: bool)
[src]
pub fn set_show_collapse(&mut self, flag: bool)
[src]Sets whether the collapse icon is enabled
pub fn set_show_root(&mut self, flag: bool)
[src]
pub fn set_show_root(&mut self, flag: bool)
[src]Sets whether the root is shown
pub fn connector_style(&self) -> TreeConnectorStyle
[src]
pub fn connector_style(&self) -> TreeConnectorStyle
[src]Gets the connector style
pub fn set_connector_style(&mut self, val: TreeConnectorStyle)
[src]
pub fn set_connector_style(&mut self, val: TreeConnectorStyle)
[src]Sets the connector style
pub fn sort_order(&self) -> TreeSort
[src]
pub fn sort_order(&self) -> TreeSort
[src]Gets the sort order
pub fn set_sort_order(&mut self, val: TreeSort)
[src]
pub fn set_sort_order(&mut self, val: TreeSort)
[src]Sets the sort order
pub fn select_frame(&self) -> FrameType
[src]
pub fn select_frame(&self) -> FrameType
[src]Gets the select frame
pub fn set_select_frame(&mut self, val: FrameType)
[src]
pub fn set_select_frame(&mut self, val: FrameType)
[src]Sets the select frame
pub fn select_mode(&self) -> TreeSelect
[src]
pub fn select_mode(&self) -> TreeSelect
[src]Gets the Tree select mode
pub fn set_select_mode(&mut self, val: TreeSelect)
[src]
pub fn set_select_mode(&mut self, val: TreeSelect)
[src]Sets the Tree select mode
pub fn item_reselect_mode(&self) -> TreeItemReselectMode
[src]
pub fn item_reselect_mode(&self) -> TreeItemReselectMode
[src]Gets the Tree item’s reselect mode
pub fn set_item_reselect_mode(&mut self, mode: TreeItemReselectMode)
[src]
pub fn set_item_reselect_mode(&mut self, mode: TreeItemReselectMode)
[src]Sets the Tree item’s reselect mode
pub fn item_draw_mode(&self) -> TreeItemDrawMode
[src]
pub fn item_draw_mode(&self) -> TreeItemDrawMode
[src]Gets the Tree item’s draw mode
pub fn set_item_draw_mode(&mut self, mode: TreeItemDrawMode)
[src]
pub fn set_item_draw_mode(&mut self, mode: TreeItemDrawMode)
[src]Sets the Tree item’s draw mode
pub fn calc_dimensions(&mut self)
[src]
pub fn calc_dimensions(&mut self)
[src]Recalculate widget dimensions and scrollbar visibility, normally done automatically
pub fn calc_tree(&mut self)
[src]
pub fn calc_tree(&mut self)
[src]Recalculates the tree’s sizes and scrollbar visibility, normally done automatically
pub fn recalc_tree(&mut self)
[src]
pub fn recalc_tree(&mut self)
[src]Recalculates the tree’s sizes and scrollbar visibility, normally done automatically
pub fn show_item_top(&mut self, item: &TreeItem)
[src]
pub fn show_item_top(&mut self, item: &TreeItem)
[src]Adjust the vertical scrollbar so that item
is visible
pub fn show_item_middle(&mut self, item: &TreeItem)
[src]
pub fn show_item_middle(&mut self, item: &TreeItem)
[src]Adjust the vertical scrollbar so that item
is in the middle of the display
pub fn show_item_bottom(&mut self, item: &TreeItem)
[src]
pub fn show_item_bottom(&mut self, item: &TreeItem)
[src]Adjust the vertical scrollbar so that the is at the bottom of the display.
pub fn set_vposition(&mut self, pos: i32)
[src]
pub fn set_vposition(&mut self, pos: i32)
[src]Sets the vertical position of the item
pub fn set_hposition(&mut self, pos: i32)
[src]
pub fn set_hposition(&mut self, pos: i32)
[src]Sets the horizontal position of the item
pub fn is_scrollbar<W: WidgetExt>(&mut self, w: &W) -> bool
[src]
pub fn is_scrollbar<W: WidgetExt>(&mut self, w: &W) -> bool
[src]Returns whether the widget is a scrollbar
pub fn scrollbar_size(&self) -> i32
[src]
pub fn scrollbar_size(&self) -> i32
[src]Gets the scrollbar size
pub fn set_scrollbar_size(&mut self, sz: i32)
[src]
pub fn set_scrollbar_size(&mut self, sz: i32)
[src]Sets the scrollbar size
pub fn is_vscroll_visible(&self) -> bool
[src]
pub fn is_vscroll_visible(&self) -> bool
[src]Returns whether vertical scrolling is visible
pub fn is_hscroll_visible(&self) -> bool
[src]
pub fn is_hscroll_visible(&self) -> bool
[src]Returns whether horizontal scrolling is visible
pub fn set_callback_item(&mut self, item: &TreeItem)
[src]
pub fn set_callback_item(&mut self, item: &TreeItem)
[src]Set the callback item
pub fn callback_item(&mut self) -> Option<TreeItem>
[src]
pub fn callback_item(&mut self) -> Option<TreeItem>
[src]Get the callback item
pub fn set_callback_reason(&mut self, reason: TreeReason)
[src]
pub fn set_callback_reason(&mut self, reason: TreeReason)
[src]Set the callback reason
pub fn callback_reason(&self) -> TreeReason
[src]
pub fn callback_reason(&self) -> TreeReason
[src]Get the callback reason
Trait Implementations
impl IntoIterator for Tree
[src]
impl IntoIterator for Tree
[src]impl WidgetBase for Tree
[src]
impl WidgetBase for Tree
[src]fn new<T: Into<Option<&'static str>>>(
x: i32,
y: i32,
width: i32,
height: i32,
title: T
) -> Tree
[src]
fn new<T: Into<Option<&'static str>>>(
x: i32,
y: i32,
width: i32,
height: i32,
title: T
) -> Tree
[src]Creates a new widget, takes an x, y coordinates, as well as a width and height, plus a title Read more
unsafe fn from_widget_ptr(ptr: *mut Fl_Widget) -> Self
[src]
unsafe fn from_widget_ptr(ptr: *mut Fl_Widget) -> Self
[src]transforms a widget pointer to a Widget, for internal use Read more
unsafe fn from_widget<W: WidgetExt>(w: W) -> Self
[src]
unsafe fn from_widget<W: WidgetExt>(w: W) -> Self
[src]Get a widget from base widget Read more
fn handle<F: FnMut(&mut Self, Event) -> bool + 'static>(&mut self, cb: F)
[src]
fn handle<F: FnMut(&mut Self, Event) -> bool + 'static>(&mut self, cb: F)
[src]Set a custom handler, where events are managed manually, akin to Fl_Widget::handle(int)
.
Handled or ignored events should return true, unhandled events should return false.
takes the widget as a closure argument Read more
fn draw<F: FnMut(&mut Self) + 'static>(&mut self, cb: F)
[src]
fn draw<F: FnMut(&mut Self) + 'static>(&mut self, cb: F)
[src]Set a custom draw method.
takes the widget as a closure argument.
macOS requires that WidgetBase::draw
actually calls drawing functions Read more
impl WidgetExt for Tree
[src]
impl WidgetExt for Tree
[src]fn set_label(&mut self, title: &str)
[src]
fn set_label(&mut self, title: &str)
[src]Sets the widget’s label.
labels support special symbols preceded by an @
sign.
and for the associated formatting. Read more
unsafe fn as_widget_ptr(&self) -> *mut Fl_Widget
[src]
unsafe fn as_widget_ptr(&self) -> *mut Fl_Widget
[src]transforms a widget to a base Fl_Widget
, for internal use Read more
fn deactivate(&mut self)
[src]
fn deactivate(&mut self)
[src]Deactivates the widget
fn redraw_label(&mut self)
[src]
fn redraw_label(&mut self)
[src]Redraws the label of the widget
fn resize(&mut self, x: i32, y: i32, width: i32, height: i32)
[src]
fn resize(&mut self, x: i32, y: i32, width: i32, height: i32)
[src]Resizes and/or moves the widget, takes x, y, width and height
fn set_tooltip(&mut self, txt: &str)
[src]
fn set_tooltip(&mut self, txt: &str)
[src]Sets the tooltip text
fn label_color(&self) -> Color
[src]
fn label_color(&self) -> Color
[src]Returns the widget label’s color
fn set_label_color(&mut self, color: Color)
[src]
fn set_label_color(&mut self, color: Color)
[src]Sets the widget label’s color
fn label_font(&self) -> Font
[src]
fn label_font(&self) -> Font
[src]Returns the widget label’s font
fn set_label_font(&mut self, font: Font)
[src]
fn set_label_font(&mut self, font: Font)
[src]Sets the widget label’s font
fn label_size(&self) -> i32
[src]
fn label_size(&self) -> i32
[src]Returns the widget label’s size
fn set_label_size(&mut self, sz: i32)
[src]
fn set_label_size(&mut self, sz: i32)
[src]Sets the widget label’s size
fn label_type(&self) -> LabelType
[src]
fn label_type(&self) -> LabelType
[src]Returns the widget label’s type
fn set_label_type(&mut self, typ: LabelType)
[src]
fn set_label_type(&mut self, typ: LabelType)
[src]Sets the widget label’s type
fn set_changed(&mut self)
[src]
fn set_changed(&mut self)
[src]Mark the widget as changed
fn clear_changed(&mut self)
[src]
fn clear_changed(&mut self)
[src]Clears the changed status of the widget
fn set_trigger(&mut self, trigger: CallbackTrigger)
[src]
fn set_trigger(&mut self, trigger: CallbackTrigger)
[src]Sets the default callback trigger for a widget
fn trigger(&self) -> CallbackTrigger
[src]
fn trigger(&self) -> CallbackTrigger
[src]Return the callback trigger
fn selection_color(&mut self) -> Color
[src]
fn selection_color(&mut self) -> Color
[src]Gets the selection color of the widget
fn set_selection_color(&mut self, color: Color)
[src]
fn set_selection_color(&mut self, color: Color)
[src]Sets the selection color of the widget
fn do_callback(&mut self)
[src]
fn do_callback(&mut self)
[src]Runs the already registered callback
fn top_window(&self) -> Option<Box<dyn WindowExt>>
[src]
fn top_window(&self) -> Option<Box<dyn WindowExt>>
[src]Returns the topmost window holding the widget
fn takes_events(&self) -> bool
[src]
fn takes_events(&self) -> bool
[src]Checks whether a widget is capable of taking events
unsafe fn user_data(&self) -> Option<Box<dyn FnMut()>>
[src]
unsafe fn user_data(&self) -> Option<Box<dyn FnMut()>>
[src]INTERNAL: Retakes ownership of the user callback data Read more
fn set_visible_focus(&mut self)
[src]
fn set_visible_focus(&mut self)
[src]Set the widget to have visible focus
fn clear_visible_focus(&mut self)
[src]
fn clear_visible_focus(&mut self)
[src]Clear visible focus
fn visible_focus(&mut self, v: bool)
[src]
fn visible_focus(&mut self, v: bool)
[src]Set the visible focus using a flag
fn has_visible_focus(&mut self) -> bool
[src]
fn has_visible_focus(&mut self) -> bool
[src]Return whether the widget has visible focus
fn was_deleted(&self) -> bool
[src]
fn was_deleted(&self) -> bool
[src]Check if a widget was deleted
fn set_damage(&mut self, flag: bool)
[src]
fn set_damage(&mut self, flag: bool)
[src]Signal the widget as damaged and it should be redrawn in the next event loop cycle
fn damage_type(&self) -> Damage
[src]
fn damage_type(&self) -> Damage
[src]Return the damage mask
fn set_damage_type(&mut self, mask: Damage)
[src]
fn set_damage_type(&mut self, mask: Damage)
[src]Signal the type of damage a widget received
fn clear_damage(&mut self)
[src]
fn clear_damage(&mut self)
[src]Clear the damaged flag
fn as_window(&self) -> Option<Box<dyn WindowExt>>
[src]
fn as_window(&self) -> Option<Box<dyn WindowExt>>
[src]Return the widget as a window if it’s a window
fn as_group(&self) -> Option<Box<dyn GroupExt>>
[src]
fn as_group(&self) -> Option<Box<dyn GroupExt>>
[src]Return the widget as a group widget if it’s a group widget
fn below_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn below_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]Positions the widget below w, the size of w should be known
fn above_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn above_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]Positions the widget above w, the size of w should be known
fn right_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn right_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]Positions the widget to the right of w, the size of w should be known
fn left_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn left_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]Positions the widget to the left of w, the size of w should be known
fn center_of<W: WidgetExt>(self, w: &W) -> Self
[src]
fn center_of<W: WidgetExt>(self, w: &W) -> Self
[src]Positions the widget to the center of w, the size of w should be known
fn center_of_parent(self) -> Self
[src]
fn center_of_parent(self) -> Self
[src]Positions the widget to the center of its parent
fn size_of<W: WidgetExt>(self, w: &W) -> Self
[src]
fn size_of<W: WidgetExt>(self, w: &W) -> Self
[src]Takes the size of w, the size of w should be known
fn size_of_parent(self) -> Self
[src]
fn size_of_parent(self) -> Self
[src]Takes the size of the parent group or window
fn inside<W: WidgetExt>(&self, wid: &W) -> bool
[src]
fn inside<W: WidgetExt>(&self, wid: &W) -> bool
[src]Checks whether the self widget is inside another widget
fn with_pos(self, x: i32, y: i32) -> Self
[src]
fn with_pos(self, x: i32, y: i32) -> Self
[src]Initialize to position x, y, (should only be called on initialization)
fn with_size(self, width: i32, height: i32) -> Self
[src]
fn with_size(self, width: i32, height: i32) -> Self
[src]Initialilze to dimensions width and height, (should only be called on initialization)
fn with_label(self, title: &str) -> Self
[src]
fn with_label(self, title: &str) -> Self
[src]Initialize with label/title, (should only be called on initialization)
fn with_align(self, align: Align) -> Self
[src]
fn with_align(self, align: Align) -> Self
[src]Sets the initial alignment of the widget, (should only be called on initialization)
fn get_type<T: WidgetType>(&self) -> T
[src]
fn get_type<T: WidgetType>(&self) -> T
[src]Returns the widget type when applicable
fn set_type<T: WidgetType>(&mut self, typ: T)
[src]
fn set_type<T: WidgetType>(&mut self, typ: T)
[src]Sets the widget type
fn set_deimage<I: ImageExt>(&mut self, image: Option<I>)
[src]
fn set_deimage<I: ImageExt>(&mut self, image: Option<I>)
[src]Sets the image of the widget
fn set_callback<F: FnMut(&mut Self) + 'static>(&mut self, cb: F)
[src]
fn set_callback<F: FnMut(&mut Self) + 'static>(&mut self, cb: F)
[src]Sets the callback when the widget is triggered (clicks for example) takes the widget as a closure argument Read more
fn emit<T: 'static + Clone + Send + Sync>(&mut self, sender: Sender<T>, msg: T)
[src]
fn emit<T: 'static + Clone + Send + Sync>(&mut self, sender: Sender<T>, msg: T)
[src]Emits a message on callback using a sender
unsafe fn into_widget<W: WidgetBase>(&self) -> W where
Self: Sized,
[src]
unsafe fn into_widget<W: WidgetBase>(&self) -> W where
Self: Sized,
[src]Upcast a WidgetExt
to a Widget Read more
impl Send for Tree
[src]
impl Sync for Tree
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more