[][src]Struct qt_widgets::q_font_dialog::FontDialogOption

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

This enum specifies various options that affect the look and feel of a font dialog.

C++ enum: QFontDialog::FontDialogOption.

C++ documentation:

This enum specifies various options that affect the look and feel of a font dialog.

For instance, it allows to specify which type of font should be displayed. If none are specified all fonts available will be listed.

Note that the font filtering options might not be supported on some platforms (e.g. Mac). They are always supported by the non native dialog (used on Windows or Linux).

This enum was introduced or modified in Qt 4.5.

The FontDialogOptions type is a typedef for QFlags<FontDialogOption>. It stores an OR combination of FontDialogOption values.

See also options, setOption(), and testOption().

Methods

impl FontDialogOption[src]

pub fn to_int(&self) -> c_int[src]

impl FontDialogOption[src]

pub const NoButtons: FontDialogOption[src]

Don't display OK and Cancel buttons. (Useful for "live dialogs".) (C++ enum variant: NoButtons = 1)

pub const DontUseNativeDialog: FontDialogOption[src]

Use Qt's standard font dialog on the Mac instead of Apple's native font panel. (C++ enum variant: DontUseNativeDialog = 2)

pub const ScalableFonts: FontDialogOption[src]

Show scalable fonts (C++ enum variant: ScalableFonts = 4)

pub const NonScalableFonts: FontDialogOption[src]

Show non scalable fonts (C++ enum variant: NonScalableFonts = 8)

pub const MonospacedFonts: FontDialogOption[src]

Show monospaced fonts (C++ enum variant: MonospacedFonts = 16)

pub const ProportionalFonts: FontDialogOption[src]

Show proportional fonts (C++ enum variant: ProportionalFonts = 32)

Trait Implementations

impl<T: Into<QFlags<FontDialogOption>>> BitOr<T> for FontDialogOption[src]

type Output = QFlags<FontDialogOption>

The resulting type after applying the | operator.

impl Clone for FontDialogOption[src]

impl Copy for FontDialogOption[src]

impl Debug for FontDialogOption[src]

impl Eq for FontDialogOption[src]

impl From<FontDialogOption> for c_int[src]

impl From<FontDialogOption> for QFlags<FontDialogOption>[src]

impl From<i32> for FontDialogOption[src]

impl PartialEq<FontDialogOption> for FontDialogOption[src]

impl StructuralEq for FontDialogOption[src]

impl StructuralPartialEq for FontDialogOption[src]

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, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.