• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • twin/lib
 

twin/lib

  • twin
  • lib
kdecorationfactory.h
1/*****************************************************************
2This file is part of the KDE project.
3
4Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
5
6Permission is hereby granted, free of charge, to any person obtaining a
7copy of this software and associated documentation files (the "Software"),
8to deal in the Software without restriction, including without limitation
9the rights to use, copy, modify, merge, publish, distribute, sublicense,
10and/or sell copies of the Software, and to permit persons to whom the
11Software is furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in
14all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22DEALINGS IN THE SOFTWARE.
23******************************************************************/
24
25#ifndef KDECORATIONFACTORY_H
26#define KDECORATIONFACTORY_H
27
28#include "kdecoration.h"
29
30class KDecoration;
31class KDecorationBridge;
32class KDecorationFactoryPrivate;
33
34class KWIN_EXPORT KDecorationFactory
35 : public KDecorationDefines
36 {
37 public:
42 KDecorationFactory();
47 virtual ~KDecorationFactory();
53 virtual KDecoration* createDecoration( KDecorationBridge* bridge ) = 0;
63 virtual bool reset( unsigned long changed ); // returns true if the decoration needs to be recreated
64
71 virtual TQValueList< BorderSize > borderSizes() const;
72
73 virtual bool supports( Ability ability );
74
75 virtual void checkRequirements( KDecorationProvides* provides );
80 const KDecorationOptions* options(); // convenience
87 bool exists( const KDecoration* deco ) const;
91 void addDecoration( KDecoration* );
95 void removeDecoration( KDecoration* );
96 protected:
101 void resetDecorations( unsigned long changed ); // convenience
109 NET::WindowType windowType( unsigned long supported_types, KDecorationBridge* bridge ) const;
110 private:
111 TQValueList< KDecoration* > _decorations;
112 KDecorationFactoryPrivate* d;
113 };
114
115inline const KDecorationOptions* KDecorationFactory::options()
116 {
117 return KDecoration::options();
118 }
119
120#endif
KDecorationDefines
This class provides a namespace for all decoration related classes.
Definition: kdecoration.h:48
KDecorationOptions
This class holds various configuration settings for the decoration.
Definition: kdecoration.h:191
KDecoration
This is the base class for a decoration object.
Definition: kdecoration.h:315
KDecoration::options
static const KDecorationOptions * options()
Returns the KDecorationOptions object, which is used to access configuration settings for the decorat...
Definition: kdecoration.cpp:55

twin/lib

Skip menu "twin/lib"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

twin/lib

Skip menu "twin/lib"
  • kate
  • libkonq
  • twin
  •   lib
Generated for twin/lib by doxygen 1.9.4
This website is maintained by Timothy Pearson.