[]Struct jni_android_sys::android::widget::RatingBar

#[repr(transparent)]
pub struct RatingBar(_);

public class RatingBar

Required feature: "android-widget-RatingBar"

Methods

impl RatingBar

pub fn new_Context_AttributeSet_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env AttributeSet>>,
    arg2: i32
) -> Result<Local<'env, RatingBar>, Local<'env, Throwable>>
[src]

RatingBar

Required features: "android-content-Context", "android-util-AttributeSet"

pub fn new_Context_AttributeSet_int_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env AttributeSet>>,
    arg2: i32,
    arg3: i32
) -> Result<Local<'env, RatingBar>, Local<'env, Throwable>>
[src]

RatingBar

Required features: "android-content-Context", "android-util-AttributeSet"

pub fn new_Context_AttributeSet<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env AttributeSet>>
) -> Result<Local<'env, RatingBar>, Local<'env, Throwable>>
[src]

RatingBar

Required features: "android-content-Context", "android-util-AttributeSet"

pub fn new_Context<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, RatingBar>, Local<'env, Throwable>>
[src]

RatingBar

Required features: "android-content-Context"

pub fn setOnRatingBarChangeListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env RatingBar_OnRatingBarChangeListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

setOnRatingBarChangeListener

Required features: "android-widget-RatingBar_OnRatingBarChangeListener"

pub fn getOnRatingBarChangeListener<'env>(
    &'env self
) -> Result<Option<Local<'env, RatingBar_OnRatingBarChangeListener>>, Local<'env, Throwable>>
[src]

getOnRatingBarChangeListener

Required features: "android-widget-RatingBar_OnRatingBarChangeListener"

pub fn setIsIndicator<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isIndicator<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setNumStars<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getNumStars<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setRating<'env>(
    &'env self,
    arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getRating<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn setStepSize<'env>(
    &'env self,
    arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getStepSize<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn setMax<'env>(&'env self, arg0: i32) -> Result<(), Local<'env, Throwable>>[src]

pub fn getAccessibilityClassName<'env>(
    &'env self
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]

getAccessibilityClassName

Required features: "java-lang-CharSequence"

Methods from Deref<Target = AbsSeekBar>

pub fn setThumb<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Drawable>>
) -> Result<(), Local<'env, Throwable>>
[src]

setThumb

Required features: "android-graphics-drawable-Drawable"

pub fn getThumb<'env>(
    &'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]

getThumb

Required features: "android-graphics-drawable-Drawable"

pub fn setThumbTintList<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ColorStateList>>
) -> Result<(), Local<'env, Throwable>>
[src]

setThumbTintList

Required features: "android-content-res-ColorStateList"

pub fn getThumbTintList<'env>(
    &'env self
) -> Result<Option<Local<'env, ColorStateList>>, Local<'env, Throwable>>
[src]

getThumbTintList

Required features: "android-content-res-ColorStateList"

pub fn setThumbTintMode<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<(), Local<'env, Throwable>>
[src]

setThumbTintMode

Required features: "android-graphics-PorterDuff_Mode"

pub fn getThumbTintMode<'env>(
    &'env self
) -> Result<Option<Local<'env, PorterDuff_Mode>>, Local<'env, Throwable>>
[src]

getThumbTintMode

Required features: "android-graphics-PorterDuff_Mode"

pub fn getThumbOffset<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setThumbOffset<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setSplitTrack<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getSplitTrack<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setTickMark<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Drawable>>
) -> Result<(), Local<'env, Throwable>>
[src]

setTickMark

Required features: "android-graphics-drawable-Drawable"

pub fn getTickMark<'env>(
    &'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]

getTickMark

Required features: "android-graphics-drawable-Drawable"

pub fn setTickMarkTintList<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ColorStateList>>
) -> Result<(), Local<'env, Throwable>>
[src]

setTickMarkTintList

Required features: "android-content-res-ColorStateList"

pub fn getTickMarkTintList<'env>(
    &'env self
) -> Result<Option<Local<'env, ColorStateList>>, Local<'env, Throwable>>
[src]

getTickMarkTintList

Required features: "android-content-res-ColorStateList"

pub fn setTickMarkTintMode<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<(), Local<'env, Throwable>>
[src]

setTickMarkTintMode

Required features: "android-graphics-PorterDuff_Mode"

pub fn getTickMarkTintMode<'env>(
    &'env self
) -> Result<Option<Local<'env, PorterDuff_Mode>>, Local<'env, Throwable>>
[src]

getTickMarkTintMode

Required features: "android-graphics-PorterDuff_Mode"

pub fn setKeyProgressIncrement<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getKeyProgressIncrement<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setMin<'env>(&'env self, arg0: i32) -> Result<(), Local<'env, Throwable>>[src]

pub fn setMax<'env>(&'env self, arg0: i32) -> Result<(), Local<'env, Throwable>>[src]

pub fn jumpDrawablesToCurrentState<'env>(
    &'env self
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn drawableHotspotChanged<'env>(
    &'env self,
    arg0: f32,
    arg1: f32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn onTouchEvent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool, Local<'env, Throwable>>
[src]

onTouchEvent

Required features: "android-view-MotionEvent"

pub fn onKeyDown<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool, Local<'env, Throwable>>
[src]

onKeyDown

Required features: "android-view-KeyEvent"

pub fn getAccessibilityClassName<'env>(
    &'env self
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]

getAccessibilityClassName

Required features: "java-lang-CharSequence"

pub fn onRtlPropertiesChanged<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

Trait Implementations

impl AsJValue for RatingBar

impl AsValidJObjectAndEnv for RatingBar

impl Deref for RatingBar

type Target = AbsSeekBar

The resulting type after dereferencing.

impl JniType for RatingBar

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.