pub struct ScrollContainerH {
pub scroll: Scroll,
/* private fields */
}Fields§
§scroll: ScrollImplementations§
Source§impl ScrollContainerH
impl ScrollContainerH
pub fn new() -> ScrollContainerH
pub fn disable_scrollbar(self) -> ScrollContainerH
pub fn disable_scroll_wheel(self) -> ScrollContainerH
pub fn on_scroll<F>(self, callback: F) -> ScrollContainerH
Trait Implementations§
Source§impl Widget for ScrollContainerH
impl Widget for ScrollContainerH
type Ret = Entity
type Data = Scroll
fn on_build( &mut self, state: &mut State, entity: Entity, ) -> <ScrollContainerH as Widget>::Ret
fn on_update( &mut self, state: &mut State, _entity: Entity, data: &<ScrollContainerH as Widget>::Data, )
fn on_event(&mut self, state: &mut State, entity: Entity, event: &mut Event)
fn widget_name(&self) -> String
Source§fn build<F>(
self,
state: &mut State,
parent: impl AsEntity,
builder: F,
) -> Self::Ret
fn build<F>( self, state: &mut State, parent: impl AsEntity, builder: F, ) -> Self::Ret
Adds the widget into state and returns the associated type Ret - an entity id or a tuple of entity ids
fn bind<L, F>(self, lens: L, converter: F) -> Wrapper<L, Self>
fn bind2<L>(self, lens: L) -> LensWrap<L, Self>where
L: Lens,
fn on_style( &mut self, state: &mut State, entity: Entity, property: (String, PropType), )
fn on_draw( &mut self, state: &mut State, entity: Entity, canvas: &mut Canvas<OpenGl>, )
Auto Trait Implementations§
impl Freeze for ScrollContainerH
impl !RefUnwindSafe for ScrollContainerH
impl !Send for ScrollContainerH
impl !Sync for ScrollContainerH
impl Unpin for ScrollContainerH
impl UnsafeUnpin for ScrollContainerH
impl !UnwindSafe for ScrollContainerH
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more