Changeset 15 in flair-src for trunk/lib/FlairCore/src/Layout.cpp
- Timestamp:
- 04/08/16 15:40:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/Layout.cpp
r2 r15 21 21 using std::string; 22 22 23 namespace flair 24 { 25 namespace gui 26 { 23 namespace flair { 24 namespace gui { 27 25 28 Layout::Layout(const Widget * parent,string name,string type): Widget(parent,name,type)29 {30 mutex=new core::Mutex(this,name);26 Layout::Layout(const Widget *parent, string name, string type) 27 : Widget(parent, name, type) { 28 mutex = new core::Mutex(this, name); 31 29 } 32 30 33 Layout::~Layout() 34 { 31 Layout::~Layout() {} 35 32 33 LayoutPosition *Layout::LastRowLastCol(void) const { 34 return new LayoutPosition(this, -1, 0); 36 35 } 37 36 38 LayoutPosition* Layout::LastRowLastCol(void) const 39 { 40 return new LayoutPosition(this,-1,0); 37 LayoutPosition *Layout::NewRow(void) const { 38 return new LayoutPosition(this, -1, -1); 41 39 } 42 40 43 LayoutPosition* Layout::NewRow(void) const 44 { 45 return new LayoutPosition(this,-1,-1); 46 } 47 48 LayoutPosition* Layout::At(uint16_t row,uint16_t col) const 49 { 50 return new LayoutPosition(this,row,col); 41 LayoutPosition *Layout::At(uint16_t row, uint16_t col) const { 42 return new LayoutPosition(this, row, col); 51 43 } 52 44
Note:
See TracChangeset
for help on using the changeset viewer.