Trait IScrollViewConcept

pub trait IScrollViewConcept: Inherits<Object> + Inherits<ScrollViewConcept> {
Show 54 methods // Provided methods fn get_recognition_threshold(&self) -> Result<f32, Error> { ... } fn set_recognition_threshold(&self, value: f32) -> Result<(), Error> { ... } fn get_minimum_number_of_touches(&self) -> Result<i32, Error> { ... } fn set_minimum_number_of_touches(&self, value: i32) -> Result<(), Error> { ... } fn get_maximum_number_of_touches(&self) -> Result<i32, Error> { ... } fn set_maximum_number_of_touches(&self, value: i32) -> Result<(), Error> { ... } fn get_sensitivity(&self) -> Result<f32, Error> { ... } fn set_sensitivity(&self, value: f32) -> Result<(), Error> { ... } fn get_sliding_acceleration_coefficient(&self) -> Result<f32, Error> { ... } fn set_sliding_acceleration_coefficient( &self, value: f32, ) -> Result<(), Error> { ... } fn get_sliding_drag_coefficient(&self) -> Result<f32, Error> { ... } fn set_sliding_drag_coefficient(&self, value: f32) -> Result<(), Error> { ... } fn get_dragging_acceleration_coefficient(&self) -> Result<f32, Error> { ... } fn set_dragging_acceleration_coefficient( &self, value: f32, ) -> Result<(), Error> { ... } fn get_dragging_drag_coefficient(&self) -> Result<f32, Error> { ... } fn set_dragging_drag_coefficient(&self, value: f32) -> Result<(), Error> { ... } fn get_dragging_impulse_factor(&self) -> Result<f32, Error> { ... } fn set_dragging_impulse_factor(&self, value: f32) -> Result<(), Error> { ... } fn get_swipe_distance(&self) -> Result<f32, Error> { ... } fn set_swipe_distance(&self, value: f32) -> Result<(), Error> { ... } fn get_scroll_position(&self) -> Result<Vector2, Error> { ... } fn set_scroll_position(&self, value: Vector2) -> Result<(), Error> { ... } fn get_scroll_target_position(&self) -> Result<Vector2, Error> { ... } fn set_scroll_target_position(&self, value: Vector2) -> Result<(), Error> { ... } fn get_scroll_speed(&self) -> Result<Vector2, Error> { ... } fn set_scroll_speed(&self, value: Vector2) -> Result<(), Error> { ... } fn get_scrolling(&self) -> Result<bool, Error> { ... } fn set_scrolling(&self, value: bool) -> Result<(), Error> { ... } fn get_zoom_affects_scrolling(&self) -> Result<bool, Error> { ... } fn set_zoom_affects_scrolling(&self, value: bool) -> Result<(), Error> { ... } fn get_scroll_bounds_minimum(&self) -> Result<Vector2, Error> { ... } fn set_scroll_bounds_minimum(&self, value: Vector2) -> Result<(), Error> { ... } fn get_scroll_bounds_maximum(&self) -> Result<Vector2, Error> { ... } fn set_scroll_bounds_maximum(&self, value: Vector2) -> Result<(), Error> { ... } fn get_looping_x_enabled(&self) -> Result<bool, Error> { ... } fn set_looping_x_enabled(&self, value: bool) -> Result<(), Error> { ... } fn get_looping_y_enabled(&self) -> Result<bool, Error> { ... } fn set_looping_y_enabled(&self, value: bool) -> Result<(), Error> { ... } fn get_zoom_enabled(&self) -> Result<bool, Error> { ... } fn set_zoom_enabled(&self, value: bool) -> Result<(), Error> { ... } fn get_zoom(&self) -> Result<f32, Error> { ... } fn set_zoom(&self, value: f32) -> Result<(), Error> { ... } fn get_zoom_minimum(&self) -> Result<f32, Error> { ... } fn set_zoom_minimum(&self, value: f32) -> Result<(), Error> { ... } fn get_zoom_maximum(&self) -> Result<f32, Error> { ... } fn set_zoom_maximum(&self, value: f32) -> Result<(), Error> { ... } fn get_step_multiplier(&self) -> Result<f32, Error> { ... } fn set_step_multiplier(&self, value: f32) -> Result<(), Error> { ... } fn get_allowed_scroll_axis(&self) -> Result<AllowedScrollAxis, Error> { ... } fn set_allowed_scroll_axis( &self, value: AllowedScrollAxis, ) -> Result<(), Error> { ... } fn get_reversed_x_axis_scroll(&self) -> Result<bool, Error> { ... } fn set_reversed_x_axis_scroll(&self, value: bool) -> Result<(), Error> { ... } fn get_reversed_y_axis_scroll(&self) -> Result<bool, Error> { ... } fn set_reversed_y_axis_scroll(&self, value: bool) -> Result<(), Error> { ... }
}
Expand description

ScrollViewConcept is the base class that provides the functionality for the ScrollView2D and ScrollView3D classes. Both of these Scroll View types inherit the ScrollViewConceptImpl, a specialization of the base class:

  • ScrollView2D inherits the ScrollViewConceptImpl specialization for the Node2D.
  • ScrollView3D inherits the ScrollViewConceptImpl specialization for the Node3D.

Scroll View nodes provide an area that receives touch input which is translated to pan and zoom events. You can listen and react to these events by subscribing to the messages that a Scroll View node sends. You can scroll to a specific position in a Scroll View node by sending the Scroll View messages to that Scroll View node.

To disable a Scroll View node, set the Node::EnabledProperty to false. A disabled Scroll View does not respond to input. To visually indicate the disabled state of a Scroll View node, create a state manager and use the Node::EffectivelyEnabledProperty as its controller property. When Kanzi disables a Scroll View node, it cancels the ongoing gestures and preserves the scroll and zoom values of that Scroll View node.

Some Kanzi nodes internally use a Scroll View to achieve a pannable area. For example, the GridListBox2D and TrajectoryListBox3D nodes use a Scroll View.

See: For details and examples of how to use the Scroll View nodes, see ScrollView2D and ScrollView3D.

Provided Methods§

fn get_recognition_threshold(&self) -> Result<f32, Error>

fn set_recognition_threshold(&self, value: f32) -> Result<(), Error>

fn get_minimum_number_of_touches(&self) -> Result<i32, Error>

fn set_minimum_number_of_touches(&self, value: i32) -> Result<(), Error>

fn get_maximum_number_of_touches(&self) -> Result<i32, Error>

fn set_maximum_number_of_touches(&self, value: i32) -> Result<(), Error>

fn get_sensitivity(&self) -> Result<f32, Error>

fn set_sensitivity(&self, value: f32) -> Result<(), Error>

fn get_sliding_acceleration_coefficient(&self) -> Result<f32, Error>

fn set_sliding_acceleration_coefficient(&self, value: f32) -> Result<(), Error>

fn get_sliding_drag_coefficient(&self) -> Result<f32, Error>

fn set_sliding_drag_coefficient(&self, value: f32) -> Result<(), Error>

fn get_dragging_acceleration_coefficient(&self) -> Result<f32, Error>

fn set_dragging_acceleration_coefficient(&self, value: f32) -> Result<(), Error>

fn get_dragging_drag_coefficient(&self) -> Result<f32, Error>

fn set_dragging_drag_coefficient(&self, value: f32) -> Result<(), Error>

fn get_dragging_impulse_factor(&self) -> Result<f32, Error>

fn set_dragging_impulse_factor(&self, value: f32) -> Result<(), Error>

fn get_swipe_distance(&self) -> Result<f32, Error>

fn set_swipe_distance(&self, value: f32) -> Result<(), Error>

fn get_scroll_position(&self) -> Result<Vector2, Error>

fn set_scroll_position(&self, value: Vector2) -> Result<(), Error>

fn get_scroll_target_position(&self) -> Result<Vector2, Error>

fn set_scroll_target_position(&self, value: Vector2) -> Result<(), Error>

fn get_scroll_speed(&self) -> Result<Vector2, Error>

fn set_scroll_speed(&self, value: Vector2) -> Result<(), Error>

fn get_scrolling(&self) -> Result<bool, Error>

fn set_scrolling(&self, value: bool) -> Result<(), Error>

fn get_zoom_affects_scrolling(&self) -> Result<bool, Error>

fn set_zoom_affects_scrolling(&self, value: bool) -> Result<(), Error>

fn get_scroll_bounds_minimum(&self) -> Result<Vector2, Error>

fn set_scroll_bounds_minimum(&self, value: Vector2) -> Result<(), Error>

fn get_scroll_bounds_maximum(&self) -> Result<Vector2, Error>

fn set_scroll_bounds_maximum(&self, value: Vector2) -> Result<(), Error>

fn get_looping_x_enabled(&self) -> Result<bool, Error>

fn set_looping_x_enabled(&self, value: bool) -> Result<(), Error>

fn get_looping_y_enabled(&self) -> Result<bool, Error>

fn set_looping_y_enabled(&self, value: bool) -> Result<(), Error>

fn get_zoom_enabled(&self) -> Result<bool, Error>

fn set_zoom_enabled(&self, value: bool) -> Result<(), Error>

fn get_zoom(&self) -> Result<f32, Error>

fn set_zoom(&self, value: f32) -> Result<(), Error>

fn get_zoom_minimum(&self) -> Result<f32, Error>

fn set_zoom_minimum(&self, value: f32) -> Result<(), Error>

fn get_zoom_maximum(&self) -> Result<f32, Error>

fn set_zoom_maximum(&self, value: f32) -> Result<(), Error>

fn get_step_multiplier(&self) -> Result<f32, Error>

fn set_step_multiplier(&self, value: f32) -> Result<(), Error>

fn get_allowed_scroll_axis(&self) -> Result<AllowedScrollAxis, Error>

fn set_allowed_scroll_axis(&self, value: AllowedScrollAxis) -> Result<(), Error>

fn get_reversed_x_axis_scroll(&self) -> Result<bool, Error>

fn set_reversed_x_axis_scroll(&self, value: bool) -> Result<(), Error>

fn get_reversed_y_axis_scroll(&self) -> Result<bool, Error>

fn set_reversed_y_axis_scroll(&self, value: bool) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§