Struct titik::Link[][src]

pub struct Link { /* fields omitted */ }

A one line text input

Implementations

impl Link[src]

pub fn new<S>(uri: S, label: S) -> Self where
    S: ToString
[src]

creates a new text input with initial label

pub fn set_label<S: ToString>(&mut self, label: S)[src]

set the label of this link

pub fn set_border(&mut self, has_border: bool)[src]

set if there is an border in of this link

pub fn set_uri<S: ToString>(&mut self, uri: S)[src]

set the uri of the link

pub fn get_label(&self) -> &str[src]

returns a reference to the text label of this text input widget

pub fn set_rounded(&mut self, rounded: bool)[src]

set whether to use rounded corner when drawing the border of the text input

Trait Implementations

impl Debug for Link[src]

impl Default for Link[src]

impl<MSG> Widget<MSG> for Link[src]

fn draw(&self, buf: &mut Buffer) -> Vec<Cmd>[src]

draw this button to the buffer, with the given computed layout

Auto Trait Implementations

impl RefUnwindSafe for Link

impl Send for Link

impl Sync for Link

impl Unpin for Link

impl UnwindSafe for Link

Blanket Implementations

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

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

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

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.