Method |
Description |
|
AlphaMask ( ) : QPixmap |
|
|
CacheAllRenderedFrames ( ) : bool |
|
|
ClearCache ( ) : void |
Deletes the internal cache freeing memory: use this if you want to switch the rendered element and you don't plan to switch back to the previous one for a long time and you used setUseCache(true) |
|
ContentsRect ( ) : Qyoto.QRectF |
|
|
Dispose ( ) : void |
|
|
FramePixmap ( ) : QPixmap |
Returns a pixmap of the SVG represented by this object. @arg elelementId the ID string of the element to render, or an empty string for the whole SVG (the default) |
|
FrameSize ( ) : QSizeF |
|
|
FrameSvg ( ) : System |
|
|
FrameSvg ( QObject parent ) : System |
Constructs a new FrameSvg that paints the proper named subelements as borders. It may also be used as a regular Plasma.Svg object for direct access to elements in the Svg. @arg parent options QObject to parent this to @related Plasma.Theme |
|
GetMargins ( double &left, double &top, double &right, double &bottom ) : void |
Convenience method that extracts the size of the four margins in the four output parameters @arg left left margin size @arg top top margin size @arg right right margin size @arg bottom bottom margin size |
|
HasElementPrefix ( Plasma location ) : bool |
This is an overloaded method provided for convenience equivalent to hasElementPrefix("north"), hasElementPrefix("south") hasElementPrefix("west") and hasElementPrefix("east") |
|
HasElementPrefix ( string prefix ) : bool |
|
|
MarginSize ( Plasma edge ) : double |
Returns the margin size given the margin edge we want @arg edge the margin edge we want, top, bottom, left or right |
|
Mask ( ) : QRegion |
Returns a mask that tightly contains the fully opaque areas of the svg |
|
PaintFrame ( QPainter painter ) : void |
|
|
PaintFrame ( QPainter painter, QPointF pos ) : void |
Paints the loaded SVG with the elements that represents the border This is an overloaded member provided for convenience @arg painter the QPainter to use @arg pos where to paint the svg |
|
PaintFrame ( QPainter painter, QRectF target ) : void |
|
|
PaintFrame ( QPainter painter, QRectF target, QRectF source ) : void |
Paints the loaded SVG with the elements that represents the border @arg painter the QPainter to use @arg target the target rectangle on the paint device @arg source the portion rectangle of the source image |
|
Prefix ( ) : string |
Returns the prefix for SVG elements of the FrameSvg |
|
ResizeFrame ( QSizeF size ) : void |
Resize the frame maintaining the same border size @arg size the new size of the frame |
|
SetCacheAllRenderedFrames ( bool cache ) : void |
Sets whether saving all the rendered prefixes in a cache or not @arg cache if use the cache or not |
|
SetElementPrefix ( Plasma location ) : void |
Sets the prefix (@see setElementPrefix) to 'north', 'south', 'west' and 'east' when the location is TopEdge, BottomEdge, LeftEdge and RightEdge, respectively. Clears the prefix in other cases. @arg location location |
|
SetElementPrefix ( string prefix ) : void |
Sets the prefix for the SVG elements to be used for painting. For example, if prefix is 'active', then instead of using the 'top' element of the SVG file to paint the top border, 'active-top' element will be used. The same goes for other SVG elements. If the elements with prefixes are not present, the default ones are used. (for the sake of speed, the test is present only for the 'center' element) Setting the prefix manually resets the location to Floating. If the @arg prefix prefix for the SVG element names |
|
SetImagePath ( string path ) : void |
Loads a new Svg @arg imagePath the new file |
|