[]Struct jni_android_sys::android::util::TypedValue

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

public class TypedValue

Required feature: "android-util-TypedValue"

Methods

impl TypedValue

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, TypedValue>, Local<'env, Throwable>>
[src]

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

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

pub fn complexToDimension<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: impl Into<Option<&'env DisplayMetrics>>
) -> Result<f32, Local<'env, Throwable>>
[src]

complexToDimension

Required features: "android-util-DisplayMetrics"

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

complexToDimensionPixelOffset

Required features: "android-util-DisplayMetrics"

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

complexToDimensionPixelSize

Required features: "android-util-DisplayMetrics"

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

pub fn applyDimension<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: f32,
    arg2: impl Into<Option<&'env DisplayMetrics>>
) -> Result<f32, Local<'env, Throwable>>
[src]

applyDimension

Required features: "android-util-DisplayMetrics"

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

getDimension

Required features: "android-util-DisplayMetrics"

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

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

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

coerceToString

Required features: "java-lang-CharSequence"

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

coerceToString

Required features: "java-lang-String"

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

setTo

Required features: "android-util-TypedValue"

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

toString

Required features: "java-lang-String"

pub const COMPLEX_MANTISSA_MASK: i32[src]

public static final COMPLEX_MANTISSA_MASK

pub const COMPLEX_MANTISSA_SHIFT: i32[src]

public static final COMPLEX_MANTISSA_SHIFT

pub const COMPLEX_RADIX_0p23: i32[src]

public static final COMPLEX_RADIX_0p23

pub const COMPLEX_RADIX_16p7: i32[src]

public static final COMPLEX_RADIX_16p7

pub const COMPLEX_RADIX_23p0: i32[src]

public static final COMPLEX_RADIX_23p0

pub const COMPLEX_RADIX_8p15: i32[src]

public static final COMPLEX_RADIX_8p15

pub const COMPLEX_RADIX_MASK: i32[src]

public static final COMPLEX_RADIX_MASK

pub const COMPLEX_RADIX_SHIFT: i32[src]

public static final COMPLEX_RADIX_SHIFT

pub const COMPLEX_UNIT_DIP: i32[src]

public static final COMPLEX_UNIT_DIP

pub const COMPLEX_UNIT_FRACTION: i32[src]

public static final COMPLEX_UNIT_FRACTION

pub const COMPLEX_UNIT_FRACTION_PARENT: i32[src]

public static final COMPLEX_UNIT_FRACTION_PARENT

pub const COMPLEX_UNIT_IN: i32[src]

public static final COMPLEX_UNIT_IN

pub const COMPLEX_UNIT_MASK: i32[src]

public static final COMPLEX_UNIT_MASK

pub const COMPLEX_UNIT_MM: i32[src]

public static final COMPLEX_UNIT_MM

pub const COMPLEX_UNIT_PT: i32[src]

public static final COMPLEX_UNIT_PT

pub const COMPLEX_UNIT_PX: i32[src]

public static final COMPLEX_UNIT_PX

pub const COMPLEX_UNIT_SHIFT: i32[src]

public static final COMPLEX_UNIT_SHIFT

pub const COMPLEX_UNIT_SP: i32[src]

public static final COMPLEX_UNIT_SP

pub const DATA_NULL_EMPTY: i32[src]

public static final DATA_NULL_EMPTY

pub const DATA_NULL_UNDEFINED: i32[src]

public static final DATA_NULL_UNDEFINED

pub const DENSITY_DEFAULT: i32[src]

public static final DENSITY_DEFAULT

pub const DENSITY_NONE: i32[src]

public static final DENSITY_NONE

pub const TYPE_ATTRIBUTE: i32[src]

public static final TYPE_ATTRIBUTE

pub const TYPE_DIMENSION: i32[src]

public static final TYPE_DIMENSION

pub const TYPE_FIRST_COLOR_INT: i32[src]

public static final TYPE_FIRST_COLOR_INT

pub const TYPE_FIRST_INT: i32[src]

public static final TYPE_FIRST_INT

pub const TYPE_FLOAT: i32[src]

public static final TYPE_FLOAT

pub const TYPE_FRACTION: i32[src]

public static final TYPE_FRACTION

pub const TYPE_INT_BOOLEAN: i32[src]

public static final TYPE_INT_BOOLEAN

pub const TYPE_INT_COLOR_ARGB4: i32[src]

public static final TYPE_INT_COLOR_ARGB4

pub const TYPE_INT_COLOR_ARGB8: i32[src]

public static final TYPE_INT_COLOR_ARGB8

pub const TYPE_INT_COLOR_RGB4: i32[src]

public static final TYPE_INT_COLOR_RGB4

pub const TYPE_INT_COLOR_RGB8: i32[src]

public static final TYPE_INT_COLOR_RGB8

pub const TYPE_INT_DEC: i32[src]

public static final TYPE_INT_DEC

pub const TYPE_INT_HEX: i32[src]

public static final TYPE_INT_HEX

pub const TYPE_LAST_COLOR_INT: i32[src]

public static final TYPE_LAST_COLOR_INT

pub const TYPE_LAST_INT: i32[src]

public static final TYPE_LAST_INT

pub const TYPE_NULL: i32[src]

public static final TYPE_NULL

pub const TYPE_REFERENCE: i32[src]

public static final TYPE_REFERENCE

pub const TYPE_STRING: i32[src]

public static final TYPE_STRING

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

get public assetCookie

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

set public assetCookie

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

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

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

get public data

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

set public data

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

get public density

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

set public density

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

get public resourceId

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

set public resourceId

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

get public string

Required feature: "java-lang-CharSequence"

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

set public string

Required feature: "java-lang-CharSequence"

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

get public type

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

set public type

Methods from Deref<Target = Object>

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

getClass

Required features: "java-lang-Class"

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

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

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

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

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

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

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

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

Trait Implementations

impl AsJValue for TypedValue

impl AsValidJObjectAndEnv for TypedValue

impl Deref for TypedValue

type Target = Object

The resulting type after dereferencing.

impl JniType for TypedValue

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.