ShadowedImage

Search for usage in LXR

ShadowedImage Class Reference

Properties

alias asynchronous
 
alias border
 
alias color
 
alias corners
 
alias fillMode
 
alias mipmap
 
alias radius
 
alias shadow
 
alias source
 
alias sourceSize
 
alias status
 

Detailed Description

An image with a shadow.

This item will render a image, with a shadow below it. The rendering is done using distance fields, which provide greatly improved performance. The shadow is rendered outside of the item's bounds, so the item's width and height are the don't include the shadow.

Example usage:

import org.kde.kirigami
ShadowedImage {
source: 'qrc:/myKoolGearPicture.png'
radius: 20
shadow.size: 20
shadow.xOffset: 5
shadow.yOffset: 5
border.width: 2
border.color: Kirigami.Theme.textColor
corners.topLeftRadius: 4
corners.topRightRadius: 5
corners.bottomLeftRadius: 2
corners.bottomRightRadius: 10
}
Since
5.69
2.12

Definition at line 44 of file ShadowedImage.qml.

Property Documentation

◆ asynchronous

alias ShadowedImage::asynchronous
read

This property sets whether this image should be loaded asynchronously.

Set this to false if you want the main thread to load the image, which blocks it until the image is loaded. Setting this to true loads the image in a separate thread which is useful when maintaining a responsive user interface is more desirable than having images immediately visible.

See also
QtQuick.Image::asynchronous

Definition at line 96 of file ShadowedImage.qml.

◆ border

alias ShadowedImage::border
read

This propery holds the border's properties of the image.

See also
org::kde::kirigami::ShadowedRectangle::border

Definition at line 73 of file ShadowedImage.qml.

◆ color

alias ShadowedImage::color
read

This property holds the color that will be underneath the image.

This will be visible if the image has transparancy.

See also
org::kde::kirigami::ShadowedRectangle::radius

Definition at line 55 of file ShadowedImage.qml.

◆ corners

alias ShadowedImage::corners
read

This propery holds the corner radius properties of the image.

See also
org::kde::kirigami::ShadowedRectangle::corners

Definition at line 79 of file ShadowedImage.qml.

◆ fillMode

alias ShadowedImage::fillMode
read

This property defines what happens when the source image has a different size than the item.

See also
QtQuick.Image::fillMode

Definition at line 103 of file ShadowedImage.qml.

◆ mipmap

alias ShadowedImage::mipmap
read

This property holds whether the image uses mipmap filtering when scaled or transformed.

See also
QtQuick.Image::mipmap

Definition at line 110 of file ShadowedImage.qml.

◆ radius

alias ShadowedImage::radius
read

This propery holds the corner radius of the image.

See also
org::kde::kirigami::ShadowedRectangle::radius

Definition at line 61 of file ShadowedImage.qml.

◆ shadow

alias ShadowedImage::shadow
read

This property holds shadow's properties group.

See also
org::kde::kirigami::ShadowedRectangle::shadow

Definition at line 67 of file ShadowedImage.qml.

◆ source

alias ShadowedImage::source
read

This propery holds the source of the image.

QtQuick.Image::source

Definition at line 84 of file ShadowedImage.qml.

◆ sourceSize

alias ShadowedImage::sourceSize
read

This property holds the scaled width and height of the full-frame image.

See also
QtQuick.Image::sourceSize

Definition at line 115 of file ShadowedImage.qml.

◆ status

alias ShadowedImage::status
read

This property holds the status of image loading.

See also
QtQuick.Image::status
Since
6.5
Remarks
This property is read-only

Definition at line 122 of file ShadowedImage.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:51:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.