[]Struct jni_android_sys::android::view::ViewGroup_MarginLayoutParams

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

public class ViewGroup.MarginLayoutParams

Required feature: "android-view-ViewGroup_MarginLayoutParams"

Methods

impl ViewGroup_MarginLayoutParams

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, ViewGroup_MarginLayoutParams>, Local<'env, Throwable>>
[src]

MarginLayoutParams

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

pub fn new_int_int<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32
) -> Result<Local<'env, ViewGroup_MarginLayoutParams>, Local<'env, Throwable>>
[src]

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

MarginLayoutParams

Required features: "android-view-ViewGroup_MarginLayoutParams"

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

MarginLayoutParams

Required features: "android-view-ViewGroup_LayoutParams"

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

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

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

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

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

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

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

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

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

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

get public bottomMargin

pub fn set_bottomMargin<'env>(&'env self, value: i32)[src]

set public bottomMargin

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

get public leftMargin

pub fn set_leftMargin<'env>(&'env self, value: i32)[src]

set public leftMargin

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

get public rightMargin

pub fn set_rightMargin<'env>(&'env self, value: i32)[src]

set public rightMargin

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

get public topMargin

pub fn set_topMargin<'env>(&'env self, value: i32)[src]

set public topMargin

Methods from Deref<Target = ViewGroup_LayoutParams>

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

pub const FILL_PARENT: i32[src]

pub const MATCH_PARENT: i32[src]

pub const WRAP_CONTENT: i32[src]

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

get public height

pub fn set_height<'env>(&'env self, value: i32)[src]

set public height

pub fn layoutAnimationParameters<'env>(
    &'env self
) -> Option<Local<'env, LayoutAnimationController_AnimationParameters>>
[src]

get public layoutAnimationParameters

Required feature: "android-view-animation-LayoutAnimationController_AnimationParameters"

pub fn set_layoutAnimationParameters<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj LayoutAnimationController_AnimationParameters>>
)
[src]

set public layoutAnimationParameters

Required feature: "android-view-animation-LayoutAnimationController_AnimationParameters"

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

get public width

pub fn set_width<'env>(&'env self, value: i32)[src]

set public width

Trait Implementations

impl AsJValue for ViewGroup_MarginLayoutParams

impl AsValidJObjectAndEnv for ViewGroup_MarginLayoutParams

impl Deref for ViewGroup_MarginLayoutParams

type Target = ViewGroup_LayoutParams

The resulting type after dereferencing.

impl JniType for ViewGroup_MarginLayoutParams

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.