• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libplasma

freelayout.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright 2007 by Robert Knight <robertknight@gmail.com>
00003  *
00004  *   This program is free software; you can redistribute it and/or modify
00005  *   it under the terms of the GNU Library General Public License as
00006  *   published by the Free Software Foundation; either version 2, or
00007  *   (at your option) any later version.
00008 
00009  *
00010  *   This program is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details
00014  *
00015  *   You should have received a copy of the GNU Library General Public
00016  *   License along with this program; if not, write to the
00017  *   Free Software Foundation, Inc.,
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019  */
00020 
00021 #ifndef PLASMA_FREE_LAYOUT_H
00022 #define PLASMA_FREE_LAYOUT_H
00023 
00024 #include <QtCore/QList>
00025 
00026 #include <plasma/plasma_export.h>
00027 #include <plasma/layouts/layout.h>
00028 
00029 namespace Plasma
00030 {
00031 
00040 class PLASMA_EXPORT FreeLayout : public Layout
00041 {
00042     public:
00046         explicit FreeLayout(LayoutItem *parent = 0);
00047         ~FreeLayout();
00048 
00049         // reimplemented from Layout
00050         virtual void addItem(LayoutItem *l);
00051         virtual void removeItem(LayoutItem *l);
00052         virtual int indexOf(LayoutItem *l) const;
00053         virtual LayoutItem *itemAt(int i) const;
00054         virtual LayoutItem *takeAt(int i);
00055         virtual Qt::Orientations expandingDirections() const;
00056         virtual QRectF geometry() const;
00057         virtual int count() const;
00058 
00059         virtual QSizeF sizeHint() const;
00060 
00061     protected:
00062         void relayout();
00063 
00064     private:
00065         class Private;
00066         Private *const d;
00067 };
00068 
00069 }
00070 
00071 #endif /* PLASMA_FREE_LAYOUT_H */

libplasma

Skip menu "libplasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal