pub struct TheSectionbar { /* private fields */ }Trait Implementations§
Source§impl TheWidget for TheSectionbar
impl TheWidget for TheSectionbar
fn new(id: TheId) -> TheSectionbarwhere
TheSectionbar: Sized,
fn id(&self) -> &TheId
Source§fn dim_mut(&mut self) -> &mut TheDim
fn dim_mut(&mut self) -> &mut TheDim
Returns a mutable reference to the dimensions of the widget.
Source§fn set_dim(&mut self, dim: TheDim, _ctx: &mut TheContext)
fn set_dim(&mut self, dim: TheDim, _ctx: &mut TheContext)
Set the dimensions of the widget
Source§fn limiter(&self) -> &TheSizeLimiter
fn limiter(&self) -> &TheSizeLimiter
Returns a reference to the size limiter of the widget.
Source§fn limiter_mut(&mut self) -> &mut TheSizeLimiter
fn limiter_mut(&mut self) -> &mut TheSizeLimiter
Returns a mutable reference to the limiter of the widget.
Source§fn needs_redraw(&mut self) -> bool
fn needs_redraw(&mut self) -> bool
If this function returns true it indicates that the widget needs a redraw.
Source§fn draw(
&mut self,
buffer: &mut TheRGBABuffer,
style: &mut Box<dyn TheStyle>,
ctx: &mut TheContext,
)
fn draw( &mut self, buffer: &mut TheRGBABuffer, style: &mut Box<dyn TheStyle>, ctx: &mut TheContext, )
Draw the widget in the given style
Source§fn calculate_size(&mut self, ctx: &mut TheContext)
fn calculate_size(&mut self, ctx: &mut TheContext)
Called during layouts to give Widgets a chance to dynamically change size (for example for when a widgets text changes). The function is supposed to adjust its limiter.
Source§fn state(&self) -> TheWidgetState
fn state(&self) -> TheWidgetState
Returns the current state of the widget.
Source§fn set_state(&mut self, state: TheWidgetState)
fn set_state(&mut self, state: TheWidgetState)
Set the widget state.
Source§fn set_embedded(&mut self, embedded: bool)
fn set_embedded(&mut self, embedded: bool)
Set the embedded state.
Source§fn set_parent_id(&mut self, parent_id: TheId)
fn set_parent_id(&mut self, parent_id: TheId)
Set the parent id for embedded widgets.
Source§fn has_parent_focus(&self, ctx: &TheContext) -> bool
fn has_parent_focus(&self, ctx: &TheContext) -> bool
Check if the parent widget has focus (for embedded widgets).
Source§fn cursor_icon(&self) -> Option<TheCursorIcon>
fn cursor_icon(&self) -> Option<TheCursorIcon>
Get the cursor icon for this widget when hovered.
Source§fn set_cursor_icon(&mut self, _icon: Option<TheCursorIcon>)
fn set_cursor_icon(&mut self, _icon: Option<TheCursorIcon>)
Set the cursor icon for this widget.
Source§fn status_text(&self) -> Option<String>
fn status_text(&self) -> Option<String>
Retrieves the status text for the widget.
Source§fn set_status_text(&mut self, text: &str)
fn set_status_text(&mut self, text: &str)
Sets the status text for the widget.
Source§fn draw_overlay(
&mut self,
style: &mut Box<dyn TheStyle>,
ctx: &mut TheContext,
) -> TheRGBABuffer
fn draw_overlay( &mut self, style: &mut Box<dyn TheStyle>, ctx: &mut TheContext, ) -> TheRGBABuffer
Draw the widget in the given style
Source§fn supports_hover(&mut self) -> bool
fn supports_hover(&mut self) -> bool
Widgets who support hover return true
Source§fn supports_text_input(&self) -> bool
fn supports_text_input(&self) -> bool
Widgets who support text input return true
Source§fn supports_clipboard(&mut self) -> bool
fn supports_clipboard(&mut self) -> bool
Widgets who support clipboard operations return true
Source§fn supports_undo_redo(&mut self) -> bool
fn supports_undo_redo(&mut self) -> bool
Widgets who support internal undo / redo
Source§fn set_needs_redraw(&mut self, redraw: bool)
fn set_needs_redraw(&mut self, redraw: bool)
Sets the internal redraw flag of the widget to the given value.
Source§fn set_disabled(&mut self, disabled: bool)
fn set_disabled(&mut self, disabled: bool)
Set the disabled state of the widget
Source§fn on_event(&mut self, event: &TheEvent, ctx: &mut TheContext) -> bool
fn on_event(&mut self, event: &TheEvent, ctx: &mut TheContext) -> bool
Process an user driven device event, returns true if we need to redraw.
Sets the context menu for the widget.
Source§fn as_list_item(&mut self) -> Option<&mut dyn TheListItemTrait>
fn as_list_item(&mut self) -> Option<&mut dyn TheListItemTrait>
Attempts to cast to TheListItemTrait. Only valid for TheListItem.
Source§fn as_tree_item(&mut self) -> Option<&mut dyn TheTreeItemTrait>
fn as_tree_item(&mut self) -> Option<&mut dyn TheTreeItemTrait>
Attempts to cast to TheTreeItemTrait. Only valid for TheListItem.
Source§fn as_rowlist_item(&mut self) -> Option<&mut dyn TheRowListItemTrait>
fn as_rowlist_item(&mut self) -> Option<&mut dyn TheRowListItemTrait>
Attempts to cast to TheRowListItemTrait. Only valid for TheRowListItem.
Attempts to cast to TheDropdownMenuTrait. Only valid for TheDropdownMenu.
Source§fn as_horizontal_scrollbar(
&mut self,
) -> Option<&mut dyn TheHorizontalScrollbarTrait>
fn as_horizontal_scrollbar( &mut self, ) -> Option<&mut dyn TheHorizontalScrollbarTrait>
Attempts to cast to TheHorizontalScrollbarTrait. Only valid for TheHorizontalScrollbar.
Source§fn as_vertical_scrollbar(
&mut self,
) -> Option<&mut dyn TheVerticalScrollbarTrait>
fn as_vertical_scrollbar( &mut self, ) -> Option<&mut dyn TheVerticalScrollbarTrait>
Attempts to cast to TheVerticalScrollbarTrait. Only valid for TheVerticalScrollbar.
Source§fn as_rgba_view(&mut self) -> Option<&mut dyn TheRGBAViewTrait>
fn as_rgba_view(&mut self) -> Option<&mut dyn TheRGBAViewTrait>
Attempts to cast to TheRGBAView. Only valid for TheRGBAViewTrait.
Source§fn as_render_view(&mut self) -> Option<&mut dyn TheRenderViewTrait>
fn as_render_view(&mut self) -> Option<&mut dyn TheRenderViewTrait>
Attempts to cast to TheRenderViewTrait. Only valid for TheRenderView.
Source§fn as_node_canvas_view(&mut self) -> Option<&mut dyn TheNodeCanvasViewTrait>
fn as_node_canvas_view(&mut self) -> Option<&mut dyn TheNodeCanvasViewTrait>
Attempts to cast to TheNodeViewTrait. Only valid for TheNodeView.
Source§fn as_text(&mut self) -> Option<&mut dyn TheTextTrait>
fn as_text(&mut self) -> Option<&mut dyn TheTextTrait>
Attempts to cast to TheTextTrait. Only valid for TheText.
Source§fn as_tabbar(&mut self) -> Option<&mut dyn TheTabbarTrait>
fn as_tabbar(&mut self) -> Option<&mut dyn TheTabbarTrait>
Attempts to cast to TheTabbarTrait. Only valid for TheTabbar.
Source§fn as_text_area_edit(&mut self) -> Option<&mut dyn TheTextAreaEditTrait>
fn as_text_area_edit(&mut self) -> Option<&mut dyn TheTextAreaEditTrait>
Attempts to cast to TheTextAreaEditTrait. Only valid for TheTextAreaEdit.
Source§fn as_text_line_edit(&mut self) -> Option<&mut dyn TheTextLineEditTrait>
fn as_text_line_edit(&mut self) -> Option<&mut dyn TheTextLineEditTrait>
Attempts to cast to TheTextLineEditTrait. Only valid for TheTextLineEdit.
Source§fn as_text_view(&mut self) -> Option<&mut dyn TheTextViewTrait>
fn as_text_view(&mut self) -> Option<&mut dyn TheTextViewTrait>
Attempts to cast to TheTextViewTrait. Only valid for TheTextView.
Source§fn as_markdown_view(&mut self) -> Option<&mut dyn TheMarkdownViewTrait>
fn as_markdown_view(&mut self) -> Option<&mut dyn TheMarkdownViewTrait>
Attempts to cast to TheMarkdownViewTrait. Only valid for TheMarkdownView.
Source§fn as_icon_view(&mut self) -> Option<&mut dyn TheIconViewTrait>
fn as_icon_view(&mut self) -> Option<&mut dyn TheIconViewTrait>
Attempts to cast to TheIconViewTrait. Only valid for TheIconView.
Attempts to cast to TheGroupButtonTrait. Only valid for TheGroupButton.
Source§fn as_statusbar(&mut self) -> Option<&mut dyn TheStatusbarTrait>
fn as_statusbar(&mut self) -> Option<&mut dyn TheStatusbarTrait>
Attempts to cast to TheStatusbarTrait. Only valid for TheStatusbar.
Attempts to cast to TheMenubarButtonTrait. Only valid for TheMenubarButton.
Source§fn as_time_slider(&mut self) -> Option<&mut dyn TheTimeSliderTrait>
fn as_time_slider(&mut self) -> Option<&mut dyn TheTimeSliderTrait>
Attempts to cast to TheTimeSlider. Only valid for TheTimeSliderTrait.
Source§fn as_palette_picker(&mut self) -> Option<&mut dyn ThePalettePickerTrait>
fn as_palette_picker(&mut self) -> Option<&mut dyn ThePalettePickerTrait>
Attempts to cast to ThePalettePickerTrait. Only valid for ThePalettePicker.
Attempts to cast to TheMenuTrait. Only valid for TheMenu.
Source§fn as_tree_icons(&mut self) -> Option<&mut dyn TheTreeIconsTrait>
fn as_tree_icons(&mut self) -> Option<&mut dyn TheTreeIconsTrait>
Attempts to cast to TheTreeIconsTrait. Only valid for TheTreeIcons.
Source§fn as_tree_text(&mut self) -> Option<&mut dyn TheTreeTextTrait>
fn as_tree_text(&mut self) -> Option<&mut dyn TheTreeTextTrait>
Attempts to cast to TheTreeTextTrait. Only valid for TheTreeText.
Auto Trait Implementations§
impl Freeze for TheSectionbar
impl RefUnwindSafe for TheSectionbar
impl Send for TheSectionbar
impl Sync for TheSectionbar
impl Unpin for TheSectionbar
impl UnsafeUnpin for TheSectionbar
impl UnwindSafe for TheSectionbar
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
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>
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)
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)
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> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.