ManaPlus
containerplacer.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2007-2009 The Mana World Development Team
4  * Copyright (C) 2009-2010 The Mana Developers
5  * Copyright (C) 2011-2018 The ManaPlus Developers
6  *
7  * This file is part of The ManaPlus Client.
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef GUI_WIDGETS_CONTAINERPLACER_H
24 #define GUI_WIDGETS_CONTAINERPLACER_H
25 
26 #include "localconsts.h"
27 
28 class BasicContainer2;
29 class LayoutCell;
30 class Widget;
31 
36 {
37  public:
39  LayoutCell *const lc) :
40  mContainer(c),
41  mCell(lc)
42  {}
43 
45 
46 
50  { return *mCell; }
51 
55  ContainerPlacer at(const int x,
56  const int y) A_WARN_UNUSED;
57 
62  LayoutCell &operator()(const int x,
63  const int y,
64  Widget *const wg,
65  const int w,
66  const int h);
67 
68  private:
71 };
72 
73 #endif // GUI_WIDGETS_CONTAINERPLACER_H
LayoutCell * mCell
ContainerPlacer at(const int x, const int y)
ContainerPlacer(BasicContainer2 *const c, LayoutCell *const lc)
#define A_WARN_UNUSED
Definition: localconsts.h:152
#define final
Definition: localconsts.h:45
LayoutCell & getCell()
#define A_DEFAULT_COPY(func)
Definition: localconsts.h:40
LayoutCell & operator()(const int x, const int y, Widget *const wg, const int w, const int h)
BasicContainer2 * mContainer
Definition: widget.h:97