FrameGraphicsItem Class Reference
from PyKDE4.marble import *
Inherits: Marble.ScreenGraphicsItem → Marble.MarbleGraphicsItem
Namespace: Marble
Detailed Description
Enumerations |
FrameType | { NoFrame, RectFrame, RoundedRectFrame } |
Methods |
| __init__ (self, Marble.MarbleGraphicsItem parent=0) |
QBrush | background (self) |
QPainterPath | backgroundShape (self) |
QBrush | borderBrush (self) |
Qt::PenStyle | borderStyle (self) |
float | borderWidth (self) |
QRectF | contentRect (self) |
QSizeF | contentSize (self) |
Marble.FrameGraphicsItem.FrameType | frame (self) |
float | margin (self) |
float | marginBottom (self) |
float | marginLeft (self) |
float | marginRight (self) |
float | marginTop (self) |
float | padding (self) |
| paint (self, QPainter painter) |
| paintBackground (self, QPainter painter) |
| paintContent (self, QPainter painter) |
QRectF | paintedRect (self) |
| setBackground (self, QBrush background) |
| setBorderBrush (self, QBrush brush) |
| setBorderStyle (self, Qt::PenStyle style) |
| setBorderWidth (self, float width) |
| setContentSize (self, QSizeF size) |
| setFrame (self, Marble.FrameGraphicsItem.FrameType type) |
| setMargin (self, float margin) |
| setMarginBottom (self, float marginBottom) |
| setMarginLeft (self, float marginLeft) |
| setMarginRight (self, float marginRight) |
| setMarginTop (self, float marginTop) |
| setPadding (self, float width) |
Method Documentation
QBrush background |
( |
|
self ) |
|
Returns the background brush of the item.
QPainterPath backgroundShape |
( |
|
self ) |
|
Returns the shape of the background.
QBrush borderBrush |
( |
|
self ) |
|
Returns the brush of the border.
Returns the style of the border.
float borderWidth |
( |
|
self ) |
|
Returns the border width of the item.
QRectF contentRect |
( |
|
self ) |
|
QSizeF contentSize |
( |
|
self ) |
|
Returns the type of the frame.
Returns the margin of the item. This is used for all margins with the value 0.0.
The padding is the space outside the painted space.
float marginBottom |
( |
|
self ) |
|
Returns the bottom margin of the item.
float marginLeft |
( |
|
self ) |
|
Returns the left margin of the item.
float marginRight |
( |
|
self ) |
|
Returns the right margin of the item.
Returns the top margin of the item.
Returns the padding of the item.
The padding is the empty space inside the border.
paint |
( |
self, |
|
|
|
QPainter |
painter |
|
) |
|
|
|
This function won't be reimplemented in most cases.
paintBackground |
( |
self, |
|
|
|
QPainter |
painter |
|
) |
|
|
|
Paints the background. This function won't be reimplemented in most cases.
paintContent |
( |
self, |
|
|
|
QPainter |
painter |
|
) |
|
|
|
Here the items paint their content.
QRectF paintedRect |
( |
|
self ) |
|
setBackground |
( |
self, |
|
|
|
QBrush |
background |
|
) |
|
|
|
Changes the background brush of the item.
setBorderBrush |
( |
self, |
|
|
|
QBrush |
brush |
|
) |
|
|
|
Change the brush of the border.
Change the style of the border.
setBorderWidth |
( |
self, |
|
|
|
float |
width |
|
) |
|
|
|
Set the border width of the item.
setContentSize |
( |
self, |
|
|
|
QSizeF |
size |
|
) |
|
|
|
Sets the size of the content of the item.
size is the size required for contents.
Sets the type of the Frame. Standard is NoFrame.
setMargin |
( |
self, |
|
|
|
float |
margin |
|
) |
|
|
|
Sets the margin of the item. This is used for all margins with the value 0.0.
setMarginBottom |
( |
self, |
|
|
|
float |
marginBottom |
|
) |
|
|
|
Set the bottom margin of the item.
setMarginLeft |
( |
self, |
|
|
|
float |
marginLeft |
|
) |
|
|
|
Set the left margin of the item.
setMarginRight |
( |
self, |
|
|
|
float |
marginRight |
|
) |
|
|
|
Set the right margin of the item.
setMarginTop |
( |
self, |
|
|
|
float |
marginTop |
|
) |
|
|
|
Set the top margin of the item.
setPadding |
( |
self, |
|
|
|
float |
width |
|
) |
|
|
|
Set the padding of the item.
Enumeration Documentation
- Enumerator:
-
NoFrame | |
RectFrame | |
RoundedRectFrame | |