source: flair-src/trunk/lib/FlairCore/src/Layout.cpp@ 258

Last change on this file since 258 was 15, checked in by Bayard Gildas, 9 years ago

sources reformatted with flair-format-dir script

File size: 1.1 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5// created: 2011/10/07
6// filename: Layout.cpp
7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: Abstract class to display a layout on the ground station
14//
15//
16/*********************************************************************/
17#include "Layout.h"
18#include "LayoutPosition.h"
19#include "Mutex.h"
20
21using std::string;
22
23namespace flair {
24namespace gui {
25
26Layout::Layout(const Widget *parent, string name, string type)
27 : Widget(parent, name, type) {
28 mutex = new core::Mutex(this, name);
29}
30
31Layout::~Layout() {}
32
33LayoutPosition *Layout::LastRowLastCol(void) const {
34 return new LayoutPosition(this, -1, 0);
35}
36
37LayoutPosition *Layout::NewRow(void) const {
38 return new LayoutPosition(this, -1, -1);
39}
40
41LayoutPosition *Layout::At(uint16_t row, uint16_t col) const {
42 return new LayoutPosition(this, row, col);
43}
44
45} // end namespace gui
46} // end namespace flair
Note: See TracBrowser for help on using the repository browser.