Struct guion::widgets::textbox::TextBox [−][src]
Fields
size: ESize<E>
style: EStyle<E>
text: Text
scroll: Scroll
cursor: Curs
cursor_stick_x: CursorStickX
glyph_cache: GlyphCache
Implementations
impl<'w, E> TextBox<'w, E, String, (u32, u32), Cursor, Option<u32>, LocalGlyphCache<E>> where
E: Env,
[src]
E: Env,
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]
E: Env,
E::Context: DynState<E>,
Text: 'w,
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]
E: Env,
Text: 'w,
Scroll: 'w,
Curs: 'w,
CursorStickX: 'w,
GlyphCache: 'w,
pub fn with_text<T>(
self,
text: T
) -> TextBox<'w, E, T, Scroll, Curs, CursorStickX, GlyphCache> where
T: 'w,
[src]
self,
text: T
) -> TextBox<'w, E, T, Scroll, Curs, CursorStickX, GlyphCache> where
T: 'w,
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]
self,
scroll: PScroll,
cursor: CCurs,
cursor_stick_x: XCursorStickX
) -> TextBox<'w, E, Text, PScroll, CCurs, XCursorStickX, GlyphCache> where
PScroll: 'w,
CCurs: 'w,
XCursorStickX: 'w,
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]
E: Env,
Text: 'w,
Scroll: 'w,
Curs: 'w,
CursorStickX: 'w,
GlyphCache: 'w,
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]
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,
fn insert_text(&mut self, s: &str, ctx: &mut E::Context)
[src]
fn remove_selection_or_n(&mut self, n: u32, ctx: &mut E::Context)
[src]
fn remove_selection(&mut self, ctx: &mut E::Context) -> bool
[src]
fn move_cursor_x(&mut self, o: i32, skip_unselect: bool, ctx: &mut E::Context)
[src]
fn move_cursor_y(
&mut self,
o: i32,
skip_unselect: bool,
ctx: &mut E::Context,
b: &Bounds
)
[src]
&mut self,
o: i32,
skip_unselect: bool,
ctx: &mut E::Context,
b: &Bounds
)
fn _m(
&mut self,
mouse_down: Option<MouseDown<E>>,
mouse_pressed: bool,
mouse: Offset,
b: Bounds,
ctx: &mut E::Context
)
[src]
&mut self,
mouse_down: Option<MouseDown<E>>,
mouse_pressed: bool,
mouse: Offset,
b: Bounds,
ctx: &mut E::Context
)
fn scroll_to_cursor(&mut self, ctx: &mut E::Context, b: &Bounds)
[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]
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,
fn child_paths(&self, _: E::WidgetPath) -> Vec<E::WidgetPath>
[src]
fn id(&self) -> E::WidgetID
[src]
fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)
[src]
fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
[src]
fn _size(&self, _: Link<'_, E>, e: &EStyle<E>) -> ESize<E>
[src]
fn childs(&self) -> usize
[src]
fn childs_ref(&self) -> Vec<Resolvable<'_, E>>
[src]
fn into_childs<'a>(self: Box<Self>) -> Vec<Resolvable<'a, E>> where
Self: 'a,
[src]
Self: 'a,
fn child_bounds(
&self,
_: Link<'_, E>,
_: &Bounds,
e: &EStyle<E>,
_: bool
) -> Result<Vec<Bounds>, ()>
[src]
&self,
_: Link<'_, E>,
_: &Bounds,
e: &EStyle<E>,
_: bool
) -> Result<Vec<Bounds>, ()>
fn focusable(&self) -> bool
[src]
fn child(&self, _: usize) -> Result<Resolvable<'_, E>, ()>
[src]
fn into_child<'a>(self: Box<Self>, _: usize) -> Result<Resolvable<'a, E>, ()> where
Self: 'a,
[src]
Self: 'a,
unsafe fn _as_trait_ref<'impl_traitcast_lt_a>(
&'impl_traitcast_lt_a self,
t: TypeId
) -> Option<TraitObject>
[src]
&'impl_traitcast_lt_a self,
t: TypeId
) -> Option<TraitObject>
fn resolve<'s>(
&'s self,
i: E::WidgetPath
) -> Result<Resolvable<'s, E>, GuionError<E>>
[src]
&'s self,
i: E::WidgetPath
) -> Result<Resolvable<'s, E>, GuionError<E>>
fn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath
) -> Result<Resolvable<'w, E>, GuionError<E>> where
Self: 'w,
[src]
self: Box<Self>,
i: E::WidgetPath
) -> Result<Resolvable<'w, E>, GuionError<E>> where
Self: 'w,
fn resolve_child(
&self,
sub_path: &E::WidgetPath
) -> Result<(usize, E::WidgetPath), GuionError<E>>
[src]
&self,
sub_path: &E::WidgetPath
) -> Result<(usize, E::WidgetPath), GuionError<E>>
fn trace_bounds(
&self,
l: Link<'_, E>,
i: E::WidgetPath,
b: &Bounds,
e: &EStyle<E>,
force: bool
) -> Result<Bounds, GuionError<E>>
[src]
&self,
l: Link<'_, E>,
i: E::WidgetPath,
b: &Bounds,
e: &EStyle<E>,
force: bool
) -> Result<Bounds, GuionError<E>>
fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath
[src]
fn resolved_by_path(
&self,
sub_path: &E::WidgetPath
) -> Option<ResolvesThruResult<E>>
[src]
&self,
sub_path: &E::WidgetPath
) -> Option<ResolvesThruResult<E>>
fn _focus_on_mouse_down(&self) -> bool
[src]
fn _tabulate_by_tab(&self) -> bool
[src]
fn _tabulate_next_child(
&self,
_l: Link<'_, E>,
origin: TabulateNextChildOrigin,
dir: TabulateDirection
) -> TabulateNextChildResponse
[src]
&self,
_l: Link<'_, E>,
origin: TabulateNextChildOrigin,
dir: TabulateDirection
) -> TabulateNextChildResponse
fn _tabulate(
&self,
l: Link<'_, E>,
op: TabulateOrigin<E>,
dir: TabulateDirection
) -> Result<TabulateResponse<E>, GuionError<E>>
[src]
&self,
l: Link<'_, E>,
op: TabulateOrigin<E>,
dir: TabulateDirection
) -> Result<TabulateResponse<E>, GuionError<E>>
fn inner(&self) -> Option<&dyn Widget<E>>
[src]
fn innest(&self) -> Option<&dyn Widget<E>>
[src]
fn debug_type_name(&self, dest: &mut Vec<&'static str>)
[src]
fn debugged_type_name(&self) -> Vec<&'static str>
[src]
fn box_ref<'s>(&'s self) -> WidgetRef<'s, E>
[src]
fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E> where
Self: 'w,
[src]
Self: 'w,
fn boxed<'w>(self) -> WidgetRef<'w, E> where
Self: Sized + 'w,
[src]
Self: Sized + 'w,
fn gen_diag_error_resolve_fail(
&self,
sub_path: &E::WidgetPath,
op: &'static str
) -> GuionError<E>
[src]
&self,
sub_path: &E::WidgetPath,
op: &'static str
) -> GuionError<E>
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]
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,
fn childs_mut(&mut self) -> Vec<ResolvableMut<'_, E>>
[src]
fn into_childs_mut<'a>(self: Box<Self>) -> Vec<ResolvableMut<'a, E>> where
Self: 'a,
[src]
Self: 'a,
fn child_mut(&mut self, _: usize) -> Result<ResolvableMut<'_, E>, ()>
[src]
fn into_child_mut<'a>(
self: Box<Self>,
_: usize
) -> Result<ResolvableMut<'a, E>, ()> where
Self: 'a,
[src]
self: Box<Self>,
_: usize
) -> Result<ResolvableMut<'a, E>, ()> where
Self: 'a,
unsafe fn _as_trait_mut<'impl_traitcast_lt_a>(
&'impl_traitcast_lt_a mut self,
t: TypeId
) -> Option<TraitObject>
[src]
&'impl_traitcast_lt_a mut self,
t: TypeId
) -> Option<TraitObject>
fn message(&mut self, m: E::Message)
[src]
fn _set_invalid(&mut self, v: bool)
[src]
fn resolve_mut<'s>(
&'s mut self,
i: E::WidgetPath
) -> Result<ResolvableMut<'s, E>, GuionError<E>>
[src]
&'s mut self,
i: E::WidgetPath
) -> Result<ResolvableMut<'s, E>, GuionError<E>>
fn into_resolve_mut<'w>(
self: Box<Self>,
i: E::WidgetPath
) -> Result<ResolvableMut<'w, E>, GuionError<E>> where
Self: 'w,
[src]
self: Box<Self>,
i: E::WidgetPath
) -> Result<ResolvableMut<'w, E>, GuionError<E>> where
Self: 'w,
fn resolve_child_mut(
&mut self,
sub_path: &E::WidgetPath
) -> Result<(usize, E::WidgetPath), GuionError<E>>
[src]
&mut self,
sub_path: &E::WidgetPath
) -> Result<(usize, E::WidgetPath), GuionError<E>>
fn inner_mut(&mut self) -> Option<&mut dyn WidgetMut<E>>
[src]
fn pass(self) -> Self where
Self: Sized,
[src]
Self: Sized,
fn debug_type_name_mut(&mut self, dest: &mut Vec<&'static str>)
[src]
fn debugged_type_name_mut(&mut self) -> Vec<&'static str>
[src]
fn box_mut<'s>(&'s mut self) -> WidgetRefMut<'s, E>
[src]
fn box_box_mut<'w>(self: Box<Self>) -> WidgetRefMut<'w, E> where
Self: 'w,
[src]
Self: 'w,
fn boxed_mut<'w>(self) -> WidgetRefMut<'w, E> where
Self: Sized + 'w,
[src]
Self: Sized + 'w,
fn gen_diag_error_resolve_fail_mut(
&mut self,
sub_path: &E::WidgetPath,
op: &'static str
) -> GuionError<E>
[src]
&mut self,
sub_path: &E::WidgetPath,
op: &'static str
) -> GuionError<E>
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,
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,
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,
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,
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]
T: 'static + ?Sized,
impl<E, T> AsWidget<E> for T where
E: Env,
T: Widget<E>,
[src]
E: Env,
T: Widget<E>,
pub fn as_ref(&Self) -> Resolvable<'_, E>
[src]
pub fn into_ref<'w>(Self) -> Resolvable<'w, E> where
T: 'w,
[src]
T: 'w,
impl<E, T> AsWidgetMut<E> for T where
E: Env,
T: WidgetMut<E>,
[src]
E: Env,
T: WidgetMut<E>,
pub fn as_mut(&mut Self) -> ResolvableMut<'_, E>
[src]
pub fn into_mut<'w>(Self) -> ResolvableMut<'w, E> where
T: 'w,
[src]
T: 'w,
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> FromInto<U> for T where
T: From<U> + Into<U>,
[src]
T: From<U> + Into<U>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &S)
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &[S])
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
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>,