Struct tuix_internal::ScrollContainer [−][src]
pub struct ScrollContainer {
pub scroll: Scroll,
// some fields omitted
}
Fields
scroll: Scroll
Implementations
Create a new ScrollContainer widget
pub fn on_scroll<F>(self, callback: F) -> ScrollContainer where
F: 'static + Fn(&mut ScrollContainer, &mut State, Entity),
Trait Implementations
pub fn on_update(
&mut self,
state: &mut State,
entity: Entity,
data: &<ScrollContainer as Widget>::Data
)
Adds the widget into state and returns the associated type Ret - an entity id or a tuple of entity ids