[]Struct orbtk::ScrollViewer

pub struct ScrollViewer { /* fields omitted */ }

The ScrollViewer defines a layout that is used to stack its children on the z-axis.

CSS element: scroll-viewer

Methods

impl ScrollViewer

pub fn attach<P>(self, property: AttachedProperty<P>) -> ScrollViewer where
    P: Debug + Component

Sets or shares an attached property.

pub fn position(self, position: impl IntoPropertySource<Point>) -> ScrollViewer

Sets or shares the constraint property.

pub fn constraint(
    self,
    constraint: impl IntoPropertySource<Constraint>
) -> ScrollViewer

Sets or shares the constraint property.

pub fn vertical_alignment(
    self,
    vertical_alignment: impl IntoPropertySource<Alignment>
) -> ScrollViewer

Sets or shares the vertical alignment property.

pub fn horizontal_alignment(
    self,
    horizontal_alignment: impl IntoPropertySource<Alignment>
) -> ScrollViewer

Sets or shares the horizontal alignment property.

pub fn visibility(
    self,
    visibility: impl IntoPropertySource<Visibility>
) -> ScrollViewer

Sets or shares the visibility property.

pub fn margin(self, margin: impl IntoPropertySource<Thickness>) -> ScrollViewer

Sets or shares the margin property.

pub fn enabled(self, enabled: impl IntoPropertySource<bool>) -> ScrollViewer

Sets or shares the enabled property.

pub fn clip(self, clip: impl IntoPropertySource<bool>) -> ScrollViewer

Sets or shares the clip property.

pub fn opacity(self, opacity: impl IntoPropertySource<f32>) -> ScrollViewer

pub fn width(self, width: f64) -> ScrollViewer

Inserts a new width.

pub fn height(self, height: f64) -> ScrollViewer

Inserts a new height.

pub fn size(self, width: f64, height: f64) -> ScrollViewer

Inserts a new size.

pub fn min_width(self, min_width: f64) -> ScrollViewer

Inserts a new min_width.

pub fn min_height(self, min_height: f64) -> ScrollViewer

Inserts a new min_height.

pub fn min_size(self, min_width: f64, min_height: f64) -> ScrollViewer

Inserts a new min_size.

pub fn max_width(self, max_width: f64) -> ScrollViewer

Inserts a new max_width.

pub fn max_height(self, max_height: f64) -> ScrollViewer

Inserts a new max_height.

pub fn max_size(self, max_width: f64, max_height: f64) -> ScrollViewer

Inserts a new min_size.

pub fn name<P>(self, name: P) -> ScrollViewer where
    P: Into<String>, 

Sets the debug name of the widget.

pub fn clone_state(&self) -> Rc<ScrollViewerState>

Returns the cloned state of the widget.

pub fn scroll_offset<P>(self, scroll_offset: P) -> ScrollViewer where
    P: IntoPropertySource<Point>, 

Sets or shares the scroll offset property.

pub fn scroll_viewer_mode<P>(self, scroll_viewer_mode: P) -> ScrollViewer where
    P: IntoPropertySource<ScrollViewerMode>, 

Sets or shares the scroll mode property.

pub fn selector<P>(self, selector: P) -> ScrollViewer where
    P: IntoPropertySource<Selector>, 

Sets or shares the css selector property.

pub fn delta<P>(self, delta: P) -> ScrollViewer where
    P: IntoPropertySource<Point>, 

Sets or shares the (wheel, scroll) delta property.

Trait Implementations

impl Default for ScrollViewer

impl Widget for ScrollViewer

impl MouseHandler for ScrollViewer

impl Template for ScrollViewer[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<E> Component for E where
    E: Any
[src]

impl<T> SetParameter for T