LibrePCB Developers Documentation
GraphicsExportWidget::PageItem Class Referencefinal

Inherits QGraphicsItem.

+ Collaboration diagram for GraphicsExportWidget::PageItem:

Public Member Functions

 PageItem ()=delete
 
 PageItem (bool showPageNumber, bool showResolution, int number) noexcept
 
 PageItem (const PageItem &other)=delete
 
 ~PageItem () noexcept
 
void setContent (const QSize &pageSize, const QRectF margins, std::shared_ptr< QPicture > picture) noexcept
 
QRectF boundingRect () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
 
PageItemoperator= (const PageItem &rhs)=delete
 

Private Member Functions

QSize getSize () const noexcept
 
QString getResolution () const noexcept
 

Private Attributes

bool mShowPageNumbers
 
bool mShowResolution
 
int mNumber
 
QSize mSize
 
QRectF mMargins
 
std::shared_ptr< QPicture > mPicture
 

Constructor & Destructor Documentation

◆ PageItem() [1/3]

PageItem ( )
delete

◆ PageItem() [2/3]

PageItem ( bool  showPageNumber,
bool  showResolution,
int  number 
)
noexcept

◆ PageItem() [3/3]

PageItem ( const PageItem other)
delete

◆ ~PageItem()

~PageItem ( )
noexcept

Member Function Documentation

◆ setContent()

void setContent ( const QSize &  pageSize,
const QRectF  margins,
std::shared_ptr< QPicture >  picture 
)
noexcept

◆ boundingRect()

QRectF boundingRect ( ) const
overridenoexcept

◆ paint()

void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overridenoexcept
+ Here is the call graph for this function:

◆ operator=()

PageItem & operator= ( const PageItem rhs)
delete

◆ getSize()

QSize getSize ( ) const
privatenoexcept

◆ getResolution()

QString getResolution ( ) const
privatenoexcept

Member Data Documentation

◆ mShowPageNumbers

bool mShowPageNumbers
private

◆ mShowResolution

bool mShowResolution
private

◆ mNumber

int mNumber
private

◆ mSize

QSize mSize
private

◆ mMargins

QRectF mMargins
private

◆ mPicture

std::shared_ptr<QPicture> mPicture
private

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