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

twin/lib

  • twin
  • lib
kdecorationfactory.cpp
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#include "kdecorationfactory.h"
26
27#include <assert.h>
28
29#include "kdecoration_p.h"
30
31KDecorationFactory::KDecorationFactory()
32 {
33 }
34
35KDecorationFactory::~KDecorationFactory()
36 {
37 assert( _decorations.count() == 0 );
38 }
39
40bool KDecorationFactory::reset( unsigned long )
41 {
42 return false;
43 }
44
45bool KDecorationFactory::supports( Ability )
46 {
47 return false;
48 }
49
50void KDecorationFactory::checkRequirements( KDecorationProvides* )
51 {
52 }
53
54TQValueList< KDecorationDefines::BorderSize > KDecorationFactory::borderSizes() const
55 {
56 return TQValueList< BorderSize >() << BorderNormal;
57 }
58
59bool KDecorationFactory::exists( const KDecoration* deco ) const
60 {
61 return _decorations.contains( const_cast< KDecoration* >( deco ));
62 }
63
64void KDecorationFactory::addDecoration( KDecoration* deco )
65 {
66 _decorations.append( deco );
67 }
68
69void KDecorationFactory::removeDecoration( KDecoration* deco )
70 {
71 _decorations.remove( deco );
72 }
73
74void KDecorationFactory::resetDecorations( unsigned long changed )
75 {
76 for( TQValueList< KDecoration* >::ConstIterator it = _decorations.begin();
77 it != _decorations.end();
78 ++it )
79 (*it)->reset( changed );
80 }
81
82NET::WindowType KDecorationFactory::windowType( unsigned long supported_types, KDecorationBridge* bridge ) const
83 {
84 return bridge->windowType( supported_types );
85 }
KDecoration
This is the base class for a decoration object.
Definition: kdecoration.h:315

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.