Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUILayouterResource.h
Go to the documentation of this file.
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUI_LAYOUTER_RESOURCE__H_
11#define GUI_LAYOUTER_RESOURCE__H_
12#include <limits.h>
13
15//
16// DO NOT EDIT THIS FILE!!! Add your own IDS within UserXXXResource.h files!
17// DO NOT EDIT THIS FILE!!! Add your own IDS within UserXXXResource.h files!
18// DO NOT EDIT THIS FILE!!! Add your own IDS within UserXXXResource.h files!
19//
20
21// -----------------------------------------------------------------------------------------
23#define LAYOUTER_TABLE \
24ENTRY(LAYOUTER_PERCENTAGE, CGUILayouterPercentage) \
25ENTRY(LAYOUTER_ALIGN_TO_PARENT, CGUILayouterAlignToParent) \
26ENTRY(LAYOUTER_LIST, CGUILayouterList) \
27ENTRY(LAYOUTER_GRID, CGUILayouterGrid) \
28ENTRY(LAYOUTER_REPOSITION, CGUILayouterReposition) \
29ENTRY(LAYOUTER_ANCHOR, CGUILayouterAnchor)
30
31// Calculate the value for the START_TAG used in th enum definition below.
32#define ENTRY_ENUM(a) -1
33#define ENTRY(lay, layclass) -1
35#undef ENTRY
36#undef ENTRY_ENUM
37
40{
41 LAYOUTER_START_TAG = ciCalculatedLayStartTag - 1, // we left out DUMMY_LAYOUTER
42
43#define ENTRY_ENUM(a) a,
44#define ENTRY(layouter_id, layouter_classname) layouter_id,
46
47 DUMMY_LAYOUTER, // must be a constant 0
48#undef ENTRY
49#undef ENTRY_ENUM
50
51 GUILIANI_INTERNAL_LAYOUTER = INT_MAX // Do not touch this. Required for ensuring consistent enum type size across libraries.
52};
53
54// Check if the DUMMY value is always 0. If not compile error!
55typedef int static_assert_something[(DUMMY_LAYOUTER == 0) ? 1 : -1];
56
57#endif
const int ciCalculatedLayStartTag
preprocessor generates for all entries of SOUND_TABLE: -1 -1 -1..., resulting in a mathematical expre...
Definition: GUILayouterResource.h:34
int static_assert_something[(DUMMY_LAYOUTER==0) ? 1 :-1]
Will throw compile error negative subscript if DUMMY_LAYOUTER is NOT 0!
Definition: GUILayouterResource.h:55
#define LAYOUTER_TABLE
LayouterIDs.
Definition: GUILayouterResource.h:23
LayouterClassID_t
List of layouter resource ids.
Definition: GUILayouterResource.h:40