• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • workspace API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • sources
  • kde-4.14
  • workspace
  • kdeplasma-addons
  • libs
  • lancelot
  • layouts
FullBorderLayout.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser/Library General Public License version 2,
6  * or (at your option) any later version, as published by the Free
7  * Software Foundation
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser/Library General Public License for more details
13  *
14  * You should have received a copy of the GNU Lesser/Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef LANCELOT_FULL_BORDER_LAYOUT_H
21 #define LANCELOT_FULL_BORDER_LAYOUT_H
22 
23 #include <QGraphicsLayout>
24 
25 #include <lancelot/lancelot_export.h>
26 
27 namespace Lancelot {
28 
38 class LANCELOT_EXPORT FullBorderLayout : public QGraphicsLayout {
39 public:
43  enum Border {
44  TopBorder = 1,
45  BottomBorder = 2,
46  LeftBorder = 4,
47  RightBorder = 8
48  };
49 
53  enum Place {
54  Center = 0,
55  Top = TopBorder,
56  Bottom = BottomBorder,
57  Left = LeftBorder,
58  Right = RightBorder,
59  TopLeft = TopBorder | LeftBorder,
60  TopRight = TopBorder | RightBorder,
61  BottomLeft = BottomBorder | LeftBorder,
62  BottomRight = BottomBorder | RightBorder
63  };
64 
69  explicit FullBorderLayout(QGraphicsLayoutItem * parent = 0);
70 
74  virtual ~FullBorderLayout();
75 
81  void addItem(QGraphicsLayoutItem * item);
82 
88  void addItem(QGraphicsLayoutItem * item, Place position);
89 
100  void setSize(qreal size, Border border);
101 
107  void setAutoSize(Border border);
108 
117  qreal size(Border border) const;
118 
119  L_Override void setGeometry(const QRectF & rect);
120  L_Override int count() const;
121  L_Override QGraphicsLayoutItem * itemAt(int i) const;
122  L_Override void removeAt(int index);
123  L_Override QSizeF sizeHint(Qt::SizeHint which,
124  const QSizeF & constraint = QSizeF()) const;
125 
126 private:
127  class Private;
128  Private * const d;
129 };
130 
131 } // namespace Lancelot
132 
133 #endif /* LANCELOT_FULL_BORDER_LAYOUT_H */
134 
Lancelot::FullBorderLayout
A modified version of Plasma::BorderLayout.
Definition: FullBorderLayout.h:38
L_Override
#define L_Override
Definition: lancelot_export.h:41
lancelot_export.h
LANCELOT_EXPORT
#define LANCELOT_EXPORT
Definition: lancelot_export.h:32
Lancelot::FullBorderLayout::Border
Border
Borders enum.
Definition: FullBorderLayout.h:43
Lancelot::FullBorderLayout::Place
Place
Positions supported by FullBorderLayout.
Definition: FullBorderLayout.h:53
QSizeF
QRectF
QGraphicsLayout
QGraphicsLayoutItem
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

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

workspace API Reference

Skip menu "workspace API Reference"
  • kdeplasma-addons
  •       GroupingDesktop
  •     liblancelot

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal