[][src]Struct qt_widgets::QStyleFactory

#[repr(C)]pub struct QStyleFactory { /* fields omitted */ }

The QStyleFactory class creates QStyle objects.

C++ class: QStyleFactory.

C++ documentation:

The QStyleFactory class creates QStyle objects.

The QStyle class is an abstract base class that encapsulates the look and feel of a GUI. QStyleFactory creates a QStyle object using the create() function and a key identifying the style. The styles are either built-in or dynamically loaded from a style plugin (see QStylePlugin).

The valid keys can be retrieved using the keys() function. Typically they include "windows" and "fusion". Depending on the platform, "windowsxp", "windowsvista" and "macintosh" may be available. Note that keys are case insensitive.

Methods

impl QStyleFactory[src]

pub unsafe fn copy_from(
    &self,
    other: impl CastInto<Ref<QStyleFactory>>
) -> Ref<QStyleFactory>
[src]

The QStyleFactory class creates QStyle objects.

Calls C++ function: QStyleFactory& QStyleFactory::operator=(const QStyleFactory& other).

C++ documentation:

The QStyleFactory class creates QStyle objects.

The QStyle class is an abstract base class that encapsulates the look and feel of a GUI. QStyleFactory creates a QStyle object using the create() function and a key identifying the style. The styles are either built-in or dynamically loaded from a style plugin (see QStylePlugin).

The valid keys can be retrieved using the keys() function. Typically they include "windows" and "fusion". Depending on the platform, "windowsxp", "windowsvista" and "macintosh" may be available. Note that keys are case insensitive.

pub unsafe fn create(arg1: impl CastInto<Ref<QString>>) -> QPtr<QStyle>[src]

Creates and returns a QStyle object that matches the given key, or returns 0 if no matching style is found.

Calls C++ function: static QStyle* QStyleFactory::create(const QString& arg1).

C++ documentation:

Creates and returns a QStyle object that matches the given key, or returns 0 if no matching style is found.

Both built-in styles and styles from style plugins are queried for a matching style.

Note: The keys used are case insensitive.

See also keys().

pub unsafe fn keys() -> CppBox<QStringList>[src]

Returns the list of valid keys, i.e. the keys this factory can create styles for.

Calls C++ function: static QStringList QStyleFactory::keys().

C++ documentation:

Returns the list of valid keys, i.e. the keys this factory can create styles for.

See also create().

pub unsafe fn new() -> CppBox<QStyleFactory>[src]

The QStyleFactory class creates QStyle objects.

Calls C++ function: [constructor] void QStyleFactory::QStyleFactory().

C++ documentation:

The QStyleFactory class creates QStyle objects.

The QStyle class is an abstract base class that encapsulates the look and feel of a GUI. QStyleFactory creates a QStyle object using the create() function and a key identifying the style. The styles are either built-in or dynamically loaded from a style plugin (see QStylePlugin).

The valid keys can be retrieved using the keys() function. Typically they include "windows" and "fusion". Depending on the platform, "windowsxp", "windowsvista" and "macintosh" may be available. Note that keys are case insensitive.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QStyleFactory>>
) -> CppBox<QStyleFactory>
[src]

The QStyleFactory class creates QStyle objects.

Calls C++ function: [constructor] void QStyleFactory::QStyleFactory(const QStyleFactory& other).

C++ documentation:

The QStyleFactory class creates QStyle objects.

The QStyle class is an abstract base class that encapsulates the look and feel of a GUI. QStyleFactory creates a QStyle object using the create() function and a key identifying the style. The styles are either built-in or dynamically loaded from a style plugin (see QStylePlugin).

The valid keys can be retrieved using the keys() function. Typically they include "windows" and "fusion". Depending on the platform, "windowsxp", "windowsvista" and "macintosh" may be available. Note that keys are case insensitive.

Trait Implementations

impl CppDeletable for QStyleFactory[src]

unsafe fn delete(&self)[src]

The QStyleFactory class creates QStyle objects.

Calls C++ function: [destructor] void QStyleFactory::~QStyleFactory().

C++ documentation:

The QStyleFactory class creates QStyle objects.

The QStyle class is an abstract base class that encapsulates the look and feel of a GUI. QStyleFactory creates a QStyle object using the create() function and a key identifying the style. The styles are either built-in or dynamically loaded from a style plugin (see QStylePlugin).

The valid keys can be retrieved using the keys() function. Typically they include "windows" and "fusion". Depending on the platform, "windowsxp", "windowsvista" and "macintosh" may be available. Note that keys are case insensitive.

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, 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.