pub trait IScrollRectMethods: IScrollRect {
Show 84 methods
// Provided methods
fn get_content(self) -> RectTransform { ... }
fn set_content(self, value: impl Into<RectTransform>) { ... }
fn get_horizontal(self) -> bool { ... }
fn set_horizontal(self, value: impl Into<bool>) { ... }
fn get_vertical(self) -> bool { ... }
fn set_vertical(self, value: impl Into<bool>) { ... }
fn get_movement_type(self) -> ScrollRect_MovementType { ... }
fn set_movement_type(self, value: impl Into<ScrollRect_MovementType>) { ... }
fn get_elasticity(self) -> f32 { ... }
fn set_elasticity(self, value: impl Into<f32>) { ... }
fn get_inertia(self) -> bool { ... }
fn set_inertia(self, value: impl Into<bool>) { ... }
fn get_deceleration_rate(self) -> f32 { ... }
fn set_deceleration_rate(self, value: impl Into<f32>) { ... }
fn get_scroll_sensitivity(self) -> f32 { ... }
fn set_scroll_sensitivity(self, value: impl Into<f32>) { ... }
fn get_viewport(self) -> RectTransform { ... }
fn set_viewport(self, value: impl Into<RectTransform>) { ... }
fn get_horizontal_scrollbar(self) -> Scrollbar { ... }
fn set_horizontal_scrollbar(self, value: impl Into<Scrollbar>) { ... }
fn get_vertical_scrollbar(self) -> Scrollbar { ... }
fn set_vertical_scrollbar(self, value: impl Into<Scrollbar>) { ... }
fn get_horizontal_scrollbar_visibility(
self,
) -> ScrollRect_ScrollbarVisibility { ... }
fn set_horizontal_scrollbar_visibility(
self,
value: impl Into<ScrollRect_ScrollbarVisibility>,
) { ... }
fn get_vertical_scrollbar_visibility(self) -> ScrollRect_ScrollbarVisibility { ... }
fn set_vertical_scrollbar_visibility(
self,
value: impl Into<ScrollRect_ScrollbarVisibility>,
) { ... }
fn get_horizontal_scrollbar_spacing(self) -> f32 { ... }
fn set_horizontal_scrollbar_spacing(self, value: impl Into<f32>) { ... }
fn get_vertical_scrollbar_spacing(self) -> f32 { ... }
fn set_vertical_scrollbar_spacing(self, value: impl Into<f32>) { ... }
fn get_on_value_changed(self) -> ScrollRect_ScrollRectEvent { ... }
fn set_on_value_changed(self, value: impl Into<ScrollRect_ScrollRectEvent>) { ... }
fn get_view_rect(self) -> RectTransform { ... }
fn get_velocity(self) -> Vector2 { ... }
fn set_velocity(self, value: impl Into<Vector2>) { ... }
fn get_rect_transform(self) -> RectTransform { ... }
fn ctor(self) { ... }
fn rebuild(self, executing: impl Into<CanvasUpdate>) { ... }
fn layout_complete(self) { ... }
fn graphic_update_complete(self) { ... }
fn update_cached_data(self) { ... }
fn on_enable(self) { ... }
fn on_disable(self) { ... }
fn is_active(self) -> bool { ... }
fn ensure_layout_has_rebuilt(self) { ... }
fn stop_movement(self) { ... }
fn on_scroll(self, data: impl Into<PointerEventData>) { ... }
fn on_initialize_potential_drag(
self,
event_data: impl Into<PointerEventData>,
) { ... }
fn on_begin_drag(self, event_data: impl Into<PointerEventData>) { ... }
fn on_end_drag(self, event_data: impl Into<PointerEventData>) { ... }
fn on_drag(self, event_data: impl Into<PointerEventData>) { ... }
fn set_content_anchored_position(self, position: impl Into<Vector2>) { ... }
fn late_update(self) { ... }
fn update_prev_data(self) { ... }
fn update_scrollbars(self, offset: impl Into<Vector2>) { ... }
fn get_normalized_position(self) -> Vector2 { ... }
fn set_normalized_position(self, value: impl Into<Vector2>) { ... }
fn get_horizontal_normalized_position(self) -> f32 { ... }
fn set_horizontal_normalized_position(self, value: impl Into<f32>) { ... }
fn get_vertical_normalized_position(self) -> f32 { ... }
fn set_vertical_normalized_position(self, value: impl Into<f32>) { ... }
fn set_normalized_position_2(
self,
value: impl Into<f32>,
axis: impl Into<i32>,
) { ... }
fn on_rect_transform_dimensions_change(self) { ... }
fn get_h_scrolling_needed(self) -> bool { ... }
fn get_v_scrolling_needed(self) -> bool { ... }
fn calculate_layout_input_horizontal(self) { ... }
fn calculate_layout_input_vertical(self) { ... }
fn get_min_width(self) -> f32 { ... }
fn get_preferred_width(self) -> f32 { ... }
fn get_flexible_width(self) -> f32 { ... }
fn get_min_height(self) -> f32 { ... }
fn get_preferred_height(self) -> f32 { ... }
fn get_flexible_height(self) -> f32 { ... }
fn get_layout_priority(self) -> i32 { ... }
fn set_layout_horizontal(self) { ... }
fn set_layout_vertical(self) { ... }
fn update_scrollbar_visibility(self) { ... }
fn update_scrollbar_layout(self) { ... }
fn update_bounds(self) { ... }
fn get_bounds(self) -> Bounds { ... }
fn calculate_offset(self, delta: impl Into<Vector2>) -> Vector2 { ... }
fn set_dirty(self) { ... }
fn set_dirty_caching(self) { ... }
fn unity_engine_ui_i_canvas_element_get_transform(self) -> Transform { ... }
}Provided Methods§
Sourcefn get_content(self) -> RectTransform
fn get_content(self) -> RectTransform
get_content() overload
Sourcefn set_content(self, value: impl Into<RectTransform>)
fn set_content(self, value: impl Into<RectTransform>)
set_content(crate::unity_engine::recttransform::RectTransform) overload
Sourcefn get_horizontal(self) -> bool
fn get_horizontal(self) -> bool
get_horizontal() overload
Sourcefn set_horizontal(self, value: impl Into<bool>)
fn set_horizontal(self, value: impl Into<bool>)
set_horizontal(bool) overload
Sourcefn get_vertical(self) -> bool
fn get_vertical(self) -> bool
get_vertical() overload
Sourcefn set_vertical(self, value: impl Into<bool>)
fn set_vertical(self, value: impl Into<bool>)
set_vertical(bool) overload
Sourcefn get_movement_type(self) -> ScrollRect_MovementType
fn get_movement_type(self) -> ScrollRect_MovementType
get_movementType() overload
Sourcefn set_movement_type(self, value: impl Into<ScrollRect_MovementType>)
fn set_movement_type(self, value: impl Into<ScrollRect_MovementType>)
set_movementType(crate::unity_engine::ui::scrollrect::ScrollRect_MovementType) overload
Sourcefn get_elasticity(self) -> f32
fn get_elasticity(self) -> f32
get_elasticity() overload
Sourcefn set_elasticity(self, value: impl Into<f32>)
fn set_elasticity(self, value: impl Into<f32>)
set_elasticity(f32) overload
Sourcefn get_inertia(self) -> bool
fn get_inertia(self) -> bool
get_inertia() overload
Sourcefn set_inertia(self, value: impl Into<bool>)
fn set_inertia(self, value: impl Into<bool>)
set_inertia(bool) overload
Sourcefn get_deceleration_rate(self) -> f32
fn get_deceleration_rate(self) -> f32
get_decelerationRate() overload
Sourcefn set_deceleration_rate(self, value: impl Into<f32>)
fn set_deceleration_rate(self, value: impl Into<f32>)
set_decelerationRate(f32) overload
Sourcefn get_scroll_sensitivity(self) -> f32
fn get_scroll_sensitivity(self) -> f32
get_scrollSensitivity() overload
Sourcefn set_scroll_sensitivity(self, value: impl Into<f32>)
fn set_scroll_sensitivity(self, value: impl Into<f32>)
set_scrollSensitivity(f32) overload
Sourcefn get_viewport(self) -> RectTransform
fn get_viewport(self) -> RectTransform
get_viewport() overload
Sourcefn set_viewport(self, value: impl Into<RectTransform>)
fn set_viewport(self, value: impl Into<RectTransform>)
set_viewport(crate::unity_engine::recttransform::RectTransform) overload
Sourcefn get_horizontal_scrollbar(self) -> Scrollbar
fn get_horizontal_scrollbar(self) -> Scrollbar
get_horizontalScrollbar() overload
Sourcefn set_horizontal_scrollbar(self, value: impl Into<Scrollbar>)
fn set_horizontal_scrollbar(self, value: impl Into<Scrollbar>)
set_horizontalScrollbar(crate::unity_engine::ui::scrollbar::Scrollbar) overload
Sourcefn get_vertical_scrollbar(self) -> Scrollbar
fn get_vertical_scrollbar(self) -> Scrollbar
get_verticalScrollbar() overload
Sourcefn set_vertical_scrollbar(self, value: impl Into<Scrollbar>)
fn set_vertical_scrollbar(self, value: impl Into<Scrollbar>)
set_verticalScrollbar(crate::unity_engine::ui::scrollbar::Scrollbar) overload
Sourcefn get_horizontal_scrollbar_visibility(self) -> ScrollRect_ScrollbarVisibility
fn get_horizontal_scrollbar_visibility(self) -> ScrollRect_ScrollbarVisibility
get_horizontalScrollbarVisibility() overload
Sourcefn set_horizontal_scrollbar_visibility(
self,
value: impl Into<ScrollRect_ScrollbarVisibility>,
)
fn set_horizontal_scrollbar_visibility( self, value: impl Into<ScrollRect_ScrollbarVisibility>, )
set_horizontalScrollbarVisibility(crate::unity_engine::ui::scrollrect::ScrollRect_ScrollbarVisibility) overload
Sourcefn get_vertical_scrollbar_visibility(self) -> ScrollRect_ScrollbarVisibility
fn get_vertical_scrollbar_visibility(self) -> ScrollRect_ScrollbarVisibility
get_verticalScrollbarVisibility() overload
Sourcefn set_vertical_scrollbar_visibility(
self,
value: impl Into<ScrollRect_ScrollbarVisibility>,
)
fn set_vertical_scrollbar_visibility( self, value: impl Into<ScrollRect_ScrollbarVisibility>, )
set_verticalScrollbarVisibility(crate::unity_engine::ui::scrollrect::ScrollRect_ScrollbarVisibility) overload
Sourcefn get_horizontal_scrollbar_spacing(self) -> f32
fn get_horizontal_scrollbar_spacing(self) -> f32
get_horizontalScrollbarSpacing() overload
Sourcefn set_horizontal_scrollbar_spacing(self, value: impl Into<f32>)
fn set_horizontal_scrollbar_spacing(self, value: impl Into<f32>)
set_horizontalScrollbarSpacing(f32) overload
Sourcefn get_vertical_scrollbar_spacing(self) -> f32
fn get_vertical_scrollbar_spacing(self) -> f32
get_verticalScrollbarSpacing() overload
Sourcefn set_vertical_scrollbar_spacing(self, value: impl Into<f32>)
fn set_vertical_scrollbar_spacing(self, value: impl Into<f32>)
set_verticalScrollbarSpacing(f32) overload
Sourcefn get_on_value_changed(self) -> ScrollRect_ScrollRectEvent
fn get_on_value_changed(self) -> ScrollRect_ScrollRectEvent
get_onValueChanged() overload
Sourcefn set_on_value_changed(self, value: impl Into<ScrollRect_ScrollRectEvent>)
fn set_on_value_changed(self, value: impl Into<ScrollRect_ScrollRectEvent>)
set_onValueChanged(crate::unity_engine::ui::scrollrect::ScrollRect_ScrollRectEvent) overload
Sourcefn get_view_rect(self) -> RectTransform
fn get_view_rect(self) -> RectTransform
get_viewRect() overload
Sourcefn get_velocity(self) -> Vector2
fn get_velocity(self) -> Vector2
get_velocity() overload
Sourcefn set_velocity(self, value: impl Into<Vector2>)
fn set_velocity(self, value: impl Into<Vector2>)
set_velocity(crate::unity_engine::vector2::Vector2) overload
Sourcefn get_rect_transform(self) -> RectTransform
fn get_rect_transform(self) -> RectTransform
get_rectTransform() overload
Sourcefn rebuild(self, executing: impl Into<CanvasUpdate>)
fn rebuild(self, executing: impl Into<CanvasUpdate>)
Rebuild(crate::unity_engine::ui::canvasupdate::CanvasUpdate) overload
Sourcefn layout_complete(self)
fn layout_complete(self)
LayoutComplete() overload
Sourcefn graphic_update_complete(self)
fn graphic_update_complete(self)
GraphicUpdateComplete() overload
Sourcefn update_cached_data(self)
fn update_cached_data(self)
UpdateCachedData() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn ensure_layout_has_rebuilt(self)
fn ensure_layout_has_rebuilt(self)
EnsureLayoutHasRebuilt() overload
Sourcefn stop_movement(self)
fn stop_movement(self)
StopMovement() overload
Sourcefn on_scroll(self, data: impl Into<PointerEventData>)
fn on_scroll(self, data: impl Into<PointerEventData>)
OnScroll(crate::unity_engine::event_systems::pointereventdata::PointerEventData) overload
Sourcefn on_initialize_potential_drag(self, event_data: impl Into<PointerEventData>)
fn on_initialize_potential_drag(self, event_data: impl Into<PointerEventData>)
OnInitializePotentialDrag(crate::unity_engine::event_systems::pointereventdata::PointerEventData) overload
Sourcefn on_begin_drag(self, event_data: impl Into<PointerEventData>)
fn on_begin_drag(self, event_data: impl Into<PointerEventData>)
OnBeginDrag(crate::unity_engine::event_systems::pointereventdata::PointerEventData) overload
Sourcefn on_end_drag(self, event_data: impl Into<PointerEventData>)
fn on_end_drag(self, event_data: impl Into<PointerEventData>)
OnEndDrag(crate::unity_engine::event_systems::pointereventdata::PointerEventData) overload
Sourcefn on_drag(self, event_data: impl Into<PointerEventData>)
fn on_drag(self, event_data: impl Into<PointerEventData>)
OnDrag(crate::unity_engine::event_systems::pointereventdata::PointerEventData) overload
Sourcefn set_content_anchored_position(self, position: impl Into<Vector2>)
fn set_content_anchored_position(self, position: impl Into<Vector2>)
SetContentAnchoredPosition(crate::unity_engine::vector2::Vector2) overload
Sourcefn late_update(self)
fn late_update(self)
LateUpdate() overload
Sourcefn update_prev_data(self)
fn update_prev_data(self)
UpdatePrevData() overload
Sourcefn update_scrollbars(self, offset: impl Into<Vector2>)
fn update_scrollbars(self, offset: impl Into<Vector2>)
UpdateScrollbars(crate::unity_engine::vector2::Vector2) overload
Sourcefn get_normalized_position(self) -> Vector2
fn get_normalized_position(self) -> Vector2
get_normalizedPosition() overload
Sourcefn set_normalized_position(self, value: impl Into<Vector2>)
fn set_normalized_position(self, value: impl Into<Vector2>)
set_normalizedPosition(crate::unity_engine::vector2::Vector2) overload
Sourcefn get_horizontal_normalized_position(self) -> f32
fn get_horizontal_normalized_position(self) -> f32
get_horizontalNormalizedPosition() overload
Sourcefn set_horizontal_normalized_position(self, value: impl Into<f32>)
fn set_horizontal_normalized_position(self, value: impl Into<f32>)
set_horizontalNormalizedPosition(f32) overload
Sourcefn get_vertical_normalized_position(self) -> f32
fn get_vertical_normalized_position(self) -> f32
get_verticalNormalizedPosition() overload
Sourcefn set_vertical_normalized_position(self, value: impl Into<f32>)
fn set_vertical_normalized_position(self, value: impl Into<f32>)
set_verticalNormalizedPosition(f32) overload
Sourcefn set_normalized_position_2(self, value: impl Into<f32>, axis: impl Into<i32>)
fn set_normalized_position_2(self, value: impl Into<f32>, axis: impl Into<i32>)
SetNormalizedPosition(f32, i32) overload
Sourcefn on_rect_transform_dimensions_change(self)
fn on_rect_transform_dimensions_change(self)
OnRectTransformDimensionsChange() overload
Sourcefn get_h_scrolling_needed(self) -> bool
fn get_h_scrolling_needed(self) -> bool
get_hScrollingNeeded() overload
Sourcefn get_v_scrolling_needed(self) -> bool
fn get_v_scrolling_needed(self) -> bool
get_vScrollingNeeded() overload
Sourcefn calculate_layout_input_horizontal(self)
fn calculate_layout_input_horizontal(self)
CalculateLayoutInputHorizontal() overload
Sourcefn calculate_layout_input_vertical(self)
fn calculate_layout_input_vertical(self)
CalculateLayoutInputVertical() overload
Sourcefn get_min_width(self) -> f32
fn get_min_width(self) -> f32
get_minWidth() overload
Sourcefn get_preferred_width(self) -> f32
fn get_preferred_width(self) -> f32
get_preferredWidth() overload
Sourcefn get_flexible_width(self) -> f32
fn get_flexible_width(self) -> f32
get_flexibleWidth() overload
Sourcefn get_min_height(self) -> f32
fn get_min_height(self) -> f32
get_minHeight() overload
Sourcefn get_preferred_height(self) -> f32
fn get_preferred_height(self) -> f32
get_preferredHeight() overload
Sourcefn get_flexible_height(self) -> f32
fn get_flexible_height(self) -> f32
get_flexibleHeight() overload
Sourcefn get_layout_priority(self) -> i32
fn get_layout_priority(self) -> i32
get_layoutPriority() overload
Sourcefn set_layout_horizontal(self)
fn set_layout_horizontal(self)
SetLayoutHorizontal() overload
Sourcefn set_layout_vertical(self)
fn set_layout_vertical(self)
SetLayoutVertical() overload
Sourcefn update_scrollbar_visibility(self)
fn update_scrollbar_visibility(self)
UpdateScrollbarVisibility() overload
Sourcefn update_scrollbar_layout(self)
fn update_scrollbar_layout(self)
UpdateScrollbarLayout() overload
Sourcefn update_bounds(self)
fn update_bounds(self)
UpdateBounds() overload
Sourcefn get_bounds(self) -> Bounds
fn get_bounds(self) -> Bounds
GetBounds() overload
Sourcefn calculate_offset(self, delta: impl Into<Vector2>) -> Vector2
fn calculate_offset(self, delta: impl Into<Vector2>) -> Vector2
CalculateOffset(crate::unity_engine::vector2::Vector2) overload
Sourcefn set_dirty_caching(self)
fn set_dirty_caching(self)
SetDirtyCaching() overload
Sourcefn unity_engine_ui_i_canvas_element_get_transform(self) -> Transform
fn unity_engine_ui_i_canvas_element_get_transform(self) -> Transform
UnityEngine.UI.ICanvasElement.get_transform() overload
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§
impl<__T: IScrollRect> IScrollRectMethods for __T
unity_engine-ui-scrollrect only.