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

libplasma

flowlayout.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
00006 *   as published by the Free Software Foundation; either
00007 *   version 2 of the License, or (at your option) any later version.
00008 *
00009 *   This program is distributed in the hope that it will be useful,
00010 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 *   GNU General Public License for more details
00013 *
00014 *   You should have received a copy of the GNU Library General Public
00015 *   License along with this program; if not, write to the
00016 *   Free Software Foundation, Inc.,
00017 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018 */
00019 
00020 #ifndef __FLOWLAYOUT__
00021 #define __FLOWLAYOUT__
00022 
00023 #include <plasma/plasma_export.h>
00024 #include <plasma/layouts/layout.h>
00025 
00026 namespace Plasma
00027 {
00028 
00034 class PLASMA_EXPORT FlowLayout : public Layout
00035 {
00036 public:
00038     explicit FlowLayout(LayoutItem* parent);
00039     virtual ~FlowLayout();
00040 
00041     // reimplemented
00042     virtual int count() const;
00043     virtual void addItem(LayoutItem* item);
00044     virtual void removeItem(LayoutItem* item);
00045     virtual int indexOf(LayoutItem* item) const;
00046     virtual LayoutItem* itemAt(int i) const;
00047     virtual LayoutItem* takeAt(int i);
00048 
00049     virtual QSizeF sizeHint() const;
00050     virtual Qt::Orientations expandingDirections() const;
00051     virtual void setColumnWidth( const qreal width );
00052     virtual qreal columnWidth() const;
00053 
00054 protected:
00055     void relayout();
00056 
00057 private:
00058     class Private;
00059     Private *const d;
00060 };
00061 
00062 }
00063 
00064 #endif // __FLOWLAYOUT__
00065 

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