[−]Struct jni_android_sys::android::widget::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]
__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>>
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]
__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>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env AttributeSet>>
) -> Result<Local<'env, RatingBar>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, RatingBar>, Local<'env, Throwable>>
Required features: "android-content-Context"
pub fn setOnRatingBarChangeListener<'env>(
&'env self,
arg0: impl Into<Option<&'env RatingBar_OnRatingBarChangeListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RatingBar_OnRatingBarChangeListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-widget-RatingBar_OnRatingBarChangeListener"
pub fn getOnRatingBarChangeListener<'env>(
&'env self
) -> Result<Option<Local<'env, RatingBar_OnRatingBarChangeListener>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, RatingBar_OnRatingBarChangeListener>>, Local<'env, Throwable>>
Required features: "android-widget-RatingBar_OnRatingBarChangeListener"
pub fn setIsIndicator<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Drawable>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn getThumb<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn setThumbTintList<'env>(
&'env self,
arg0: impl Into<Option<&'env ColorStateList>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ColorStateList>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-res-ColorStateList"
pub fn getThumbTintList<'env>(
&'env self
) -> Result<Option<Local<'env, ColorStateList>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ColorStateList>>, Local<'env, Throwable>>
Required features: "android-content-res-ColorStateList"
pub fn setThumbTintMode<'env>(
&'env self,
arg0: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-PorterDuff_Mode"
pub fn getThumbTintMode<'env>(
&'env self
) -> Result<Option<Local<'env, PorterDuff_Mode>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, PorterDuff_Mode>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setSplitTrack<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Drawable>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn getTickMark<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn setTickMarkTintList<'env>(
&'env self,
arg0: impl Into<Option<&'env ColorStateList>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ColorStateList>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-res-ColorStateList"
pub fn getTickMarkTintList<'env>(
&'env self
) -> Result<Option<Local<'env, ColorStateList>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ColorStateList>>, Local<'env, Throwable>>
Required features: "android-content-res-ColorStateList"
pub fn setTickMarkTintMode<'env>(
&'env self,
arg0: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-PorterDuff_Mode"
pub fn getTickMarkTintMode<'env>(
&'env self
) -> Result<Option<Local<'env, PorterDuff_Mode>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, PorterDuff_Mode>>, Local<'env, Throwable>>
Required features: "android-graphics-PorterDuff_Mode"
pub fn setKeyProgressIncrement<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getKeyProgressIncrement<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn drawableHotspotChanged<'env>(
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
pub fn onTouchEvent<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-view-KeyEvent"
pub fn getAccessibilityClassName<'env>(
&'env self
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
Required features: "java-lang-CharSequence"
pub fn onRtlPropertiesChanged<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
Trait Implementations
impl AsJValue for RatingBar
impl AsValidJObjectAndEnv for RatingBar
impl Deref for RatingBar
impl JniType for RatingBar
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for RatingBar
impl !Send for RatingBar
impl !Sync for RatingBar
impl Unpin for RatingBar
impl UnwindSafe for RatingBar
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,
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<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.
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>,