LibrePCB Developers Documentation
GraphicsScene Class Reference

The GraphicsScene class. More...

#include <graphicsscene.h>

+ Inheritance diagram for GraphicsScene:
+ Collaboration diagram for GraphicsScene:

Public Member Functions

 GraphicsScene (QObject *parent=nullptr) noexcept
 
virtual ~GraphicsScene () noexcept
 
void addItem (QGraphicsItem &item) noexcept
 
void removeItem (QGraphicsItem &item) noexcept
 
void setSelectionRectColors (const QColor &line, const QColor &fill) noexcept
 
void setSelectionRect (const Point &p1, const Point &p2) noexcept
 
void clearSelectionRect () 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 ( QObject *  parent = nullptr)
explicitnoexcept

◆ ~GraphicsScene()

~GraphicsScene ( )
virtualnoexcept

Member Function Documentation

◆ addItem()

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

◆ removeItem()

void removeItem ( QGraphicsItem &  item)
noexcept

◆ setSelectionRectColors()

void setSelectionRectColors ( const QColor &  line,
const QColor &  fill 
)
noexcept

◆ setSelectionRect()

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

◆ clearSelectionRect()

void clearSelectionRect ( )
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: