summaryrefslogtreecommitdiffstats
path: root/twin/clients/test/test.h
blob: f735df6c43fc836ea73d146b98e817223f5eaf7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef KWIN_TEST
#define KWIN_TEST

#include <kdecoration.h>
#include <kdecorationfactory.h>
#include <tqpushbutton.h>

namespace KWinTest
{

const int SUPPORTED_WINDOW_TYPES_MASK = NET::NormalMask | NET::DesktopMask | NET::DockMask
    | NET::ToolbarMask | NET::MenuMask | NET::DialogMask /*| NET::OverrideMask*/ | NET::TopMenuMask
    | NET::UtilityMask | NET::SplashMask;

class Decoration
    : public KDecoration
    {
    TQ_OBJECT
    public:
	Decoration( KDecorationBridge* bridge, KDecorationFactory* factory );
        virtual void init();
	virtual MousePosition mousePosition( const TQPoint& p ) const;
	virtual void borders( int& left, int& right, int& top, int& bottom ) const;
	virtual void resize( const TQSize& s );
	virtual TQSize minimumSize() const;
        virtual void activeChange() {};
        virtual void captionChange() {};
        virtual void maximizeChange() {};
        virtual void desktopChange() {};
        virtual void shadeChange() {};
        virtual void iconChange() {};
	virtual bool eventFilter( TQObject* o, TQEvent* e );
        virtual void reset( unsigned long changed );
        virtual bool animateMinimize( bool minimize );
    private:
	TQPushButton* button;
    };

class Factory
    : public KDecorationFactory
    {
    public:
        virtual KDecoration* createDecoration( KDecorationBridge* );
        virtual bool reset( unsigned long changed );
    };
    
} // namespace

#endif