LibrePCB Developers Documentation
GraphicsScene Class Referencefinal

The GraphicsScene class. More...

#include <graphicsscene.h>

Inherits QGraphicsScene.

+ Collaboration diagram for GraphicsScene:

Public Member Functions

 GraphicsScene () noexcept
 
 ~GraphicsScene () noexcept
 
void addItem (QGraphicsItem &item) noexcept
 
void removeItem (QGraphicsItem &item) noexcept
 
void setSelectionRect (const Point &p1, const Point &p2) noexcept
 
QPixmap toPixmap (int dpi, const QColor &background=Qt::transparent) noexcept
 
QPixmap toPixmap (const QSize &size, const QColor &background=Qt::transparent) noexcept
 

Private Attributes

QGraphicsRectItem * mSelectionRectItem
 

Detailed Description

The GraphicsScene class.

Constructor & Destructor Documentation

◆ GraphicsScene()

GraphicsScene ( )
explicitnoexcept

◆ ~GraphicsScene()

~GraphicsScene ( )
noexcept

Member Function Documentation

◆ addItem()

void addItem ( QGraphicsItem &  item)
noexcept
+ Here is the caller graph for this function:

◆ removeItem()

void removeItem ( QGraphicsItem &  item)
noexcept
+ Here is the caller graph for this function:

◆ setSelectionRect()

void setSelectionRect ( const Point p1,
const Point p2 
)
noexcept
+ Here is the caller graph for this function:

◆ toPixmap() [1/2]

QPixmap toPixmap ( int  dpi,
const QColor &  background = Qt::transparent 
)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toPixmap() [2/2]

QPixmap toPixmap ( const QSize &  size,
const QColor &  background = Qt::transparent 
)
noexcept

Member Data Documentation

◆ mSelectionRectItem

QGraphicsRectItem* mSelectionRectItem
private

The documentation for this class was generated from the following files: