[−]Struct jni_android_sys::android::graphics::drawable::Drawable
public class Drawable
Required feature: android-graphics-drawable-Drawable
Methods
impl Drawable
pub fn new<'env>(__jni_env: &'env Env) -> Result<Local<'env, Drawable>>[src]
pub fn draw<'env>(
&'env self,
arg0: impl Into<Option<&'env Canvas>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Canvas>>
) -> Result<()>
Required features: "android-graphics-Canvas"
pub fn set_bounds_int_int_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<()>
pub fn set_bounds_rect<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<()>
Required features: "android-graphics-Rect"
pub fn copy_bounds_rect<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<()>
Required features: "android-graphics-Rect"
pub fn copy_bounds<'env>(&'env self) -> Result<Option<Local<'env, Rect>>>[src]
Required features: "android-graphics-Rect"
pub fn get_bounds<'env>(&'env self) -> Result<Option<Local<'env, Rect>>>[src]
Required features: "android-graphics-Rect"
pub fn get_dirty_bounds<'env>(&'env self) -> Result<Option<Local<'env, Rect>>>[src]
Required features: "android-graphics-Rect"
pub fn set_changing_configurations<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn get_changing_configurations<'env>(&'env self) -> Result<i32>[src]
pub fn set_dither<'env>(&'env self, arg0: bool) -> Result<()>[src]
pub fn set_filter_bitmap<'env>(&'env self, arg0: bool) -> Result<()>[src]
pub fn is_filter_bitmap<'env>(&'env self) -> Result<bool>[src]
pub fn set_callback<'env>(
&'env self,
arg0: impl Into<Option<&'env Drawable_Callback>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Drawable_Callback>>
) -> Result<()>
Required features: "android-graphics-drawable-Drawable_Callback"
pub fn get_callback<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable_Callback>>>[src]
&'env self
) -> Result<Option<Local<'env, Drawable_Callback>>>
Required features: "android-graphics-drawable-Drawable_Callback"
pub fn invalidate_self<'env>(&'env self) -> Result<()>[src]
pub fn schedule_self<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64
) -> Result<()>
Required features: "java-lang-Runnable"
pub fn unschedule_self<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<()>
Required features: "java-lang-Runnable"
pub fn get_layout_direction<'env>(&'env self) -> Result<i32>[src]
pub fn set_layout_direction<'env>(&'env self, arg0: i32) -> Result<bool>[src]
pub fn on_layout_direction_changed<'env>(&'env self, arg0: i32) -> Result<bool>[src]
pub fn set_alpha<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn get_alpha<'env>(&'env self) -> Result<i32>[src]
pub fn set_color_filter_color_filter<'env>(
&'env self,
arg0: impl Into<Option<&'env ColorFilter>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env ColorFilter>>
) -> Result<()>
Required features: "android-graphics-ColorFilter"
pub fn set_color_filter_int_mode<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<()>
Required features: "android-graphics-PorterDuff_Mode"
pub fn set_tint<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn set_tint_list<'env>(
&'env self,
arg0: impl Into<Option<&'env ColorStateList>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env ColorStateList>>
) -> Result<()>
Required features: "android-content-res-ColorStateList"
pub fn set_tint_mode<'env>(
&'env self,
arg0: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<()>
Required features: "android-graphics-PorterDuff_Mode"
pub fn get_color_filter<'env>(
&'env self
) -> Result<Option<Local<'env, ColorFilter>>>[src]
&'env self
) -> Result<Option<Local<'env, ColorFilter>>>
Required features: "android-graphics-ColorFilter"
pub fn clear_color_filter<'env>(&'env self) -> Result<()>[src]
pub fn set_hotspot<'env>(&'env self, arg0: f32, arg1: f32) -> Result<()>[src]
pub fn set_hotspot_bounds<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<()>
pub fn get_hotspot_bounds<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<()>
Required features: "android-graphics-Rect"
pub fn is_stateful<'env>(&'env self) -> Result<bool>[src]
pub fn set_state<'env>(
&'env self,
arg0: impl Into<Option<&'env IntArray>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env IntArray>>
) -> Result<bool>
setState
pub fn get_state<'env>(&'env self) -> Result<Option<Local<'env, IntArray>>>[src]
pub fn jump_to_current_state<'env>(&'env self) -> Result<()>[src]
pub fn get_current<'env>(&'env self) -> Result<Option<Local<'env, Drawable>>>[src]
Required features: "android-graphics-drawable-Drawable"
pub fn set_level<'env>(&'env self, arg0: i32) -> Result<bool>[src]
pub fn get_level<'env>(&'env self) -> Result<i32>[src]
pub fn set_visible<'env>(&'env self, arg0: bool, arg1: bool) -> Result<bool>[src]
pub fn is_visible<'env>(&'env self) -> Result<bool>[src]
pub fn set_auto_mirrored<'env>(&'env self, arg0: bool) -> Result<()>[src]
pub fn is_auto_mirrored<'env>(&'env self) -> Result<bool>[src]
pub fn apply_theme<'env>(
&'env self,
arg0: impl Into<Option<&'env Resources_Theme>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Resources_Theme>>
) -> Result<()>
Required features: "android-content-res-Resources_Theme"
pub fn can_apply_theme<'env>(&'env self) -> Result<bool>[src]
pub fn get_opacity<'env>(&'env self) -> Result<i32>[src]
pub fn resolve_opacity<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32
) -> Result<i32>[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32
) -> Result<i32>
pub fn get_transparent_region<'env>(
&'env self
) -> Result<Option<Local<'env, Region>>>[src]
&'env self
) -> Result<Option<Local<'env, Region>>>
Required features: "android-graphics-Region"
pub fn get_intrinsic_width<'env>(&'env self) -> Result<i32>[src]
pub fn get_intrinsic_height<'env>(&'env self) -> Result<i32>[src]
pub fn get_minimum_width<'env>(&'env self) -> Result<i32>[src]
pub fn get_minimum_height<'env>(&'env self) -> Result<i32>[src]
pub fn get_padding<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<bool>
Required features: "android-graphics-Rect"
pub fn get_outline<'env>(
&'env self,
arg0: impl Into<Option<&'env Outline>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Outline>>
) -> Result<()>
Required features: "android-graphics-Outline"
pub fn mutate<'env>(&'env self) -> Result<Option<Local<'env, Drawable>>>[src]
Required features: "android-graphics-drawable-Drawable"
pub fn create_from_stream<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env InputStream>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Drawable>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env InputStream>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Drawable>>>
Required features: "android-graphics-drawable-Drawable", "java-io-InputStream", "java-lang-String"
pub fn create_from_resource_stream_resources_typed_value_input_stream_string<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env TypedValue>>,
arg2: impl Into<Option<&'env InputStream>>,
arg3: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Drawable>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env TypedValue>>,
arg2: impl Into<Option<&'env InputStream>>,
arg3: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Drawable>>>
Required features: "android-content-res-Resources", "android-graphics-drawable-Drawable", "android-util-TypedValue", "java-io-InputStream", "java-lang-String"
pub fn create_from_resource_stream_resources_typed_value_input_stream_string_options<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env TypedValue>>,
arg2: impl Into<Option<&'env InputStream>>,
arg3: impl Into<Option<&'env String>>,
arg4: impl Into<Option<&'env BitmapFactory_Options>>
) -> Result<Option<Local<'env, Drawable>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env TypedValue>>,
arg2: impl Into<Option<&'env InputStream>>,
arg3: impl Into<Option<&'env String>>,
arg4: impl Into<Option<&'env BitmapFactory_Options>>
) -> Result<Option<Local<'env, Drawable>>>
Required features: "android-content-res-Resources", "android-graphics-BitmapFactory_Options", "android-graphics-drawable-Drawable", "android-util-TypedValue", "java-io-InputStream", "java-lang-String"
pub fn create_from_xml_resources_xml_pull_parser<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>
) -> Result<Option<Local<'env, Drawable>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>
) -> Result<Option<Local<'env, Drawable>>>
Required features: "android-content-res-Resources", "android-graphics-drawable-Drawable", "org-xmlpull-v1-XmlPullParser"
pub fn create_from_xml_resources_xml_pull_parser_theme<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>,
arg2: impl Into<Option<&'env Resources_Theme>>
) -> Result<Option<Local<'env, Drawable>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>,
arg2: impl Into<Option<&'env Resources_Theme>>
) -> Result<Option<Local<'env, Drawable>>>
Required features: "android-content-res-Resources", "android-content-res-Resources_Theme", "android-graphics-drawable-Drawable", "org-xmlpull-v1-XmlPullParser"
pub fn create_from_xml_inner_resources_xml_pull_parser_attribute_set<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>,
arg2: impl Into<Option<&'env AttributeSet>>
) -> Result<Option<Local<'env, Drawable>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>,
arg2: impl Into<Option<&'env AttributeSet>>
) -> Result<Option<Local<'env, Drawable>>>
Required features: "android-content-res-Resources", "android-graphics-drawable-Drawable", "android-util-AttributeSet", "org-xmlpull-v1-XmlPullParser"
pub fn create_from_xml_inner_resources_xml_pull_parser_attribute_set_theme<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>,
arg2: impl Into<Option<&'env AttributeSet>>,
arg3: impl Into<Option<&'env Resources_Theme>>
) -> Result<Option<Local<'env, Drawable>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>,
arg2: impl Into<Option<&'env AttributeSet>>,
arg3: impl Into<Option<&'env Resources_Theme>>
) -> Result<Option<Local<'env, Drawable>>>
Required features: "android-content-res-Resources", "android-content-res-Resources_Theme", "android-graphics-drawable-Drawable", "android-util-AttributeSet", "org-xmlpull-v1-XmlPullParser"
pub fn create_from_path<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Drawable>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Drawable>>>
Required features: "android-graphics-drawable-Drawable", "java-lang-String"
pub fn inflate_resources_xml_pull_parser_attribute_set<'env>(
&'env self,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>,
arg2: impl Into<Option<&'env AttributeSet>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>,
arg2: impl Into<Option<&'env AttributeSet>>
) -> Result<()>
Required features: "android-content-res-Resources", "android-util-AttributeSet", "org-xmlpull-v1-XmlPullParser"
pub fn inflate_resources_xml_pull_parser_attribute_set_theme<'env>(
&'env self,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>,
arg2: impl Into<Option<&'env AttributeSet>>,
arg3: impl Into<Option<&'env Resources_Theme>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Resources>>,
arg1: impl Into<Option<&'env XmlPullParser>>,
arg2: impl Into<Option<&'env AttributeSet>>,
arg3: impl Into<Option<&'env Resources_Theme>>
) -> Result<()>
Required features: "android-content-res-Resources", "android-content-res-Resources_Theme", "android-util-AttributeSet", "org-xmlpull-v1-XmlPullParser"
pub fn get_constant_state<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable_ConstantState>>>[src]
&'env self
) -> Result<Option<Local<'env, Drawable_ConstantState>>>
Required features: "android-graphics-drawable-Drawable_ConstantState"
Methods from Deref<Target = Object>
pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]
Required features: "java-lang-Class"
pub fn hash_code<'env>(&'env self) -> Result<i32>[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<()>[src]
pub fn notify_all<'env>(&'env self) -> Result<()>[src]
pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]
pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]
pub fn wait<'env>(&'env self) -> Result<()>[src]
Trait Implementations
Auto Trait Implementations
impl !Sync for Drawable
impl Unpin for Drawable
impl !Send for Drawable
impl UnwindSafe for Drawable
impl RefUnwindSafe for Drawable
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,