Skip to main content

TheTimeSlider

Struct TheTimeSlider 

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

Trait Implementations§

Source§

impl TheTimeSliderTrait for TheTimeSlider

Source§

fn set_continuous(&mut self, continuous: bool)

Source§

fn clear_marker(&mut self)

Source§

fn add_marker(&mut self, time: TheTime, names: Vec<String>)

Source§

fn remove_marker(&mut self, marker: TheTime)

Source§

impl TheWidget for TheTimeSlider

Source§

fn new(id: TheId) -> TheTimeSlider

Source§

fn id(&self) -> &TheId

Source§

fn status_text(&self) -> Option<String>

Retrieves the status text for the widget.
Source§

fn set_status_text(&mut self, text: &str)

Sets the status text for the widget.
Source§

fn dim(&self) -> &TheDim

Returns a reference to the dimensions of the widget.
Source§

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)

Set the dimensions of the widget
Source§

fn limiter(&self) -> &TheSizeLimiter

Returns a reference to the size limiter of the widget.
Source§

fn limiter_mut(&mut self) -> &mut TheSizeLimiter

Returns a mutable reference to the limiter of the widget.
Source§

fn needs_redraw(&mut self) -> bool

If this function returns true it indicates that the widget needs a redraw.
Source§

fn set_needs_redraw(&mut self, redraw: bool)

Sets the internal redraw flag of the widget to the given value.
Source§

fn state(&self) -> TheWidgetState

Returns the current state of the widget.
Source§

fn set_state(&mut self, state: TheWidgetState)

Set the widget state.
Source§

fn supports_hover(&mut self) -> bool

Widgets who support hover return true
Source§

fn value(&self) -> TheValue

Get the widget value.
Source§

fn set_value(&mut self, value: TheValue)

Set the widget value.
Source§

fn on_event(&mut self, event: &TheEvent, ctx: &mut TheContext) -> bool

Process an user driven device event, returns true if we need to redraw.
Source§

fn draw( &mut self, buffer: &mut TheRGBABuffer, style: &mut Box<dyn TheStyle>, ctx: &mut TheContext, )

Draw the widget in the given style
Source§

fn as_time_slider(&mut self) -> Option<&mut dyn TheTimeSliderTrait>

Attempts to cast to TheTimeSlider. Only valid for TheTimeSliderTrait.
Source§

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

Cast to any
Source§

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 is_open(&self) -> bool

Returns the current open state of the widget.
Source§

fn set_embedded(&mut self, embedded: bool)

Set the embedded state.
Source§

fn set_parent_id(&mut self, parent_id: TheId)

Set the parent id for embedded widgets.
Source§

fn parent_id(&self) -> Option<&TheId>

Get the parent id for embedded widgets.
Source§

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>

Get the cursor icon for this widget when hovered.
Source§

fn set_cursor_icon(&mut self, _icon: Option<TheCursorIcon>)

Set the cursor icon for this widget.
Source§

fn draw_overlay( &mut self, style: &mut Box<dyn TheStyle>, ctx: &mut TheContext, ) -> TheRGBABuffer

Draw the widget in the given style
Source§

fn supports_text_input(&self) -> bool

Widgets who support text input return true
Source§

fn supports_clipboard(&mut self) -> bool

Widgets who support clipboard operations return true
Source§

fn supports_undo_redo(&mut self) -> bool

Widgets who support internal undo / redo
Source§

fn disabled(&self) -> bool

Returns true if the widget is disabled
Source§

fn set_disabled(&mut self, disabled: bool)

Set the disabled state of the widget
Source§

fn set_context_menu(&mut self, menu: Option<TheContextMenu>)

Sets the context menu for the widget.
Source§

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>

Attempts to cast to TheTreeItemTrait. Only valid for TheListItem.
Source§

fn as_rowlist_item(&mut self) -> Option<&mut dyn TheRowListItemTrait>

Attempts to cast to TheRowListItemTrait. Only valid for TheRowListItem.
Source§

fn as_drop_down_menu(&mut self) -> Option<&mut dyn TheDropdownMenuTrait>

Attempts to cast to TheDropdownMenuTrait. Only valid for TheDropdownMenu.
Source§

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>

Attempts to cast to TheVerticalScrollbarTrait. Only valid for TheVerticalScrollbar.
Source§

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>

Attempts to cast to TheRenderViewTrait. Only valid for TheRenderView.
Source§

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>

Attempts to cast to TheTextTrait. Only valid for TheText.
Source§

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>

Attempts to cast to TheTextAreaEditTrait. Only valid for TheTextAreaEdit.
Source§

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>

Attempts to cast to TheTextViewTrait. Only valid for TheTextView.
Source§

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>

Attempts to cast to TheIconViewTrait. Only valid for TheIconView.
Source§

fn as_group_button(&mut self) -> Option<&mut dyn TheGroupButtonTrait>

Attempts to cast to TheGroupButtonTrait. Only valid for TheGroupButton.
Source§

fn as_statusbar(&mut self) -> Option<&mut dyn TheStatusbarTrait>

Attempts to cast to TheStatusbarTrait. Only valid for TheStatusbar.
Source§

fn as_menubar_button(&mut self) -> Option<&mut dyn TheMenubarButtonTrait>

Attempts to cast to TheMenubarButtonTrait. Only valid for TheMenubarButton.
Source§

fn as_palette_picker(&mut self) -> Option<&mut dyn ThePalettePickerTrait>

Attempts to cast to ThePalettePickerTrait. Only valid for ThePalettePicker.
Source§

fn as_menu(&mut self) -> Option<&mut dyn TheMenuTrait>

Attempts to cast to TheMenuTrait. Only valid for TheMenu.
Source§

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>

Attempts to cast to TheTreeTextTrait. Only valid for TheTreeText.

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> 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> Downcast<T> for T

Source§

fn downcast(&self) -> &T

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> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<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, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

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<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,