Struct qt_gui::q_icon_engine::IconEngineHook
source · 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
.
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
impl IconEngineHook
sourcepub const AvailableSizesHook: IconEngineHook = _
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
)
sourcepub const IconNameHook: IconEngineHook = _
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
)
sourcepub const IsNullHook: IconEngineHook = _
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
)
sourcepub const ScaledPixmapHook: IconEngineHook = _
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
impl Clone for IconEngineHook
source§fn clone(&self) -> IconEngineHook
fn clone(&self) -> IconEngineHook
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IconEngineHook
impl Debug for IconEngineHook
source§impl From<IconEngineHook> for c_int
impl From<IconEngineHook> for c_int
source§fn from(value: IconEngineHook) -> Self
fn from(value: IconEngineHook) -> Self
source§impl From<i32> for IconEngineHook
impl From<i32> for IconEngineHook
source§impl PartialEq for IconEngineHook
impl PartialEq for IconEngineHook
source§fn eq(&self, other: &IconEngineHook) -> bool
fn eq(&self, other: &IconEngineHook) -> bool
self
and other
values to be equal, and is used
by ==
.