ShadowedImage

Search for usage in LXR

ShadowedImage Class Reference

Inherits QtQuick::Item, and QtQuick::Item.

Properties

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

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 2.19
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

bool 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

org::kde::kirigami::ShadowedRectangle::BorderGroup 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

color 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

org::kde::kirigami::ShadowedRectangle::CornersGroup 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

int 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

bool 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

real 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

org::kde::kirigami::ShadowedRectangle::ShadowGroup 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.


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 May 3 2024 11:49:34 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.