| 1 |
/* packer.hh |
| 2 |
* This file is part of ndk library |
| 3 |
* Copyright (c) 2003,2004 by Stanislav Ievlev |
| 4 |
* |
| 5 |
* This file is covered by the GNU Library General Public License, |
| 6 |
* which should be included with libndk as the file COPYING. |
| 7 |
*/ |
| 8 |
#pragma once |
| 9 |
|
| 10 |
namespace ndk |
| 11 |
{ |
| 12 |
struct panel; |
| 13 |
|
| 14 |
// NDK Aligments |
| 15 |
namespace align |
| 16 |
{ |
| 17 |
enum type // possible aligments of the objects |
| 18 |
{ |
| 19 |
left, // to the left edge |
| 20 |
right, // to the right edge |
| 21 |
center // center object |
| 22 |
}; |
| 23 |
|
| 24 |
/** |
| 25 |
* tell us where to move widget to align it's under other widget |
| 26 |
* note: this will return relative coordinate, you may want to convert it into absolute after it |
| 27 |
*/ |
| 28 |
int pos (int internal_size, int external_size, type align); |
| 29 |
} |
| 30 |
} |