Skip to main content

SwiperIndicator

Struct SwiperIndicator 

Source
pub struct SwiperIndicator { /* private fields */ }
Expand description

Swiper indicator option wrapper.

Implementations§

Source§

impl SwiperIndicator

Source

pub fn new(type_: SwiperIndicatorType) -> ArkUIResult<Self>

Source

pub fn dispose(self)

Source

pub fn set_start_position(&mut self, value: f32)

Source

pub fn get_start_position(&self) -> f32

Source

pub fn set_top_position(&mut self, value: f32)

Source

pub fn get_top_position(&self) -> f32

Source

pub fn set_end_position(&mut self, value: f32)

Source

pub fn get_end_position(&self) -> f32

Source

pub fn set_bottom_position(&mut self, value: f32)

Source

pub fn get_bottom_position(&self) -> f32

Source

pub fn set_item_width(&mut self, value: f32)

Source

pub fn get_item_width(&self) -> f32

Source

pub fn set_item_height(&mut self, value: f32)

Source

pub fn get_item_height(&self) -> f32

Source

pub fn set_selected_item_width(&mut self, value: f32)

Source

pub fn get_selected_item_width(&self) -> f32

Source

pub fn set_selected_item_height(&mut self, value: f32)

Source

pub fn get_selected_item_height(&self) -> f32

Source

pub fn set_mask(&mut self, mask: i32)

Source

pub fn get_mask(&self) -> i32

Source

pub fn set_color(&mut self, color: u32)

Source

pub fn get_color(&self) -> u32

Source

pub fn set_selected_color(&mut self, color: u32)

Source

pub fn get_selected_color(&self) -> u32

Source

pub fn set_max_display_count( &mut self, max_display_count: i32, ) -> ArkUIResult<()>

Source

pub fn get_max_display_count(&self) -> i32

Trait Implementations§

Source§

impl From<&SwiperIndicator> for ArkUINodeAttributeItem

Source§

fn from(value: &SwiperIndicator) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.