FrameSvgItem QML Type
An SVG Item with borders. More...
Import Statement: | import org.kde.ksvg |
Properties
- enabledBorders : flags<KSvg::FrameSvg::EnabledBorder>
- fixedMargins
- fixedMargins.bottom : qreal
- fixedMargins.horizontal : qreal
- fixedMargins.left : qreal
- fixedMargins.right : qreal
- fixedMargins.top : qreal
- fixedMargins.vertical : qreal
- fromCurrentImageSet : bool
- imagePath : string
- inset
(since 5.77)
- inset.bottom : qreal
(since 5.77)
- inset.horizontal : qreal
(since 5.77)
- inset.left : qreal
(since 5.77)
- inset.right : qreal
(since 5.77)
- inset.top : qreal
(since 5.77)
- inset.vertical : qreal
(since 5.77)
- inset.bottom : qreal
- margins
- margins.bottom : qreal
- margins.horizontal : qreal
- margins.left : qreal
- margins.right : qreal
- margins.top : qreal
- margins.vertical : qreal
- mask : QRegion
(since 5.58)
- minimumDrawingHeight : int
(since 5.101)
- minimumDrawingWidth : int
(since 5.101)
- prefix : variant
(since 5.32))
- status : enum<KSvg::Svg::Status>
(since 5.23)
- usedPrefix : string
(since 5.34)
Methods
- bool hasElement(string elementName)
- bool hasElementPrefix(string prefix)
Detailed Description
Property Documentation
enabledBorders : flags<KSvg::FrameSvg::EnabledBorder> |
This property specifies which borders are shown.
See also KSvg::FrameSvg::EnabledBorder.
fixedMargins group |
---|
fixedMargins.bottom : qreal |
fixedMargins.horizontal : qreal |
fixedMargins.left : qreal |
fixedMargins.right : qreal |
fixedMargins.top : qreal |
fixedMargins.vertical : qreal |
This property holds the fixed margins of the frame which are used regardless of any margins being enabled or not.
fromCurrentImageSet : bool |
This property holds whether the current SVG is present in the currently-used theme and no fallback is involved.
imagePath : string |
This property specifies the relative path of the SVG in the theme.
Example: "widgets/background"
inset group |
---|
inset.bottom : qreal |
inset.horizontal : qreal |
inset.left : qreal |
inset.right : qreal |
inset.top : qreal |
inset.vertical : qreal |
This property holds the frame's inset.
This QML property was introduced in 5.77.
margins group |
---|
margins.bottom : qreal |
margins.horizontal : qreal |
margins.left : qreal |
margins.right : qreal |
margins.top : qreal |
margins.vertical : qreal |
This property holds the frame's margins.
mask : QRegion |
This property holds the mask that contains the SVG's painted areas.
This property was introduced in 5.58.
minimumDrawingHeight : int |
This property holds the minimum height required to correctly draw this SVG.
This property was introduced in 5.101.
minimumDrawingWidth : int |
This property holds the minimum width required to correctly draw this SVG.
This property was introduced in 5.101.
prefix : variant |
This property holds the prefix for the SVG. prefix for the 9-piece SVG, like "pushed" or "normal" for a button. see https://techbase.kde.org/Development/Tutorials/Plasma5/ThemeDetails for a list of paths and prefixes It can also be an array of strings, specifying a fallback chain in case the first element isn't found in the theme, eg ["toolbutton-normal", "normal"] so it's easy to keep backwards compatibility with old themes (Note: fallback chain is supported only
This property was introduced in 5.32).
status : enum<KSvg::Svg::Status> |
This property specifies the SVG's status.
Depending on the specified status, the SVG will use different colors: * Normal: text's color is textColor, and background color is backgroundColor. * Selected: text color becomes highlightedText and background color is changed to highlightColor.
This property was introduced in 5.23.
See also Kirigami::PlatformTheme and KSvg::Svg::status.
usedPrefix : string |
This property holds the actual prefix that was used, if a fallback chain array was set as "prefix".
This property was introduced in 5.34.
Method Documentation
Returns whether the SVG includes the given element.
This is a convenience function that forwards to hasElement().
See also KSvg::Svg::hasElement().
Returns whether the svg has the necessary elements with the given prefix to draw a frame.
prefix the given prefix we want to check if drawable