[−]Struct jni_android_sys::android::graphics::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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Typeface>>,
arg1: i32
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Typeface>>,
arg1: i32,
arg2: bool
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
Required features: "android-graphics-Typeface"
pub fn defaultFromStyle<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env AssetManager>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env File>>
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
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
impl JniType for Typeface
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
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]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,