pub struct Font(pub ShareId<Object>);
Expand description

A Font can be constructed and applied to supported controls to control things like text appearance and size.

Tuple Fields

0: ShareId<Object>

Implementations

Creates and returns a default system font at the specified size.

Creates and returns a default bold system font at the specified size.

Methods from Deref<Target = Object>

Returns the class of self.

Returns a reference to the ivar of self with the given name. Panics if self has no ivar with the given name. Unsafe because the caller must ensure that the ivar is actually of type T.

Trait Implementations

Provided to make passing Font types around less of a headache.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the default labelFont on macOS.

Derefs to the underlying Objective-C Object.

The resulting type after dereferencing.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.