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

#include <WindowContainer.h>

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

Public Member Functions

 WindowContainer (QWidget *parent=nullptr)
 
QPoint windowOffset () const
 
void setWidget (QWidget *window)
 
void setWindow (QWindow *window)
 
void resizeEvent (QResizeEvent *resize_event) override
 
void visibleHack ()
 
void paintEvent (QPaintEvent *event) override
 
virtual void updateSize ()
 
bool event (QEvent *event) override
 
void setEventForwarder (const std::function< bool(QEvent *event)> &forwarder)
 

Static Public Member Functions

static Qt::WindowFlags windowFlags ()
 

Protected Attributes

std::function< bool(QEvent *event)> m_event_forwarder
 
QTimer * m_location_timer
 
QSize m_last_paint_size
 
QWindow * m_window
 
QWidget * m_container
 

Constructor & Destructor Documentation

◆ WindowContainer()

WindowContainer ( QWidget * parent = nullptr)
inline

Member Function Documentation

◆ event()

bool event ( QEvent * event)
inlineoverride

◆ paintEvent()

void paintEvent ( QPaintEvent * event)
inlineoverride

◆ resizeEvent()

void resizeEvent ( QResizeEvent * resize_event)
inlineoverride

◆ setEventForwarder()

void setEventForwarder ( const std::function< bool(QEvent *event)> & forwarder)
inline

◆ setWidget()

void setWidget ( QWidget * window)
inline

◆ setWindow()

void setWindow ( QWindow * window)
inline

◆ updateSize()

virtual void updateSize ( )
inlinevirtual

Reimplemented in QTGraphicsWidget.

◆ visibleHack()

void visibleHack ( )
inline

◆ windowFlags()

static Qt::WindowFlags windowFlags ( )
inlinestatic

◆ windowOffset()

QPoint windowOffset ( ) const
inline

Member Data Documentation

◆ m_container

QWidget* m_container
protected

◆ m_event_forwarder

std::function<bool(QEvent * event)> m_event_forwarder
protected

◆ m_last_paint_size

QSize m_last_paint_size
protected

◆ m_location_timer

QTimer* m_location_timer
protected

◆ m_window

QWindow* m_window
protected

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