Last change
on this file since 14 was 2, checked in by Sanahuja Guillaume, 8 years ago |
flaircore
|
File size:
976 bytes
|
Rev | Line | |
---|
[2] | 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: 2014/12/04
|
---|
| 6 | // filename: LayoutPosition.cpp
|
---|
| 7 | //
|
---|
| 8 | // author: Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: Class to define a position in a layout on the ground station
|
---|
| 14 | //
|
---|
| 15 | //
|
---|
| 16 | /*********************************************************************/
|
---|
| 17 | #include "LayoutPosition.h"
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | namespace flair
|
---|
| 21 | {
|
---|
| 22 | namespace gui
|
---|
| 23 | {
|
---|
| 24 |
|
---|
| 25 | LayoutPosition::LayoutPosition(const Layout* layout,int16_t row,int16_t col)
|
---|
| 26 | {
|
---|
| 27 | this->layout=layout;
|
---|
| 28 | this->row=row;
|
---|
| 29 | this->col=col;
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | LayoutPosition::~LayoutPosition()
|
---|
| 33 | {
|
---|
| 34 |
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | const Layout* LayoutPosition::getLayout(void) const
|
---|
| 38 | {
|
---|
| 39 | return layout;
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | int16_t LayoutPosition::Row(void) const
|
---|
| 43 | {
|
---|
| 44 | return row;
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | int16_t LayoutPosition::Col(void) const
|
---|
| 48 | {
|
---|
| 49 | return col;
|
---|
| 50 | }
|
---|
| 51 |
|
---|
| 52 | } // end namespace gui
|
---|
| 53 | } // end namespace flair
|
---|
Note:
See
TracBrowser
for help on using the repository browser.