[][src]Struct rubrail::Touchbar

pub struct Touchbar {}

Trait Implementations

impl TTouchbar for DummyTouchbar[src]

type T = DummyTouchbar

A concrete implementation of TTouchbar

fn set_icon(&self, image: &str)[src]

Set an icon to display in the Control Strip Read more

fn create_bar(&mut self) -> BarId[src]

Create a new horizontal bar UI Read more

fn add_items_to_bar(&mut self, bar_id: &BarId, items: Vec<ItemId>)[src]

Adds a group of ordered items to a bar Read more

fn set_bar_as_root(&mut self, bar_id: BarId)[src]

Sets the given bar as the 'root' bar in the Control Strip Read more

fn create_popover_item(
    &mut self,
    image: Option<&TouchbarImage>,
    text: Option<&str>,
    bar_id: &BarId
) -> ItemId
[src]

Create a button to open a 'popover' submenu. Read more

fn create_label(&mut self, text: &str) -> ItemId[src]

Create a new label Read more

fn update_label(&mut self, label_id: &ItemId, text: &str)[src]

Changes the text in an existing label Read more

fn update_label_width(&mut self, label_id: &ItemId, width: u32)[src]

Changes the width of an existing label Read more

fn create_text_scrubber(&mut self, data: Rc<dyn TScrubberData>) -> ItemId[src]

Create a horizontally scrolling 'scrubber' of text Read more

fn select_scrubber_item(&mut self, scrub_id: &ItemId, index: u32)[src]

Selects the given index in a scrubber Read more

fn refresh_scrubber(&mut self, scrub_id: &ItemId)[src]

Inform a scrubber to redraw after a change to its backing data Read more

fn add_item_tap_gesture(
    &mut self,
    item_id: &ItemId,
    taps: u32,
    fingers: u32,
    cb: ButtonCb
)
[src]

Register a tap gesture handler with a Touch Bar item Read more

fn add_item_swipe_gesture(&mut self, item: &ItemId, cb: SwipeCb)[src]

Register a swipe gesture handler with a Touch Bar item Read more

fn create_spacer(&mut self, space: SpacerType) -> ItemId[src]

Create space between items in a bar Read more

fn create_image_from_path(&mut self, path: &str) -> TouchbarImage[src]

Create an image from a file path Read more

fn create_image_from_template(
    &mut self,
    template: ImageTemplate
) -> TouchbarImage
[src]

Create an image from a template Read more

fn create_button(
    &mut self,
    image: Option<&TouchbarImage>,
    text: Option<&str>,
    cb: ButtonCb
) -> ItemId
[src]

Create a button that triggers a callback when pressed Read more

fn update_button(
    &mut self,
    item: &ItemId,
    image: Option<&TouchbarImage>,
    text: Option<&str>
)
[src]

Changes the image and/or text of a button Read more

fn update_button_width(&mut self, button_id: &ItemId, width: u32)[src]

Changes the width of an existing button Read more

fn create_slider(
    &mut self,
    min: f64,
    max: f64,
    label: Option<&str>,
    continuous: bool,
    cb: SliderCb
) -> ItemId
[src]

Create a slider item Read more

fn update_slider(&mut self, id: &ItemId, value: f64)[src]

Update the current position of a slider Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]