Struct qt_gui::q_icon_engine::ScaledPixmapArgument
source · #[repr(C)]pub struct ScaledPixmapArgument { /* private fields */ }
Expand description
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
C++ class: QIconEngine::ScaledPixmapArgument
.
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
The struct provides a way for icons created via QIcon::fromTheme() to return pixmaps that are designed for the current device pixel ratio. The scale for such an icon is specified using the Scale directory key in the appropriate index.theme
file.
Icons created via other approaches will return the same result as a call to pixmap() would, and continue to benefit from Qt's "@nx" high DPI syntax.
Implementations§
source§impl ScaledPixmapArgument
impl ScaledPixmapArgument
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<ScaledPixmapArgument>>
) -> Ref<ScaledPixmapArgument>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<ScaledPixmapArgument>> ) -> Ref<ScaledPixmapArgument>
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
Calls C++ function: QIconEngine::ScaledPixmapArgument& QIconEngine::ScaledPixmapArgument::operator=(const QIconEngine::ScaledPixmapArgument& other)
.
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
The struct provides a way for icons created via QIcon::fromTheme() to return pixmaps that are designed for the current device pixel ratio. The scale for such an icon is specified using the Scale directory key in the appropriate index.theme
file.
Icons created via other approaches will return the same result as a call to pixmap() would, and continue to benefit from Qt's "@nx" high DPI syntax.
sourcepub unsafe fn new() -> CppBox<ScaledPixmapArgument>
pub unsafe fn new() -> CppBox<ScaledPixmapArgument>
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
Calls C++ function: [constructor] void QIconEngine::ScaledPixmapArgument::ScaledPixmapArgument()
.
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
The struct provides a way for icons created via QIcon::fromTheme() to return pixmaps that are designed for the current device pixel ratio. The scale for such an icon is specified using the Scale directory key in the appropriate index.theme
file.
Icons created via other approaches will return the same result as a call to pixmap() would, and continue to benefit from Qt's "@nx" high DPI syntax.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<ScaledPixmapArgument>>
) -> CppBox<ScaledPixmapArgument>
pub unsafe fn new_copy( other: impl CastInto<Ref<ScaledPixmapArgument>> ) -> CppBox<ScaledPixmapArgument>
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
Calls C++ function: [constructor] void QIconEngine::ScaledPixmapArgument::ScaledPixmapArgument(const QIconEngine::ScaledPixmapArgument& other)
.
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
The struct provides a way for icons created via QIcon::fromTheme() to return pixmaps that are designed for the current device pixel ratio. The scale for such an icon is specified using the Scale directory key in the appropriate index.theme
file.
Icons created via other approaches will return the same result as a call to pixmap() would, and continue to benefit from Qt's "@nx" high DPI syntax.
sourcepub unsafe fn pixmap_mut(&self) -> Ref<QPixmap>
pub unsafe fn pixmap_mut(&self) -> Ref<QPixmap>
Returns a mutable reference to the pixmap
field.
sourcepub unsafe fn set_pixmap(&self, value: impl CastInto<Ref<QPixmap>>)
pub unsafe fn set_pixmap(&self, value: impl CastInto<Ref<QPixmap>>)
Sets the value of the pixmap
field.
Trait Implementations§
source§impl CppDeletable for ScaledPixmapArgument
impl CppDeletable for ScaledPixmapArgument
source§unsafe fn delete(&self)
unsafe fn delete(&self)
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
Calls C++ function: [destructor] void QIconEngine::ScaledPixmapArgument::~ScaledPixmapArgument()
.
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
The struct provides a way for icons created via QIcon::fromTheme() to return pixmaps that are designed for the current device pixel ratio. The scale for such an icon is specified using the Scale directory key in the appropriate index.theme
file.
Icons created via other approaches will return the same result as a call to pixmap() would, and continue to benefit from Qt's "@nx" high DPI syntax.