• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • FrameGraphicsItem
Public Types | Public Member Functions | Protected Member Functions | List of all members
Marble::FrameGraphicsItem Class Reference

#include <FrameGraphicsItem.h>

Inheritance diagram for Marble::FrameGraphicsItem:
Inheritance graph
[legend]

Public Types

enum  FrameType { NoFrame, RectFrame, RoundedRectFrame, ShadowFrame }
 
- Public Types inherited from Marble::ScreenGraphicsItem
enum  GraphicsItemFlag { ItemIsMovable = 0x1, ItemIsHideable = 0x2 }
 
- Public Types inherited from Marble::MarbleGraphicsItem
enum  CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache }
 

Public Member Functions

 FrameGraphicsItem (MarbleGraphicsItem *parent=0)
 
virtual ~FrameGraphicsItem ()
 
QBrush background () const
 
QBrush borderBrush () const
 
Qt::PenStyle borderStyle () const
 
qreal borderWidth () const
 
QRectF contentRect () const
 
QSizeF contentSize () const
 
FrameType frame () const
 
qreal margin () const
 
qreal marginBottom () const
 
qreal marginLeft () const
 
qreal marginRight () const
 
qreal marginTop () const
 
qreal padding () const
 
QRectF paintedRect () const
 
void setBackground (const QBrush &background)
 
void setBorderBrush (const QBrush &brush)
 
void setBorderStyle (Qt::PenStyle style)
 
void setBorderWidth (qreal width)
 
void setContentSize (const QSizeF &size)
 
void setFrame (FrameType type)
 
void setMargin (qreal margin)
 
void setMarginBottom (qreal marginBottom)
 
void setMarginLeft (qreal marginLeft)
 
void setMarginRight (qreal marginRight)
 
void setMarginTop (qreal marginTop)
 
void setPadding (qreal width)
 
- Public Member Functions inherited from Marble::ScreenGraphicsItem
 ScreenGraphicsItem (MarbleGraphicsItem *parent=0)
 
virtual ~ScreenGraphicsItem ()
 
QList< QPointF > absolutePositions () const
 
GraphicsItemFlags flags () const
 
QPointF position () const
 
QPointF positivePosition () const
 
void setFlags (GraphicsItemFlags flags)
 
void setPosition (const QPointF &position)
 
- Public Member Functions inherited from Marble::MarbleGraphicsItem
virtual ~MarbleGraphicsItem ()
 
CacheMode cacheMode () const
 
bool contains (const QPointF &point) const
 
void hide ()
 
AbstractMarbleGraphicsLayout * layout () const
 
bool paintEvent (QPainter *painter, const ViewportParams *viewport)
 
void setCacheMode (CacheMode mode)
 
void setLayout (AbstractMarbleGraphicsLayout *layout)
 
virtual void setProjection (const ViewportParams *viewport)
 
void setSize (const QSizeF &size)
 
void setVisible (bool visible)
 
void show ()
 
QSizeF size () const
 
bool visible () const
 

Protected Member Functions

virtual QPainterPath backgroundShape () const
 
virtual void paint (QPainter *painter)
 
virtual void paintBackground (QPainter *painter)
 
virtual void paintContent (QPainter *painter)
 
- Protected Member Functions inherited from Marble::ScreenGraphicsItem
 ScreenGraphicsItem (ScreenGraphicsItemPrivate *d_ptr)
 
virtual bool eventFilter (QObject *, QEvent *)
 
- Protected Member Functions inherited from Marble::MarbleGraphicsItem
 MarbleGraphicsItem (MarbleGraphicsItemPrivate *d_ptr)
 
void update ()
 

Additional Inherited Members

- Protected Attributes inherited from Marble::MarbleGraphicsItem
MarbleGraphicsItemPrivate *const d
 

Detailed Description

Definition at line 25 of file FrameGraphicsItem.h.

Member Enumeration Documentation

enum Marble::FrameGraphicsItem::FrameType
Enumerator
NoFrame 
RectFrame 
RoundedRectFrame 
ShadowFrame 

Definition at line 28 of file FrameGraphicsItem.h.

Constructor & Destructor Documentation

FrameGraphicsItem::FrameGraphicsItem ( MarbleGraphicsItem *  parent = 0)
explicit

Definition at line 27 of file FrameGraphicsItem.cpp.

FrameGraphicsItem::~FrameGraphicsItem ( )
virtual

Definition at line 33 of file FrameGraphicsItem.cpp.

Member Function Documentation

QBrush FrameGraphicsItem::background ( ) const

Returns the background brush of the item.

Definition at line 156 of file FrameGraphicsItem.cpp.

QPainterPath FrameGraphicsItem::backgroundShape ( ) const
protectedvirtual

Returns the shape of the background.

Reimplemented in Marble::FITemplateFloatItem, Marble::CompassFloatItem, Marble::ProgressFloatItem, and Marble::FileViewFloatItem.

Definition at line 206 of file FrameGraphicsItem.cpp.

QBrush FrameGraphicsItem::borderBrush ( ) const

Returns the brush of the border.

Definition at line 134 of file FrameGraphicsItem.cpp.

Qt::PenStyle FrameGraphicsItem::borderStyle ( ) const

Returns the style of the border.

Definition at line 145 of file FrameGraphicsItem.cpp.

qreal FrameGraphicsItem::borderWidth ( ) const

Returns the border width of the item.

Definition at line 109 of file FrameGraphicsItem.cpp.

QRectF FrameGraphicsItem::contentRect ( ) const
virtual

Returns the rect of the content in item coordinates.

Reimplemented from Marble::MarbleGraphicsItem.

Definition at line 167 of file FrameGraphicsItem.cpp.

QSizeF FrameGraphicsItem::contentSize ( ) const
virtual

Returns the size of the content of the MarbleGraphicsItem.

This is identical to size() for default MarbleGraphicsItems.

Reimplemented from Marble::MarbleGraphicsItem.

Definition at line 180 of file FrameGraphicsItem.cpp.

FrameGraphicsItem::FrameType FrameGraphicsItem::frame ( ) const

Returns the type of the frame.

Definition at line 38 of file FrameGraphicsItem.cpp.

qreal FrameGraphicsItem::margin ( ) const

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.

Definition at line 49 of file FrameGraphicsItem.cpp.

qreal FrameGraphicsItem::marginBottom ( ) const

Returns the bottom margin of the item.

Definition at line 73 of file FrameGraphicsItem.cpp.

qreal FrameGraphicsItem::marginLeft ( ) const

Returns the left margin of the item.

Definition at line 85 of file FrameGraphicsItem.cpp.

qreal FrameGraphicsItem::marginRight ( ) const

Returns the right margin of the item.

Definition at line 97 of file FrameGraphicsItem.cpp.

qreal FrameGraphicsItem::marginTop ( ) const

Returns the top margin of the item.

Definition at line 61 of file FrameGraphicsItem.cpp.

qreal FrameGraphicsItem::padding ( ) const

Returns the padding of the item.

The padding is the empty space inside the border.

Definition at line 121 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::paint ( QPainter *  painter)
protectedvirtual

This function won't be reimplemented in most cases.

Reimplemented from Marble::MarbleGraphicsItem.

Definition at line 231 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::paintBackground ( QPainter *  painter)
protectedvirtual

Paints the background.

This function won't be reimplemented in most cases.

Definition at line 221 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::paintContent ( QPainter *  painter)
protectedvirtual

Here the items paint their content.

Reimplemented in Marble::ElevationProfileFloatItem, Marble::NavigationFloatItem, Marble::OverviewMap, Marble::CompassFloatItem, Marble::MapScaleFloatItem, Marble::ProgressFloatItem, and Marble::LabelGraphicsItem.

Definition at line 254 of file FrameGraphicsItem.cpp.

QRectF FrameGraphicsItem::paintedRect ( ) const

Definition at line 185 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setBackground ( const QBrush &  background)

Changes the background brush of the item.

Definition at line 161 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setBorderBrush ( const QBrush &  brush)

Change the brush of the border.

Definition at line 139 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setBorderStyle ( Qt::PenStyle  style)

Change the style of the border.

Definition at line 150 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setBorderWidth ( qreal  width)

Set the border width of the item.

Definition at line 114 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setContentSize ( const QSizeF &  size)
virtual

Sets the size of the content of the item.

size is the size required for contents.

Reimplemented from Marble::MarbleGraphicsItem.

Reimplemented in Marble::LabelGraphicsItem.

Definition at line 200 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setFrame ( FrameType  type)

Sets the type of the Frame.

Standard is NoFrame.

Definition at line 43 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setMargin ( qreal  margin)

Sets the margin of the item.

This is used for all margins with the value 0.0.

Definition at line 54 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setMarginBottom ( qreal  marginBottom)

Set the bottom margin of the item.

Definition at line 78 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setMarginLeft ( qreal  marginLeft)

Set the left margin of the item.

Definition at line 90 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setMarginRight ( qreal  marginRight)

Set the right margin of the item.

Definition at line 102 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setMarginTop ( qreal  marginTop)

Set the top margin of the item.

Definition at line 66 of file FrameGraphicsItem.cpp.

void FrameGraphicsItem::setPadding ( qreal  width)

Set the padding of the item.

Definition at line 126 of file FrameGraphicsItem.cpp.


The documentation for this class was generated from the following files:
  • FrameGraphicsItem.h
  • FrameGraphicsItem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal