diff options
Diffstat (limited to 'src/kernel/qwidget.h')
-rw-r--r-- | src/kernel/qwidget.h | 48 |
1 files changed, 34 insertions, 14 deletions
diff --git a/src/kernel/qwidget.h b/src/kernel/qwidget.h index ae66e02cc..94c4a3af9 100644 --- a/src/kernel/qwidget.h +++ b/src/kernel/qwidget.h @@ -455,6 +455,7 @@ public: TQWidget * parentWidget( bool sameWindow = FALSE ) const; WState testWState( WState s ) const; WFlags testWFlags( WFlags f ) const; + NFlags testNFlags( NFlags f ) const; static TQWidget * find( WId ); static TQWidgetMapper *wmapper(); @@ -578,6 +579,9 @@ protected: WFlags getWFlags() const; virtual void setWFlags( WFlags ); void clearWFlags( WFlags n ); + NFlags getNFlags() const; + virtual void setNFlags( NFlags ); + void clearNFlags( NFlags n ); virtual bool focusNextPrevChild( bool next ); @@ -665,20 +669,25 @@ private: void setBackgroundX11Relative(); #endif - WId winid; - uint widget_state; - uint widget_flags; - uint focus_policy : 4; - uint own_font :1; - uint own_palette :1; - uint sizehint_forced :1; - uint is_closing :1; - uint in_show : 1; - uint in_show_maximized : 1; - uint fstrut_dirty : 1; - uint im_enabled : 1; - TQRect crect; - TQColor bg_col; + WId winid; + uint widget_state; + uint widget_flags; + uint netwm_flags; + uint reserved_1; + uint reserved_2; + uint reserved_3; + uint reserved_4; + uint focus_policy : 4; + uint own_font :1; + uint own_palette :1; + uint sizehint_forced :1; + uint is_closing :1; + uint in_show : 1; + uint in_show_maximized : 1; + uint fstrut_dirty : 1; + uint im_enabled : 1; + TQRect crect; + TQColor bg_col; #ifndef QT_NO_PALETTE TQPalette pal; #endif @@ -756,6 +765,8 @@ inline TQt::WState TQWidget::testWState( WState s ) const inline TQt::WFlags TQWidget::testWFlags( WFlags f ) const { return (widget_flags & f); } +inline TQt::NFlags TQWidget::testNFlags( NFlags f ) const +{ return (netwm_flags & f); } inline WId TQWidget::winId() const { return winid; } @@ -916,12 +927,21 @@ inline void TQWidget::clearWState( uint f ) inline TQt::WFlags TQWidget::getWFlags() const { return widget_flags; } +inline TQt::NFlags TQWidget::getNFlags() const +{ return netwm_flags; } + inline void TQWidget::setWFlags( WFlags f ) { widget_flags |= f; } +inline void TQWidget::setNFlags( NFlags f ) +{ netwm_flags |= f; } + inline void TQWidget::clearWFlags( WFlags f ) { widget_flags &= ~f; } +inline void TQWidget::clearNFlags( NFlags f ) +{ netwm_flags &= ~f; } + inline void TQWidget::constPolish() const { if ( !testWState(WState_Polished) ) { |