Lumiera  0.pre.03
»edit your freedom«
display-evaluation.cpp
Go to the documentation of this file.
1 /*
2  DisplayEvaluation - recursive interwoven timeline layout allocation
3 
4  Copyright (C) Lumiera.org
5  2020, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 * *****************************************************/
22 
23 
32 #include "stage/gtk-base.hpp"
34 
35 #include "lib/util.hpp"
36 
37 using util::isnil;
38 
39 
40 namespace stage {
41 namespace timeline {
42 
43 
44 
45 
46  LayoutElement::~LayoutElement() { } // emit VTables here....
47 
48 
49 
69  void
71  {
72  this->reset();
73  // Phase-1 : collect Layout information
74  for (auto elm : elms_)
75  elm->establishLayout (*this);
76  // Phase-2 : reflow and balance the Layout
77  collectLayout_ = false;
78  for (auto elm : elms_)
79  elm->completeLayout (*this);
80  }
81 
83  void
85  {
86  ASSERT (not isnil(elms_));
87  collectLayout_ = true;
88  }
89 
90 
91 
92 
93 
94 }}// namespace stage::timeline
A collaboration to establish a globally coherent timeline display layout.
virtual ~LayoutElement()
this is an interface
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
void reset()
pristine state for the next DisplayEvaluation pass
A set of basic GTK includes for the UI.
void perform()
Conduct global passes over the wired layout elements, in order to adjust and coordinate the overall t...