[][src]Trait uikit_sys::IUIFontMetrics

pub trait IUIFontMetrics: Sized + Deref {
    unsafe fn init(self) -> instancetype
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn initForTextStyle_(self, textStyle: NSString) -> instancetype
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn scaledFontForFont_(self, font: UIFont) -> UIFont
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn scaledFontForFont_maximumPointSize_(
        self,
        font: UIFont,
        maximumPointSize: CGFloat
    ) -> UIFont
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn scaledFontForFont_compatibleWithTraitCollection_(
        self,
        font: UIFont,
        traitCollection: UITraitCollection
    ) -> UIFont
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn scaledFontForFont_maximumPointSize_compatibleWithTraitCollection_(
        self,
        font: UIFont,
        maximumPointSize: CGFloat,
        traitCollection: UITraitCollection
    ) -> UIFont
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn scaledValueForValue_(self, value: CGFloat) -> CGFloat
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn scaledValueForValue_compatibleWithTraitCollection_(
        self,
        value: CGFloat,
        traitCollection: UITraitCollection
    ) -> CGFloat
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn metricsForTextStyle_(textStyle: NSString) -> instancetype
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn defaultMetrics() -> UIFontMetrics
    where
        Self::Target: Message + Sized
, { ... } }

Provided methods

unsafe fn init(self) -> instancetype where
    Self::Target: Message + Sized

unsafe fn initForTextStyle_(self, textStyle: NSString) -> instancetype where
    Self::Target: Message + Sized

unsafe fn scaledFontForFont_(self, font: UIFont) -> UIFont where
    Self::Target: Message + Sized

unsafe fn scaledFontForFont_maximumPointSize_(
    self,
    font: UIFont,
    maximumPointSize: CGFloat
) -> UIFont where
    Self::Target: Message + Sized

unsafe fn scaledFontForFont_compatibleWithTraitCollection_(
    self,
    font: UIFont,
    traitCollection: UITraitCollection
) -> UIFont where
    Self::Target: Message + Sized

unsafe fn scaledFontForFont_maximumPointSize_compatibleWithTraitCollection_(
    self,
    font: UIFont,
    maximumPointSize: CGFloat,
    traitCollection: UITraitCollection
) -> UIFont where
    Self::Target: Message + Sized

unsafe fn scaledValueForValue_(self, value: CGFloat) -> CGFloat where
    Self::Target: Message + Sized

unsafe fn scaledValueForValue_compatibleWithTraitCollection_(
    self,
    value: CGFloat,
    traitCollection: UITraitCollection
) -> CGFloat where
    Self::Target: Message + Sized

unsafe fn metricsForTextStyle_(textStyle: NSString) -> instancetype where
    Self::Target: Message + Sized

unsafe fn defaultMetrics() -> UIFontMetrics where
    Self::Target: Message + Sized

Loading content...

Implementors

impl IUIFontMetrics for UIFontMetrics[src]

Loading content...