[]Struct jni_android_sys::android::graphics::drawable::LayerDrawable

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

public class LayerDrawable

Required feature: android-graphics-drawable-LayerDrawable

Methods

impl LayerDrawable

pub fn inflate<'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]

inflate

Required features: "android-content-res-Resources", "android-content-res-Resources_Theme", "android-util-AttributeSet", "org-xmlpull-v1-XmlPullParser"

pub fn apply_theme<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Resources_Theme>>
) -> Result<()>
[src]

applyTheme

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

pub fn can_apply_theme<'env>(&'env self) -> Result<bool>[src]

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

addLayer

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

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

findDrawableByLayerId

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

pub fn set_id<'env>(&'env self, arg0: i32, arg1: i32) -> Result<()>[src]

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

pub fn get_number_of_layers<'env>(&'env self) -> Result<i32>[src]

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

setDrawableByLayerId

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

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

pub fn set_drawable<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Drawable>>
) -> Result<()>
[src]

setDrawable

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

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

getDrawable

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

pub fn set_layer_size<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32
) -> Result<()>
[src]

pub fn set_layer_width<'env>(&'env self, arg0: i32, arg1: i32) -> Result<()>[src]

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

pub fn set_layer_height<'env>(&'env self, arg0: i32, arg1: i32) -> Result<()>[src]

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

pub fn set_layer_gravity<'env>(&'env self, arg0: i32, arg1: i32) -> Result<()>[src]

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

pub fn set_layer_inset<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32
) -> Result<()>
[src]

pub fn set_layer_inset_relative<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32
) -> Result<()>
[src]

pub fn set_layer_inset_left<'env>(
    &'env self,
    arg0: i32,
    arg1: i32
) -> Result<()>
[src]

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

pub fn set_layer_inset_right<'env>(
    &'env self,
    arg0: i32,
    arg1: i32
) -> Result<()>
[src]

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

pub fn set_layer_inset_top<'env>(&'env self, arg0: i32, arg1: i32) -> Result<()>[src]

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

pub fn set_layer_inset_bottom<'env>(
    &'env self,
    arg0: i32,
    arg1: i32
) -> Result<()>
[src]

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

pub fn set_layer_inset_start<'env>(
    &'env self,
    arg0: i32,
    arg1: i32
) -> Result<()>
[src]

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

pub fn set_layer_inset_end<'env>(&'env self, arg0: i32, arg1: i32) -> Result<()>[src]

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

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

pub fn get_padding_mode<'env>(&'env self) -> Result<i32>[src]

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

invalidateDrawable

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

pub fn schedule_drawable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Drawable>>,
    arg1: impl Into<Option<&'env Runnable>>,
    arg2: i64
) -> Result<()>
[src]

scheduleDrawable

Required features: "android-graphics-drawable-Drawable", "java-lang-Runnable"

pub fn unschedule_drawable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Drawable>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<()>
[src]

unscheduleDrawable

Required features: "android-graphics-drawable-Drawable", "java-lang-Runnable"

pub fn draw<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Canvas>>
) -> Result<()>
[src]

draw

Required features: "android-graphics-Canvas"

pub fn get_changing_configurations<'env>(&'env self) -> Result<i32>[src]

pub fn get_padding<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Rect>>
) -> Result<bool>
[src]

getPadding

Required features: "android-graphics-Rect"

pub fn set_padding<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<()>
[src]

pub fn set_padding_relative<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<()>
[src]

pub fn get_left_padding<'env>(&'env self) -> Result<i32>[src]

pub fn get_right_padding<'env>(&'env self) -> Result<i32>[src]

pub fn get_start_padding<'env>(&'env self) -> Result<i32>[src]

pub fn get_end_padding<'env>(&'env self) -> Result<i32>[src]

pub fn get_top_padding<'env>(&'env self) -> Result<i32>[src]

pub fn get_bottom_padding<'env>(&'env self) -> Result<i32>[src]

pub fn get_outline<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Outline>>
) -> Result<()>
[src]

getOutline

Required features: "android-graphics-Outline"

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]

pub fn get_hotspot_bounds<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Rect>>
) -> Result<()>
[src]

getHotspotBounds

Required features: "android-graphics-Rect"

pub fn set_visible<'env>(&'env self, arg0: bool, arg1: bool) -> Result<bool>[src]

pub fn set_dither<'env>(&'env self, arg0: bool) -> Result<()>[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<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ColorFilter>>
) -> Result<()>
[src]

setColorFilter

Required features: "android-graphics-ColorFilter"

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

setTintList

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

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

setTintMode

Required features: "android-graphics-PorterDuff_Mode"

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

pub fn get_opacity<'env>(&'env self) -> Result<i32>[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 jump_to_current_state<'env>(&'env self) -> Result<()>[src]

pub fn is_stateful<'env>(&'env self) -> Result<bool>[src]

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_constant_state<'env>(
    &'env self
) -> Result<Option<Local<'env, Drawable_ConstantState>>>
[src]

getConstantState

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

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

mutate

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

pub fn on_layout_direction_changed<'env>(&'env self, arg0: i32) -> Result<bool>[src]

pub const INSET_UNDEFINED: i32[src]

public static final INSET_UNDEFINED

pub const PADDING_MODE_NEST: i32[src]

public static final PADDING_MODE_NEST

pub const PADDING_MODE_STACK: i32[src]

public static final PADDING_MODE_STACK

Methods from Deref<Target = Drawable>

pub fn draw<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Canvas>>
) -> Result<()>
[src]

draw

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]

pub fn set_bounds_rect<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Rect>>
) -> Result<()>
[src]

setBounds

Required features: "android-graphics-Rect"

pub fn copy_bounds_rect<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Rect>>
) -> Result<()>
[src]

copyBounds

Required features: "android-graphics-Rect"

pub fn copy_bounds<'env>(&'env self) -> Result<Option<Local<'env, Rect>>>[src]

copyBounds

Required features: "android-graphics-Rect"

pub fn get_bounds<'env>(&'env self) -> Result<Option<Local<'env, Rect>>>[src]

getBounds

Required features: "android-graphics-Rect"

pub fn get_dirty_bounds<'env>(&'env self) -> Result<Option<Local<'env, Rect>>>[src]

getDirtyBounds

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]

Deprecated

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]

setCallback

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

pub fn get_callback<'env>(
    &'env self
) -> Result<Option<Local<'env, Drawable_Callback>>>
[src]

getCallback

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]

scheduleSelf

Required features: "java-lang-Runnable"

pub fn unschedule_self<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Runnable>>
) -> Result<()>
[src]

unscheduleSelf

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]

setColorFilter

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]

setColorFilter

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]

setTintList

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

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

setTintMode

Required features: "android-graphics-PorterDuff_Mode"

pub fn get_color_filter<'env>(
    &'env self
) -> Result<Option<Local<'env, ColorFilter>>>
[src]

getColorFilter

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]

pub fn get_hotspot_bounds<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Rect>>
) -> Result<()>
[src]

getHotspotBounds

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]

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]

getCurrent

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]

applyTheme

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 get_transparent_region<'env>(
    &'env self
) -> Result<Option<Local<'env, Region>>>
[src]

getTransparentRegion

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]

getPadding

Required features: "android-graphics-Rect"

pub fn get_outline<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Outline>>
) -> Result<()>
[src]

getOutline

Required features: "android-graphics-Outline"

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

mutate

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

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]

inflate

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]

inflate

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]

getConstantState

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

Trait Implementations

impl AsRef<Drawable_Callback> for LayerDrawable

impl Deref for LayerDrawable

type Target = Drawable

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for LayerDrawable

impl AsJValue for LayerDrawable

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

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

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

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