DUDS
Distributed Update of Data from Something
GridLayoutConfig.cpp
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  */
11 
12 namespace duds { namespace ui { namespace graphics {
13 
28 
29 
30 GridLayoutConfig::GridLayoutConfig(const GridSizeStep &step) : flags(step.flags) {
31  sizes.push_back(step);
32 }
33 
35  sizes.emplace_back(std::move(step));
36 }
37 
38 
39 } } }
static constexpr Flags PanelPositionVertMask
Mask of all configuration flags affecting a panel's vertical positioning.
static constexpr Flags PanelHeightExpand
Request that this panel's height be expanded past the requested minumum if there is extra space avail...
static constexpr Flags PanelCenter
Center the panel horizontally and vertically within its grid spot.
A single size-step used by a PriorityGridLayout to place a Panel.
static constexpr Flags PanelWidthExpand
Request that this panel's width be expanded past the requested minumum if there is extra space availa...
move_impl move(unsigned int c, unsigned int r)
Display stream manipulator that moves the display cursor to the given location.
Flags flags
The configuration flags used for the panel for all of its size-steps.
static constexpr Flags PanelCenterVert
Center the panel vertically within its grid spot.
static constexpr Flags PanelJustifyDown
Place the panel's bottom edge to the far bottom in its grid spot.
static constexpr Flags PanelJustifyLeft
Place the panel's left edge to the far left in its grid spot.
static constexpr Flags PanelHidden
The panel is not showm; this prevents it from being placed in the layout.
static constexpr Flags PanelJustifyUp
Place the panel's top edge to the far top in its grid spot.
GridSizeSteps sizes
The size-steps for the panel.
duds::general::BitFlags< struct GridLayoutConfigFlags > Flags
The type for configuration flags that adjust how the panel is placed.
static constexpr Flags PanelJustifyRight
Place the panel&#39;s right edge to the far right in its grid spot.
GridLayoutConfig()=default
Makes a new configuration that lacks any size-steps and has the default flags.
General graphics related code.
Definition: HD44780.hpp:15
static constexpr Flags PanelExpand
Request both width and height expansion.
static constexpr Flags PanelPositionMask
Mask of all configuration flags affecting panel position.
static constexpr Flags PanelPositionHorizMask
Mask of all configuration flags affecting a panel&#39;s horizontal positioning.
static constexpr Flags PanelCenterHoriz
Center the panel horizontally within its grid spot.