DUDS
Distributed Update of Data from Something
SingleLayoutPanel.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of the DUDS project. It is subject to the BSD-style
3  * license terms in the LICENSE file found in the top-level directory of this
4  * distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
5  * No part of DUDS, including this file, may be copied, modified, propagated,
6  * or distributed except according to the terms contained in the LICENSE file.
7  *
8  * Copyright (C) 2020 Jeff Jackowski
9  */
10 #ifndef SINGLELAYOUTPANEL_HPP
11 #define SINGLELAYOUTPANEL_HPP
12 
15 
16 namespace duds { namespace ui { namespace graphics {
17 
25 class SingleLayoutPanel : public Panel {
29  PriorityGridLayout *pgl = nullptr;
33  unsigned int pri = 0;
34 public:
40  return pgl;
41  }
46  int layoutPriority() const {
47  return pri;
48  }
70  virtual void added(PriorityGridLayout *l, int p);
75  virtual void removing(PriorityGridLayout *l, int p);
76 };
77 
78 } } }
79 
80 #endif // #ifndef SINGLELAYOUTPANEL_HPP
virtual void removing(PriorityGridLayout *l, int p)
Records that the panel has been removed from the layout.
Represents something being drawn in a rectangular region defined by a PriorityGridLayout object...
Definition: Panel.hpp:52
virtual void added(PriorityGridLayout *l, int p)
Records the layout object and priority that has been assigned to this panel.
A way to place Panel objects dynamically with a priority mechanism to allow panels to be resized and ...
A variation of a Panel that can only be added to one layout at a time, and that keeps track of its ow...
PriorityGridLayout * owner() const
Returns the layout object that has added this Panel, or nullptr if no layout has the panel...
unsigned int pri
The priority value assigned to this Panel when added to a layout.
GridLayoutConfig & panelConfig()
Returns the panel's layout configuration.
PriorityGridLayout * pgl
The layout object that has added this Panel, or nullptr if not added.
General graphics related code.
Definition: HD44780.hpp:15
Informs a PriorityGridLayout object where to place and how large to make Panel objects.
int layoutPriority() const
Returns the priority assigned to this panel when added to a layout, or zero if not added...