[][src]Struct penrose::draw::widget::base::InputBox

pub struct InputBox { /* fields omitted */ }

A simple text box that can be driven by user keyboard input

Implementations

impl InputBox[src]

pub fn new(style: &TextStyle, is_greedy: bool, right_justified: bool) -> Self[src]

Create a new TextBox widget

pub fn get_text(&self) -> &String[src]

Borrow the current contents of the widget.

pub fn get_text_mut(&mut self) -> &mut String[src]

Mutably borrow the current contents of the widget.

pub fn set_text(&mut self, txt: impl Into<String>)[src]

Set the rendered text and trigger a redraw

Trait Implementations

impl Clone for InputBox[src]

impl Debug for InputBox[src]

impl<X> Hook<X> for InputBox where
    X: XConn
[src]

impl KeyboardControlled for InputBox[src]

impl PartialEq<InputBox> for InputBox[src]

impl StructuralPartialEq for InputBox[src]

impl Widget for InputBox[src]

Auto Trait Implementations

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<X, T> HookableWidget<X> for T where
    T: Hook<X> + Widget,
    X: XConn
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.