Trait guion::widget::WidgetMut[][src]

pub trait WidgetMut<E>: Widget<E> + WBaseMut<E> where
    E: Env + 'static, 
{ fn child_mut<'s>(&'s mut self, i: usize) -> Result<ResolvableMut<'s, E>, ()>;
fn into_child_mut<'w>(
        self: Box<Self>,
        i: usize
    ) -> Result<ResolvableMut<'w, E>, ()>
    where
        Self: 'w
;
fn childs_mut<'s>(&'s mut self) -> Vec<ResolvableMut<'s, E>>;
fn into_childs_mut<'w>(self: Box<Self>) -> Vec<ResolvableMut<'w, E>>
    where
        Self: 'w
; fn message(&mut self, m: E::Message) { ... }
fn _set_invalid(&mut self, v: bool) { ... }
fn resolve_mut<'s>(
        &'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
, { ... }
fn resolve_child_mut(
        &mut self,
        sub_path: &E::WidgetPath
    ) -> Result<(usize, E::WidgetPath), GuionError<E>> { ... }
fn inner_mut(&mut self) -> Option<&mut dyn WidgetMut<E>> { ... }
fn pass(self) -> Self
    where
        Self: Sized
, { ... }
fn debug_type_name_mut(&mut self, dest: &mut Vec<&'static str>) { ... }
fn debugged_type_name_mut(&mut self) -> Vec<&'static str> { ... }
fn box_mut<'s>(&'s mut self) -> WidgetRefMut<'s, E> { ... }
fn box_box_mut<'w>(self: Box<Self>) -> WidgetRefMut<'w, E>
    where
        Self: 'w
, { ... }
fn boxed_mut<'w>(self) -> WidgetRefMut<'w, E>
    where
        Self: Sized + 'w
, { ... }
fn gen_diag_error_resolve_fail_mut(
        &mut self,
        sub_path: &E::WidgetPath,
        op: &'static str
    ) -> GuionError<E> { ... } }

Mutable Widget

Required methods

fn child_mut<'s>(&'s mut self, i: usize) -> Result<ResolvableMut<'s, E>, ()>[src]

CHILDS

fn into_child_mut<'w>(
    self: Box<Self>,
    i: usize
) -> Result<ResolvableMut<'w, E>, ()> where
    Self: 'w, 
[src]

CHILDS

fn childs_mut<'s>(&'s mut self) -> Vec<ResolvableMut<'s, E>>[src]

👎 Deprecated

CHILDS

fn into_childs_mut<'w>(self: Box<Self>) -> Vec<ResolvableMut<'w, E>> where
    Self: 'w, 
[src]

CHILDS

Loading content...

Provided methods

fn message(&mut self, m: E::Message)[src]

EVENT
An alternative way to pass mutations. See [Widgets::message] and [link::enqueue_message]

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]

RESOLVING
Resolve a deep child item by the given relative path

An empty path will resolve to this widget

USER generally not used directly, but through Widgets::widget

fn into_resolve_mut<'w>(
    self: Box<Self>,
    i: E::WidgetPath
) -> Result<ResolvableMut<'w, E>, GuionError<E>> where
    Self: 'w, 
[src]

RESOLVING
Resolve a deep child item by the given relative path

An empty path will resolve to this widget

USER generally not used directly, but through Widgets::widget

fn resolve_child_mut(
    &mut self,
    sub_path: &E::WidgetPath
) -> Result<(usize, E::WidgetPath), GuionError<E>>
[src]

RESOLVING
To (or through) which child path would the given sub_path resolve?

Returns the child index and the subpath inside the child widget to resolve further

USER generally not used directly, but through Widgets::widget

fn inner_mut(&mut self) -> Option<&mut dyn WidgetMut<E>>[src]

fn pass(self) -> Self where
    Self: Sized
[src]

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]

BOXING
Box mut reference of this widget

fn box_box_mut<'w>(self: Box<Self>) -> WidgetRefMut<'w, E> where
    Self: 'w, 
[src]

BOXING
Move widget into box

fn boxed_mut<'w>(self) -> WidgetRefMut<'w, E> where
    Self: Sized + 'w, 
[src]

BOXING
Move widget into box

fn gen_diag_error_resolve_fail_mut(
    &mut self,
    sub_path: &E::WidgetPath,
    op: &'static str
) -> GuionError<E>
[src]

Loading content...

Implementations

impl<E> dyn WidgetMut<E> + '_ where
    E: Env
[src]

pub fn traitcast_ref<'s, T>(&'s self) -> Result<&'s T, GuionError<E>> where
    Self: Traitcast<T, E>,
    T: ?Sized
[src]

pub fn try_traitcast_ref<'s, T>(&'s self) -> Result<&'s T, ()> where
    Self: Traitcast<T, E>,
    T: ?Sized
[src]

pub fn traitcast_mut<'s, T>(&'s mut self) -> Result<&'s mut T, GuionError<E>> where
    Self: TraitcastMut<T, E>,
    T: ?Sized
[src]

pub fn try_traitcast_mut<'s, T>(&'s mut self) -> Result<&'s mut T, ()> where
    Self: TraitcastMut<T, E>,
    T: ?Sized
[src]

Trait Implementations

impl<'w, T, E> TraitcastMut<dyn AtomState<E, T> + 'w, E> for dyn WidgetMut<E> + 'w where
    E: Env,
    T: 'static, 
[src]

type DestTypeID = dyn AtomState<E, T>

impl<'w, T, E> TraitcastMut<dyn AtomStateMut<E, T> + 'w, E> for dyn WidgetMut<E> + 'w where
    E: Env,
    T: 'static, 
[src]

type DestTypeID = dyn AtomStateMut<E, T>

impl<'w, E> TraitcastMut<dyn Caption<E> + 'w, E> for dyn WidgetMut<E> + 'w where
    E: Env
[src]

type DestTypeID = dyn Caption<E> + 'static

impl<'w, E> TraitcastMut<dyn CaptionMut<E> + 'w, E> for dyn WidgetMut<E> + 'w where
    E: Env
[src]

type DestTypeID = dyn CaptionMut<E> + 'static

impl<'w, E> TraitcastMut<dyn ICheckBox<E> + 'w, E> for dyn WidgetMut<E> + 'w where
    E: Env
[src]

type DestTypeID = dyn ICheckBox<E> + 'static

impl<'w, E> TraitcastMut<dyn ICheckBoxMut<E> + 'w, E> for dyn WidgetMut<E> + 'w where
    E: Env
[src]

type DestTypeID = dyn ICheckBoxMut<E> + 'static

impl<'w, E> TraitcastMut<dyn ITextBox<E> + 'w, E> for dyn WidgetMut<E> + 'w where
    E: Env
[src]

type DestTypeID = dyn ITextBox<E> + 'static

impl<'w, E> TraitcastMut<dyn ITextBoxMut<E> + 'w, E> for dyn WidgetMut<E> + 'w where
    E: Env
[src]

type DestTypeID = dyn ITextBoxMut<E> + 'static

impl<'w, E> TraitcastMut<dyn Validation<E> + 'w, E> for dyn WidgetMut<E> + 'w where
    E: Env
[src]

type DestTypeID = dyn Validation<E> + 'static

impl<'w, E> TraitcastMut<dyn ValidationMut<E> + 'w, E> for dyn WidgetMut<E> + 'w where
    E: Env
[src]

type DestTypeID = dyn ValidationMut<E> + 'static

impl<E> Widget<E> for &(dyn WidgetMut<E> + '_) where
    E: Env
[src]

impl<E> Widget<E> for &mut (dyn WidgetMut<E> + '_) where
    E: Env
[src]

impl<E> WidgetMut<E> for &mut (dyn WidgetMut<E> + '_) where
    E: Env
[src]

Implementations on Foreign Types

impl<E> WidgetMut<E> for Box<dyn WidgetMut<E> + '_> where
    E: Env
[src]

Loading content...

Implementors

impl<'w, E> WidgetMut<E> for ProgressBar<'w, E> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>, 
[src]

impl<'w, E, L, R, V> WidgetMut<E> for SplitPane<'w, E, L, R, V> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    E::Context: CtxStdState<E>,
    L: AsWidgetMut<E>,
    R: AsWidgetMut<E>,
    V: AtomStateMut<E, f32>, 
[src]

impl<'w, E, State, Text> WidgetMut<E> for CheckBox<'w, E, State, Text> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    E::Context: CtxStdState<E>,
    State: AtomStateMut<E, bool>,
    Text: AsWidgetMut<E>, 
[src]

impl<'w, E, T> WidgetMut<E> for Pane<'w, E, T> where
    E: Env,
    T: WidgetArrayMut<E> + 'w, 
[src]

impl<'w, E, Text> WidgetMut<E> for Button<'w, E, Text> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    E::Context: CtxStdState<E>,
    Text: AsWidgetMut<E>, 
[src]

impl<'w, E, Text, GlyphCache> WidgetMut<E> for Label<'w, E, Text, GlyphCache> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    Text: CaptionMut<E> + ValidationMut<E> + 'w,
    GlyphCache: AtomStateMut<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]

impl<'w, E, W, Scroll> WidgetMut<E> for Area<'w, E, W, Scroll> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    E::Context: CtxStdState<E> + CtxClipboardAccess<E>,
    W: AsWidgetMut<E> + 'w,
    Scroll: AtomStateMut<E, (u32, u32)>, 
[src]

impl<E> WidgetMut<E> for &mut (dyn WidgetMut<E> + '_) where
    E: Env
[src]

Loading content...