Loading...
Searching...
No Matches
Gfx::OutputMappingCanvas Class Referencefinal
Inheritance diagram for Gfx::OutputMappingCanvas:

Public Member Functions

 OutputMappingCanvas (QWidget *parent=nullptr)
 
void setMappings (const std::vector< OutputMapping > &mappings)
 
std::vector< OutputMapping > getMappings () const
 
void addOutput ()
 
void removeSelectedOutput ()
 
void updateAspectRatio (int inputWidth, int inputHeight)
 
double canvasWidth () const noexcept
 
double canvasHeight () const noexcept
 
bool snapEnabled () const noexcept
 
void setSnapEnabled (bool enabled)
 
bool lockToBorderEnabled () const noexcept
 
void setLockToBorderEnabled (bool enabled)
 
QPointF snapPosition (const OutputMappingItem *item, QPointF proposedPos) const
 
void enterWarpMode (int outputIndex)
 
void exitWarpMode ()
 
bool inWarpMode () const noexcept
 
void resetWarp ()
 

Public Attributes

std::function< void(int)> onSelectionChanged
 
std::function< void(int)> onItemGeometryChanged
 
std::function< void()> onWarpChanged
 

Protected Member Functions

void resizeEvent (QResizeEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 

Member Function Documentation

◆ lockToBorderEnabled()

bool Gfx::OutputMappingCanvas::lockToBorderEnabled ( ) const
inlinenoexcept

Whether an output quad is kept inside the canvas. Off, it may be dragged before (0,0) and past (1,1) – a projector aimed outside the source image, or a window that overhangs the desktop.


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