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

twin/lib

  • twin
  • lib
kdecorationfactory.h
1 /*****************************************************************
2 This file is part of the KDE project.
3 
4 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
5 
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the
11 Software is furnished to do so, subject to the following conditions:
12 
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15 
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
23 ******************************************************************/
24 
25 #ifndef KDECORATIONFACTORY_H
26 #define KDECORATIONFACTORY_H
27 
28 #include "kdecoration.h"
29 
30 class KDecoration;
31 class KDecorationBridge;
32 class KDecorationFactoryPrivate;
33 
34 class 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 
115 inline const KDecorationOptions* KDecorationFactory::options()
116  {
117  return KDecoration::options();
118  }
119 
120 #endif
KDecoration::options
static const KDecorationOptions * options()
Returns the KDecorationOptions object, which is used to access configuration settings for the decorat...
Definition: kdecoration.cpp:55
KDecorationDefines
This class provides a namespace for all decoration related classes.
Definition: kdecoration.h:47
KDecoration
This is the base class for a decoration object.
Definition: kdecoration.h:313
KDecorationOptions
This class holds various configuration settings for the decoration.
Definition: kdecoration.h:190

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.8.13
This website is maintained by Timothy Pearson.