Loading...
Searching...
No Matches
Ui::TextureView::Layer Struct Reference
Inheritance diagram for Ui::TextureView::Layer:
Gfx::OutletPreviewLayer Process::EffectLayerView Process::LayerView

Public Member Functions

 Layer (const Process::ProcessModel &process, const Process::Context &doc, QGraphicsItem *parent)
 
- Public Member Functions inherited from Gfx::OutletPreviewLayer
 OutletPreviewLayer (const Process::ProcessModel &process, const Process::Context &doc, QGraphicsItem *parent, std::size_t texture_outlet=0)
 
QRectF imageRect () const
 Where the image is drawn: as large as fits, centred.
 
const TexturePreview & preview () const noexcept
 
- Public Member Functions inherited from Process::EffectLayerView
 EffectLayerView (QGraphicsItem *parent)
 
void setWidth (qreal width, qreal defaultWidth)
 
- Public Member Functions inherited from Process::LayerView
 LayerView (QGraphicsItem *parent)
 
QRectF boundingRect () const final override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) final override
 
void setHeight (qreal height) noexcept
 
qreal height () const noexcept
 
void setWidth (qreal width) noexcept
 
qreal width () const noexcept
 
virtual QPixmap pixmap () noexcept
 
void dragEnterEvent (QGraphicsSceneDragDropEvent *event) override
 
void dragLeaveEvent (QGraphicsSceneDragDropEvent *event) override
 
void dropEvent (QGraphicsSceneDragDropEvent *event) override
 
void clearPressed ()
 
void escPressed ()
 
void pressed (QPointF arg_1)
 
void released (QPointF arg_1)
 
void moved (QPointF arg_1)
 
void doubleClicked (QPointF arg_1)
 
void askContextMenu (const QPoint &arg_1, const QPointF &arg_2)
 
void dropReceived (const QPointF &pos, const QMimeData &arg_2)
 
void presetDropReceived (const QPointF &pos, const QMimeData &arg_2)
 
void keyPressed (int arg_1)
 
void keyReleased (int arg_1)
 
void dragEnter (const QPointF &pos, const QMimeData &arg_2)
 
void dragMove (const QPointF &pos, const QMimeData &arg_2)
 
void dragLeave (const QPointF &pos, const QMimeData &arg_2)
 

Protected Member Functions

void hoverMoveEvent (QGraphicsSceneHoverEvent *ev) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *ev) override
 
void paintOverlay (QPainter *p, const QRectF &image) const override
 Drawn over the image.
 
- Protected Member Functions inherited from Gfx::OutletPreviewLayer
void paint_impl (QPainter *p) const override
 
void timerEvent (QTimerEvent *ev) override
 
- Protected Member Functions inherited from Process::LayerView
virtual void heightChanged (qreal)
 
virtual void widthChanged (qreal)
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
void contextMenuEvent (QGraphicsSceneContextMenuEvent *event) override
 

Additional Inherited Members

- Public Attributes inherited from Gfx::OutletPreviewLayer
std::function< std::optional< double >()> aspect
 Width over height of the image; nothing: fill the view.
 
QString placeholder
 Shown when there is no image yet.
 
- Protected Attributes inherited from Process::EffectLayerView
qreal m_defaultWidth {}
 

Member Function Documentation

◆ paintOverlay()

void Ui::TextureView::Layer::paintOverlay ( QPainter *  p,
const QRectF &  image 
) const
overrideprotectedvirtual

Drawn over the image.

Reimplemented from Gfx::OutletPreviewLayer.


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