Struct guion::widgets::textbox::TextBox[][src]

pub struct TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> where
    E: Env,
    Text: 'w,
    Scroll: 'w,
    Curs: 'w,
    CursorStickX: 'w,
    GlyphCache: 'w, 
{ pub size: ESize<E>, pub style: EStyle<E>, pub text: Text, pub scroll: Scroll, pub cursor: Curs, pub cursor_stick_x: CursorStickX, pub glyph_cache: GlyphCache, // some fields omitted }

Fields

size: ESize<E>style: EStyle<E>text: Textscroll: Scrollcursor: Curscursor_stick_x: CursorStickXglyph_cache: GlyphCache

Implementations

impl<'w, E> TextBox<'w, E, String, (u32, u32), Cursor, Option<u32>, LocalGlyphCache<E>> where
    E: Env
[src]

pub fn new(id: E::WidgetID) -> Self[src]

impl<'w, E, Text> TextBox<'w, E, Text, RemoteState<E, (u32, u32)>, RemoteState<E, Cursor>, RemoteState<E, Option<u32>>, RemoteState<E, LocalGlyphCache<E>>> where
    E: Env,
    E::Context: DynState<E>,
    Text: 'w, 
[src]

pub fn immediate(id: E::WidgetID, text: Text) -> Self[src]

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> where
    E: Env,
    Text: 'w,
    Scroll: 'w,
    Curs: 'w,
    CursorStickX: 'w,
    GlyphCache: 'w, 
[src]

pub fn with_text<T>(
    self,
    text: T
) -> TextBox<'w, E, T, Scroll, Curs, CursorStickX, GlyphCache> where
    T: 'w, 
[src]

pub fn with_states<PScroll, CCurs, XCursorStickX>(
    self,
    scroll: PScroll,
    cursor: CCurs,
    cursor_stick_x: XCursorStickX
) -> TextBox<'w, E, Text, PScroll, CCurs, XCursorStickX, GlyphCache> where
    PScroll: 'w,
    CCurs: 'w,
    XCursorStickX: 'w, 
[src]

pub fn with_size(self, s: ESize<E>) -> Self[src]

pub fn with_style(self, style: EStyle<E>) -> Self[src]

Trait Implementations

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> ITextBox<E> for TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> where
    E: Env,
    Text: 'w,
    Scroll: 'w,
    Curs: 'w,
    CursorStickX: 'w,
    GlyphCache: 'w, 
[src]

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> ITextBoxMut<E> for TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    E::Context: CtxStdState<E> + CtxClipboardAccess<E>,
    Text: CaptionMut<E> + ValidationMut<E> + 'w,
    Scroll: AtomStateMut<E, (u32, u32)>,
    Curs: AtomStateMut<E, Cursor>,
    CursorStickX: AtomStateMut<E, Option<u32>>,
    GlyphCache: AtomStateMut<E, LocalGlyphCache<E>> + Clone
[src]

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> Widget<E> for TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    E::Context: CtxStdState<E> + CtxClipboardAccess<E>,
    Text: Caption<E> + Validation<E> + 'w,
    Scroll: AtomState<E, (u32, u32)>,
    Curs: AtomState<E, Cursor>,
    CursorStickX: AtomState<E, Option<u32>>,
    GlyphCache: AtomState<E, LocalGlyphCache<E>> + Clone
[src]

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> WidgetMut<E> for TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    E::Context: CtxStdState<E> + CtxClipboardAccess<E>,
    Text: CaptionMut<E> + ValidationMut<E> + 'w,
    Scroll: AtomStateMut<E, (u32, u32)>,
    Curs: AtomStateMut<E, Cursor>,
    CursorStickX: AtomStateMut<E, Option<u32>>,
    GlyphCache: AtomStateMut<E, LocalGlyphCache<E>> + Clone
[src]

Auto Trait Implementations

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> RefUnwindSafe for TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> where
    Curs: RefUnwindSafe,
    CursorStickX: RefUnwindSafe,
    GlyphCache: RefUnwindSafe,
    Scroll: RefUnwindSafe,
    Text: RefUnwindSafe,
    <<E as Env>::Backend as Backend<E>>::Size: RefUnwindSafe,
    <<E as Env>::Backend as Backend<E>>::Style: RefUnwindSafe,
    <E as Env>::WidgetID: RefUnwindSafe

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> Send for TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> where
    Curs: Send,
    CursorStickX: Send,
    GlyphCache: Send,
    Scroll: Send,
    Text: Send,
    <<E as Env>::Backend as Backend<E>>::Size: Send,
    <<E as Env>::Backend as Backend<E>>::Style: Send,
    <E as Env>::WidgetID: Send

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> Sync for TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> where
    Curs: Sync,
    CursorStickX: Sync,
    GlyphCache: Sync,
    Scroll: Sync,
    Text: Sync,
    <<E as Env>::Backend as Backend<E>>::Size: Sync,
    <<E as Env>::Backend as Backend<E>>::Style: Sync,
    <E as Env>::WidgetID: Sync

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> Unpin for TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> where
    Curs: Unpin,
    CursorStickX: Unpin,
    GlyphCache: Unpin,
    Scroll: Unpin,
    Text: Unpin,
    <<E as Env>::Backend as Backend<E>>::Size: Unpin,
    <<E as Env>::Backend as Backend<E>>::Style: Unpin,
    <E as Env>::WidgetID: Unpin

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> !UnwindSafe for TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache>

Blanket Implementations

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

impl<E, T> AsWidget<E> for T where
    E: Env,
    T: Widget<E>, 
[src]

impl<E, T> AsWidgetMut<E> for T where
    E: Env,
    T: WidgetMut<E>, 
[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> FromInto<U> for T where
    T: From<U> + Into<U>, 
[src]

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

impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
    T: StyleSelectorAppend<S, E>,
    S: StyleSelectag<E>, 
[src]

impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
    T: StyleSelectorAppend<S, E>,
    S: StyleSelectag<E>, 
[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.