Struct tuix::ScrollContainer [−]
pub struct ScrollContainer {
pub scroll: Scroll,
// some fields omitted
}
Fields
scroll: Scroll
Implementations
impl ScrollContainer
impl ScrollContainer
pub fn new() -> ScrollContainer
pub fn new() -> ScrollContainer
Create a new ScrollContainer widget
pub fn disable_scrollbar(self) -> ScrollContainer
pub fn on_scroll<F>(self, callback: F) -> ScrollContainer where
F: 'static + Fn(&mut ScrollContainer, &mut State, Entity),
Trait Implementations
impl Widget for ScrollContainer
impl Widget for ScrollContainer
pub fn on_update(
&mut self,
state: &mut State,
entity: Entity,
data: &<ScrollContainer as Widget>::Data
)
fn widget_name(&self) -> String
Adds the widget into state and returns the associated type Ret - an entity id or a tuple of entity ids
Auto Trait Implementations
impl !RefUnwindSafe for ScrollContainer
impl !Send for ScrollContainer
impl !Sync for ScrollContainer
impl Unpin for ScrollContainer
impl !UnwindSafe for ScrollContainer
Blanket Implementations
Mutably borrows from an owned value. Read more