kwin Library API Documentation

ModernSystem::ModernSysFactory Class Reference

Inheritance diagram for ModernSystem::ModernSysFactory:

QObject KDecorationFactory KDecorationDefines List of all members.

Public Member Functions

 ModernSysFactory ()
virtual ~ModernSysFactory ()
virtual KDecorationcreateDecoration (KDecorationBridge *)
virtual bool reset (unsigned long changed)
virtual bool supports (Ability ability)
QValueList< BorderSizeborderSizes () const

Detailed Description

Definition at line 87 of file modernsys.h.


Member Function Documentation

KDecoration * ModernSystem::ModernSysFactory::createDecoration KDecorationBridge *   )  [virtual]
 

This function must be reimplemented to create decoration objects.

The argument should be passed to the KDecoration constructor, the second KDecoration argument should be this factory object.

Implements KDecorationFactory.

Definition at line 865 of file modernsys.cpp.

bool ModernSystem::ModernSysFactory::reset unsigned long  changed  )  [virtual]
 

This function is called when the configuration settings changed.

The argument specifies what has changed, using the SettingXXX masks. It should be determined whether the decorations need to be completely remade, in which case true should be returned, or whether only e.g. a repaint will be sufficient, in which case false should be returned, and resetDecorations() can be called to reset all decoration objects. Note that true should be returned only when really necessary.

Reimplemented from KDecorationFactory.

Definition at line 870 of file modernsys.cpp.

References ModernSystem::create_pixmaps(), ModernSystem::delete_pixmaps(), KDecorationFactory::resetDecorations(), KDecorationDefines::SettingBorder, and KDecorationDefines::SettingColors.

QValueList< ModernSysFactory::BorderSize > ModernSystem::ModernSysFactory::borderSizes  )  const [virtual]
 

Reimplement this function if your decoration supports more border sizes than the default one (BorderNormal).

The returned list must contain all supported sizes, ordered from the smallest to the largest one. By default, only BorderNormal is returned.

Reimplemented from KDecorationFactory.

Definition at line 289 of file modernsys.cpp.

References KDecorationDefines::BorderHuge, KDecorationDefines::BorderLarge, KDecorationDefines::BorderNormal, and KDecorationDefines::BorderVeryLarge.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kwin Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 13 19:28:04 2006 by doxygen 1.4.3 written by Dimitri van Heesch, © 1997-2003