ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/dclient/include/ndk/align.hh
Revision: 1.1
Committed: Sun Oct 24 20:31:42 2010 UTC (15 years, 11 months ago) by sf-pippijn
Branch: MAIN
CVS Tags: HEAD
Log Message:
use EV and plain sockets instead of asio

File Contents

# User Rev Content
1 sf-pippijn 1.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     }