API Documentation
Loading...
Searching...
No Matches
DropOverlay Class Reference

Paints a translucent rectangle over another widget. The geometry of the rectangle is based on the mouse location. Used with the NDEVR API Widget Docking system to show where a dock can be placed. More...

#include <DropOverlay.h>

Inheritance diagram for DropOverlay:
[legend]
Collaboration diagram for DropOverlay:
[legend]

Public Member Functions

DropArea cursorLocation () const
 
 DropOverlay (QWidget *parent)
 
void hideDropOverlay ()
 
void setAreaWidgets (const QHash< DropArea, QWidget * > &widgets)
 
void showDropOverlay (QWidget *target, const QRect &targetAreaRect)
 
DropArea showDropOverlay (QWidget *target, QWidget *payload)
 
virtual ~DropOverlay ()
 

Protected Member Functions

virtual void hideEvent (QHideEvent *e) override
 
virtual void moveEvent (QMoveEvent *e) override
 
virtual void paintEvent (QPaintEvent *e) override
 
virtual void resizeEvent (QResizeEvent *e) override
 
virtual void showEvent (QShowEvent *e) override
 

Friends

class DropOverlayCross
 

Detailed Description

Paints a translucent rectangle over another widget. The geometry of the rectangle is based on the mouse location. Used with the NDEVR API Widget Docking system to show where a dock can be placed.


Constructor & Destructor Documentation

◆ DropOverlay()

DropOverlay ( QWidget * parent)

◆ ~DropOverlay()

virtual ~DropOverlay ( )
virtual

Member Function Documentation

◆ cursorLocation()

DropArea cursorLocation ( ) const

◆ hideDropOverlay()

void hideDropOverlay ( )

◆ hideEvent()

virtual void hideEvent ( QHideEvent * e)
overrideprotectedvirtual

◆ moveEvent()

virtual void moveEvent ( QMoveEvent * e)
overrideprotectedvirtual

◆ paintEvent()

virtual void paintEvent ( QPaintEvent * e)
overrideprotectedvirtual

◆ resizeEvent()

virtual void resizeEvent ( QResizeEvent * e)
overrideprotectedvirtual

◆ setAreaWidgets()

void setAreaWidgets ( const QHash< DropArea, QWidget * > & widgets)

◆ showDropOverlay() [1/2]

void showDropOverlay ( QWidget * target,
const QRect & targetAreaRect )

◆ showDropOverlay() [2/2]

DropArea showDropOverlay ( QWidget * target,
QWidget * payload )

◆ showEvent()

virtual void showEvent ( QShowEvent * e)
overrideprotectedvirtual

Friends And Related Symbol Documentation

◆ DropOverlayCross

friend class DropOverlayCross
friend

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