pub struct IconEngineHook(/* private fields */);
Expand description

These enum values are used for virtual_hook() to allow additional queries to icon engine without breaking binary compatibility.

C++ enum: QIconEngine::IconEngineHook.

C++ documentation:

These enum values are used for virtual_hook() to allow additional queries to icon engine without breaking binary compatibility.

This enum was introduced or modified in Qt 4.5.

See also virtual_hook().

Implementations§

source§

impl IconEngineHook

source

pub fn to_int(&self) -> c_int

source§

impl IconEngineHook

source

pub const AvailableSizesHook: IconEngineHook = _

Allows to query the sizes of the contained pixmaps for pixmap-based engines. The data argument of the virtual_hook() function is a AvailableSizesArgument pointer that should be filled with icon sizes. Engines that work in terms of a scalable, vectorial format normally return an empty list. (C++ enum variant: AvailableSizesHook = 1)

source

pub const IconNameHook: IconEngineHook = _

Allows to query the name used to create the icon, for example when instantiating an icon using QIcon::fromTheme(). (C++ enum variant: IconNameHook = 2)

source

pub const IsNullHook: IconEngineHook = _

Allow to query if this engine represents a null icon. The data argument of the virtual_hook() is a pointer to a bool that can be set to true if the icon is null. This enum value was added in Qt 5.7. (C++ enum variant: IsNullHook = 3)

source

pub const ScaledPixmapHook: IconEngineHook = _

Provides a way to get a pixmap that is scaled according to the given scale (typically equal to the device pixel ratio). The data argument of the virtual_hook() function is a ScaledPixmapArgument pointer that contains both the input and output arguments. This enum value was added in Qt 5.9. (C++ enum variant: ScaledPixmapHook = 4)

Trait Implementations§

source§

impl Clone for IconEngineHook

source§

fn clone(&self) -> IconEngineHook

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for IconEngineHook

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<IconEngineHook> for c_int

source§

fn from(value: IconEngineHook) -> Self

Converts to this type from the input type.
source§

impl From<i32> for IconEngineHook

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for IconEngineHook

source§

fn eq(&self, other: &IconEngineHook) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for IconEngineHook

source§

impl Eq for IconEngineHook

source§

impl StructuralEq for IconEngineHook

source§

impl StructuralPartialEq for IconEngineHook

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.