Struct ux::KineticScrollView [−][src]
pub struct KineticScrollView { /* fields omitted */ }
Implementations
impl KineticScrollView
[src]
pub fn new() -> KineticScrollView
[src]
Trait Implementations
impl AsRef<Actor> for KineticScrollView
[src]
impl AsRef<KineticScrollView> for KineticScrollView
[src]
pub fn as_ref(&self) -> &KineticScrollView
[src]
impl AsRef<Widget> for KineticScrollView
[src]
impl Clone for KineticScrollView
[src]
pub fn clone(&self) -> KineticScrollView
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for KineticScrollView
[src]
impl Default for KineticScrollView
[src]
pub fn default() -> KineticScrollView
[src]
impl Display for KineticScrollView
[src]
impl Is<Actor> for KineticScrollView
[src]
impl Is<KineticScrollView> for KineticScrollView
[src]
impl Is<Widget> for KineticScrollView
[src]
impl Object for KineticScrollView
[src]
Auto Trait Implementations
impl !RefUnwindSafe for KineticScrollView
impl !Send for KineticScrollView
impl !Sync for KineticScrollView
impl Unpin for KineticScrollView
impl UnwindSafe for KineticScrollView
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<O> KineticScrollViewExt for O where
O: Is<KineticScrollView>,
[src]
O: Is<KineticScrollView>,
pub fn ensure_visible(&self, geometry: &Geometry)
[src]
ensure_visible: @scroll: A #KineticScrollView @geometry: The region to make visible
Ensures that a given region is visible in the ScrollView, with the top-left taking precedence.
pub fn get_acceleration_factor(&self) -> f64
[src]
get_acceleration_factor: @scroll: A #KineticScrollView
Retrieves the initial acceleration factor of the kinetic scroll-view.
Returns: The initial acceleration factor of the kinetic scroll-view
pub fn get_clamp_duration(&self) -> u32
[src]
get_clamp_duration: @scroll: A #KineticScrollView
Retrieves the duration of the adjustment clamp animation.
Returns: Clamp duration
pub fn get_clamp_mode(&self) -> u64
[src]
get_clamp_mode: @scroll: A #KineticScrollView
Retrieves the animation mode to use for the adjustment clamp animation.
Returns: Clamp mode
pub fn get_clamp_to_center(&self) -> bool
[src]
get_clamp_to_center: @scroll: A #KineticScrollView
Retrieves whether to clamp to step increments based on the center of the page.
Returns: Clamp to center
pub fn get_deceleration(&self) -> f64
[src]
get_deceleration: @scroll: A #KineticScrollView
Retrieves the deceleration rate of the kinetic scroll-view.
Returns: The deceleration rate of the kinetic scroll-view
pub fn get_input(&self) -> (Option<InputDevice>, Option<EventSequence>)
[src]
get_input: @scroll: A #KineticScrollView @device: (allow-none) (out) (transfer none): a pointer to a #InputDevice pointer @sequence: (allow-none) (out) (transfer none): a pointer to a #EventSequence pointer
Retrieves informations about the current input device driving the scrolling.
pub fn get_mouse_button(&self) -> u32
[src]
get_mouse_button: @scroll: A #KineticScrollView
Gets the #KineticScrollView:mouse-button property
Returns: The mouse button number used to initiate drag events on the kinetic scroll-view
pub fn get_overshoot(&self) -> f64
[src]
get_overshoot: @scroll: A #KineticScrollView
Retrieves the deceleration rate multiplier used when the scroll-view is scrolling beyond its boundaries.
pub fn get_scroll_policy(&self) -> ScrollPolicy
[src]
get_scroll_policy: @scroll: A #KineticScrollView
Retrieves the scrolling policy of the kinetic scroll-view.
pub fn get_snap_on_page(&self) -> bool
[src]
get_snap_on_page: @scroll: A #KineticScrollView
Retrieves whether animations end on step increments.
Returns: #true if animations end on step increments, #false otherwise.
pub fn get_use_captured(&self) -> bool
[src]
get_use_captured: @scroll: A #KineticScrollView
Gets the #KineticScrollView:use-captured property.
Returns: %true if captured-events should be used to initiate scrolling
pub fn get_use_grab(&self) -> bool
[src]
get_use_grab: @scroll: A #KineticScrollView
Gets the #KineticScrollView:use-grab property.
Returns: %true if grab-events should be used to initiate scrolling
pub fn set_acceleration_factor(&self, acceleration_factor: f64)
[src]
set_acceleration_factor: @scroll: A #KineticScrollView @acceleration_factor: The acceleration factor
Factor applied to the initial momentum.
pub fn set_clamp_duration(&self, clamp_duration: u32)
[src]
set_clamp_duration: @scroll: A #KineticScrollView @clamp_duration: Clamp duration
Duration of the adjustment clamp animation.
pub fn set_clamp_mode(&self, clamp_mode: u64)
[src]
set_clamp_mode: @scroll: A #KineticScrollView @clamp_mode: Clamp mode
Animation mode to use for the adjustment clamp animation.
pub fn set_clamp_to_center(&self, clamp_to_center: bool)
[src]
set_clamp_to_center: @scroll: A #KineticScrollView @clamp_to_center: Clamp to center
Set whether to clamp to step increments based on the center of the page.
pub fn set_deceleration(&self, rate: f64)
[src]
set_deceleration: @scroll: A #KineticScrollView @rate: The deceleration rate
Sets the deceleration rate when a drag is finished on the kinetic scroll-view. This is the value that the momentum is divided by every 60th of a second.
pub fn set_mouse_button(&self, button: u32)
[src]
set_mouse_button: @scroll: A #KineticScrollView @button: A mouse button number
Sets the mouse button number used to initiate drag events on the kinetic scroll-view.
pub fn set_overshoot(&self, overshoot: f64)
[src]
set_overshoot: @scroll: A #KineticScrollView @overshoot: The rate at which the view will decelerate when scrolling beyond its boundaries.
Sets the rate at which the view will decelerate when scrolling beyond its boundaries. The deceleration rate will be multiplied by this value every 60th of a second when the view is scrolling outside of the range set by its adjustments.
See set_deceleration()
pub fn set_scroll_policy(&self, policy: ScrollPolicy)
[src]
set_scroll_policy: @scroll: A #KineticScrollView @policy: A #ScrollPolicy
Sets the scrolling policy for the kinetic scroll-view. This controls the possible axes of movement, and can affect the minimum size of the widget.
pub fn set_snap_on_page(&self, snap_on_page: bool)
[src]
set_snap_on_page: @scroll: A #KineticScrollView @snap_on_page: #true to stop animations on step increments
Set whether to stop animations on step increments.
pub fn set_use_captured(&self, use_captured: bool)
[src]
set_use_captured: @scroll: A #KineticScrollView @use_captured: %true to use captured events
Sets whether to use captured events to initiate drag events. This can be used to block events that would initiate scrolling from reaching the child actor.
pub fn set_use_grab(&self, use_grab: bool)
[src]
set_use_grab: @scroll: A #KineticScrollView @use_grab: %true to use grab events
Sets whether to use grab events to initiate drag events. This can be used to block events that would initiate scrolling from reaching the child actor.
pub fn stop(&self)
[src]
stop: @scroll: A #KineticScrollView
Stops any current movement due to kinetic scrolling.
pub fn get_property_snap_on_page(&self) -> bool
[src]
pub fn set_property_snap_on_page(&self, snap_on_page: bool)
[src]
pub fn get_property_state(&self) -> KineticScrollViewState
[src]
pub fn get_property_use_grab(&self) -> bool
[src]
pub fn set_property_use_grab(&self, use_grab: bool)
[src]
pub fn connect_property_acceleration_factor_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_clamp_duration_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_clamp_mode_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_clamp_to_center_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_deceleration_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_mouse_button_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_overshoot_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_scroll_policy_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_snap_on_page_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_state_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_use_captured_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_use_grab_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<O> WidgetExt for O where
O: Is<Widget>,
[src]
O: Is<Widget>,
pub fn apply_style<P>(&self, style: &P) where
P: Is<Style>,
[src]
P: Is<Style>,
widget_apply_style: @widget: A #Widget @style: A #Style
Used to implement how a new style instance should be applied in the widget. For instance, setting style instance on stylable internal children.
pub fn get_available_area(&self, allocation: &ActorBox, area: &mut ActorBox)
[src]
get_available_area: @widget: A #Widget @allocation: A #ActorBox @area: A #ActorBox
Copies @allocation into @area and accounts for the padding values. This gives the area that is available in which to allocate children with respect to padding.
pub fn get_background_color(&self) -> Option<Color>
[src]
get_background_color: @actor: A #Widget
Get the color used as the background. This is set using the “background-color” CSS property. This function should normally only be used by subclasses.
Returns: (transfer none): a #Color
pub fn get_background_texture(&self) -> Option<Handle>
[src]
pub fn get_disabled(&self) -> bool
[src]
get_disabled: @widget: an #Widget
Get the value of the “disabled” property.
pub fn get_padding(&self) -> Padding
[src]
get_padding: @widget: A #Widget @padding: (out): A pointer to an #Padding to fill
Gets the padding of the widget, set using the “padding” CSS property. This function should normally only be used by subclasses.
pub fn long_press_cancel(&self)
[src]
long_press_cancel: @widget: An Widget
Cancel a long-press timeout if one is running and emit the signal to notify that the long-press has been cancelled.
pub fn long_press_query(&self, event: &mut Event)
[src]
long_press_query: @widget: An Widget @event: the event used to determine whether to run a long-press
Emit the long-press query signal and start a long-press timeout if required.
pub fn set_disabled(&self, disabled: bool)
[src]
widget_set_disabled: @widget: an #Widget @disabled: value to set
Set the disabled property. Disabled widgets have a “disabled” pseudo-class until disabled is set to #false.
pub fn connect_property_disabled_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_menu_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_tooltip_delay_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),