diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/dktools/dk4align.h |
Initial commit
Diffstat (limited to 'support/dktools/dk4align.h')
-rw-r--r-- | support/dktools/dk4align.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/support/dktools/dk4align.h b/support/dktools/dk4align.h new file mode 100644 index 0000000000..6b8e71c5a3 --- /dev/null +++ b/support/dktools/dk4align.h @@ -0,0 +1,53 @@ +#ifndef DK4ALIGN_H_INCLUDED +/** Protection against multiple inclusions. */ +#define DK4ALIGN_H_INCLUDED 1 + +/** How to align an object horizontally in the available room. +*/ +typedef enum { + /** Horizontal alignment: align object left in room. + */ + DK4_ALIGN_H_LEFT = 0, + + /** Horizontal alignment: align object centered in room. + */ + DK4_ALIGN_H_CENTERED , + + /** Horizontal alignment: align object right in room. + */ + DK4_ALIGN_H_RIGHT , + + /** Horizontal alignment: stretch object to use + available room completely. + */ + DK4_ALIGN_H_STRETCH + +} dk4_align_h_t; + + +/** How to align an object vertically in the available room. +*/ +typedef enum { + /** Vertical alignment: align object on top of room. + */ + DK4_ALIGN_V_TOP = 0, + + /** Vertical alignment: align object centered in room. + */ + DK4_ALIGN_V_CENTERED , + + /** Vertical alignment: align object on bottom. + */ + DK4_ALIGN_V_BOTTOM , + + /** Vertical alignment: stretch object to use available + room completely. + */ + DK4_ALIGN_V_STRETCH +} dk4_align_v_t; + + +/* vim: set ai sw=4 ts=4 : */ + +#endif + |