Type Alias kas_widgets::StringText
source · pub type StringText<A> = Text<A, String>;
Expand description
Text with String
as backing type
Aliased Type§
struct StringText<A> { /* private fields */ }
Trait Implementations§
source§impl<A> Layout for StringText<A>
impl<A> Layout for StringText<A>
source§fn widget_name(&self) -> &'static str
fn widget_name(&self) -> &'static str
Get the name of the widget struct Read more
source§fn num_children(&self) -> usize
fn num_children(&self) -> usize
Get the number of child widgets Read more
source§fn get_child(&self, index: usize) -> Option<&dyn Layout>
fn get_child(&self, index: usize) -> Option<&dyn Layout>
Access a child as a
dyn Layout
Read moresource§fn find_child_index(&self, id: &Id) -> Option<usize>
fn find_child_index(&self, id: &Id) -> Option<usize>
Find the child which is an ancestor of this
id
, if any Read moresource§fn size_rules(&mut self, sizer: SizeCx<'_>, axis: AxisInfo) -> SizeRules
fn size_rules(&mut self, sizer: SizeCx<'_>, axis: AxisInfo) -> SizeRules
Get size rules for the given axis Read more
Navigation in spatial order Read more
source§fn translation(&self) -> Offset
fn translation(&self) -> Offset
Get translation of children relative to this widget Read more