FrameSvgItem QML Type
An SVG Item with borders. More...
- Import Statement: import org.kde.ksvg
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.
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.
minimumDrawingHeight : int
This property holds the minimum height required to correctly draw this SVG.
minimumDrawingWidth : int
This property holds the minimum width required to correctly draw this SVG.
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
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.
See also Kirigami::PlatformTheme, KSvg::Svg::status
usedPrefix : string
This property holds the actual prefix that was used, if a fallback chain array was set as "prefix".
Method Documentation
bool hasElement(string elementName)
Returns whether the SVG includes the given element.
This is a convenience function that forwards to hasElement().
See also KSvg::Svg::hasElement()
bool hasElementPrefix(string prefix)
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