Struct titik::Link [−][src]
A one line text input
Implementations
impl Link
[src]
pub fn new<S>(uri: S, label: S) -> Self where
S: ToString,
[src]
S: ToString,
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 layout(&self) -> Option<&Layout>
[src]
fn set_layout(&mut self, layout: Layout)
[src]
fn style(&self) -> Style
[src]
fn draw(&self, buf: &mut Buffer) -> Vec<Cmd>
[src]
draw this button to the buffer, with the given computed layout
fn as_any(&self) -> &dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn set_size(&mut self, width: Option<f32>, height: Option<f32>)
[src]
fn process_event(&mut self, _event: Event) -> Vec<MSG>
[src]
fn set_id(&mut self, id: &str)
[src]
fn get_id(&self) -> &Option<String>
[src]
fn get_offset(&self) -> (f32, f32)
[src]
fn add_child(&mut self, _child: Box<dyn Widget<MSG>>) -> bool
[src]
fn children(&self) -> Option<&[Box<dyn Widget<MSG>>]>
[src]
fn children_mut(&mut self) -> Option<&mut [Box<dyn Widget<MSG>>]>
[src]
fn child_mut(&mut self, _index: usize) -> Option<&mut Box<dyn Widget<MSG>>>
[src]
fn style_node(&self, stretch: &mut Stretch) -> Option<Node>
[src]
fn set_focused(&mut self, _focused: bool)
[src]
fn as_mut(&mut self) -> Option<&mut Self> where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
fn take_child(&mut self, _index: usize) -> Option<Box<dyn Widget<MSG>>>
[src]
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]
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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,