[−][src]Struct rubrail::Touchbar
Trait Implementations
impl TTouchbar for DummyTouchbar
[src]
type T = DummyTouchbar
A concrete implementation of TTouchbar
pub fn alloc(_title: &str) -> DummyTouchbar
[src]
pub fn set_icon(&self, image: &str)
[src]
pub fn create_bar(&mut self) -> BarId
[src]
pub fn add_items_to_bar(&mut self, bar_id: &BarId, items: Vec<ItemId>)
[src]
pub fn set_bar_as_root(&mut self, bar_id: BarId)
[src]
pub fn create_popover_item(
&mut self,
image: Option<&TouchbarImage>,
text: Option<&str>,
bar_id: &BarId
) -> ItemId
[src]
&mut self,
image: Option<&TouchbarImage>,
text: Option<&str>,
bar_id: &BarId
) -> ItemId
pub fn create_label(&mut self, text: &str) -> ItemId
[src]
pub fn update_label(&mut self, label_id: &ItemId, text: &str)
[src]
pub fn update_label_width(&mut self, label_id: &ItemId, width: u32)
[src]
pub fn create_text_scrubber(&mut self, data: Rc<dyn TScrubberData>) -> ItemId
[src]
pub fn select_scrubber_item(&mut self, scrub_id: &ItemId, index: u32)
[src]
pub fn refresh_scrubber(&mut self, scrub_id: &ItemId)
[src]
pub fn add_item_tap_gesture(
&mut self,
item_id: &ItemId,
taps: u32,
fingers: u32,
cb: ButtonCb
)
[src]
&mut self,
item_id: &ItemId,
taps: u32,
fingers: u32,
cb: ButtonCb
)
pub fn add_item_swipe_gesture(&mut self, item: &ItemId, cb: SwipeCb)
[src]
pub fn create_spacer(&mut self, space: SpacerType) -> ItemId
[src]
pub fn create_image_from_path(&mut self, path: &str) -> TouchbarImage
[src]
pub fn create_image_from_template(
&mut self,
template: ImageTemplate
) -> TouchbarImage
[src]
&mut self,
template: ImageTemplate
) -> TouchbarImage
pub fn create_button(
&mut self,
image: Option<&TouchbarImage>,
text: Option<&str>,
cb: ButtonCb
) -> ItemId
[src]
&mut self,
image: Option<&TouchbarImage>,
text: Option<&str>,
cb: ButtonCb
) -> ItemId
pub fn update_button(
&mut self,
item: &ItemId,
image: Option<&TouchbarImage>,
text: Option<&str>
)
[src]
&mut self,
item: &ItemId,
image: Option<&TouchbarImage>,
text: Option<&str>
)
pub fn update_button_width(&mut self, button_id: &ItemId, width: u32)
[src]
pub fn create_slider(
&mut self,
min: f64,
max: f64,
label: Option<&str>,
continuous: bool,
cb: SliderCb
) -> ItemId
[src]
&mut self,
min: f64,
max: f64,
label: Option<&str>,
continuous: bool,
cb: SliderCb
) -> ItemId
pub fn update_slider(&mut self, id: &ItemId, value: f64)
[src]
Auto Trait Implementations
impl RefUnwindSafe for DummyTouchbar
impl Send for DummyTouchbar
impl Sync for DummyTouchbar
impl Unpin for DummyTouchbar
impl UnwindSafe for DummyTouchbar
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,