[]Struct jni_android_sys::android::graphics::Typeface

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

public class Typeface

Required feature: "android-graphics-Typeface"

Methods

impl Typeface

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

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

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

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

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

create

Required features: "android-graphics-Typeface", "java-lang-String"

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

create

Required features: "android-graphics-Typeface"

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

create

Required features: "android-graphics-Typeface"

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

defaultFromStyle

Required features: "android-graphics-Typeface"

pub fn createFromAsset<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env AssetManager>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
[src]

createFromAsset

Required features: "android-content-res-AssetManager", "android-graphics-Typeface", "java-lang-String"

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

createFromFile

Required features: "android-graphics-Typeface", "java-io-File"

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

createFromFile

Required features: "android-graphics-Typeface", "java-lang-String"

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 hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub const BOLD: i32[src]

public static final BOLD

pub const BOLD_ITALIC: i32[src]

public static final BOLD_ITALIC

pub fn DEFAULT<'env>(env: &'env Env) -> Option<Local<'env, Typeface>>[src]

get public static final DEFAULT

Required feature: "android-graphics-Typeface"

pub fn DEFAULT_BOLD<'env>(env: &'env Env) -> Option<Local<'env, Typeface>>[src]

get public static final DEFAULT_BOLD

Required feature: "android-graphics-Typeface"

pub const ITALIC: i32[src]

public static final ITALIC

pub fn MONOSPACE<'env>(env: &'env Env) -> Option<Local<'env, Typeface>>[src]

get public static final MONOSPACE

Required feature: "android-graphics-Typeface"

pub const NORMAL: i32[src]

public static final NORMAL

pub fn SANS_SERIF<'env>(env: &'env Env) -> Option<Local<'env, Typeface>>[src]

get public static final SANS_SERIF

Required feature: "android-graphics-Typeface"

pub fn SERIF<'env>(env: &'env Env) -> Option<Local<'env, Typeface>>[src]

get public static final SERIF

Required feature: "android-graphics-Typeface"

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 Typeface

impl AsValidJObjectAndEnv for Typeface

impl Deref for Typeface

type Target = Object

The resulting type after dereferencing.

impl JniType for Typeface

Auto Trait Implementations

impl RefUnwindSafe for Typeface

impl !Send for Typeface

impl !Sync for Typeface

impl Unpin for Typeface

impl UnwindSafe for Typeface

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.