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

libplasma

borderlayout.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright (C) 2007 Ivan Cukic <ivan.cukic+kde@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/Lesser General Public License
00006  *   version 2, or (at your option) any later version, as published by the
00007  *   Free Software Foundation
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/Lesser 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 PLASMA_BORDER_LAYOUT
00021 #define PLASMA_BORDER_LAYOUT
00022 
00023 #include <QtCore/QMap>
00024 
00025 #include <plasma/plasma_export.h>
00026 #include <plasma/plasma.h>
00027 #include <plasma/layouts/layout.h>
00028 
00029 namespace Plasma {
00030 
00037 class PLASMA_EXPORT BorderLayout : public Layout {
00038 public:
00039 
00040     explicit BorderLayout(LayoutItem * parent = 0);
00041     virtual ~BorderLayout();
00042 
00043     virtual Qt::Orientations expandingDirections() const;
00044 
00045     QSizeF sizeHint() const;
00046 
00051     void addItem(Plasma::LayoutItem * item);
00052 
00056     void addItem(Plasma::LayoutItem * item, Position position);
00057 
00058     void removeItem(Plasma::LayoutItem * item);
00059 
00060     virtual int count() const;
00061     virtual int indexOf(LayoutItem * item) const;
00062     virtual LayoutItem * itemAt(int i) const;
00063     virtual LayoutItem * takeAt(int i);
00064 
00072     void setSize(qreal size, Position border);
00073 
00078     void setAutoSize(Position border);
00079 
00085     qreal size(Position border);
00086 
00087 protected:
00088     void relayout();
00089 
00090 private:
00091     class Private;
00092     Private * const d;
00093 };
00094 
00095 }
00096 
00097 #endif /* PLASMA_BORDER_LAYOUT */

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