| 1 |
/* File: geometry_direction.h; Copyright and License: see below */ |
| 2 |
|
| 3 |
#ifndef GEOMETRY_DIRECTION_H |
| 4 |
#define GEOMETRY_DIRECTION_H |
| 5 |
|
| 6 |
/* public file for the doxygen documentation: */ |
| 7 |
/*! |
| 8 |
* \file |
| 9 |
* \brief Defines layout directions of objects |
| 10 |
*/ |
| 11 |
|
| 12 |
/*! |
| 13 |
* \brief enumeration of directions |
| 14 |
* |
| 15 |
* Do not assume any order. |
| 16 |
*/ |
| 17 |
enum geometry_direction_enum { |
| 18 |
GEOMETRY_DIRECTION_CENTER = 0, /*!< the direction points to the center of the object */ |
| 19 |
GEOMETRY_DIRECTION_LEFT = 1, /*!< the direction points to the left */ |
| 20 |
GEOMETRY_DIRECTION_UP_LEFT = 2, /*!< the direction points up-left */ |
| 21 |
GEOMETRY_DIRECTION_UP = 3, /*!< the direction points up */ |
| 22 |
GEOMETRY_DIRECTION_UP_RIGHT = 4, /*!< the direction points up-right */ |
| 23 |
GEOMETRY_DIRECTION_RIGHT = 5, /*!< the direction points to the right */ |
| 24 |
GEOMETRY_DIRECTION_DOWN_RIGHT = 6, /*!< the direction points down-right */ |
| 25 |
GEOMETRY_DIRECTION_DOWN = 7, /*!< the direction points down */ |
| 26 |
GEOMETRY_DIRECTION_DOWN_LEFT = 8, /*!< the direction points down-left */ |
| 27 |
GEOMETRY_DIRECTION_MAX = 9, /*!< maximum number of directions, can be used to iterate over all directions */ |
| 28 |
}; |
| 29 |
|
| 30 |
typedef enum geometry_direction_enum geometry_direction_t; |
| 31 |
|
| 32 |
#endif /* GEOMETRY_DIRECTION_H */ |
| 33 |
|
| 34 |
|
| 35 |
/* |
| 36 |
Copyright 2018-2026 Andreas Warnke |
| 37 |
|
| 38 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 39 |
you may not use this file except in compliance with the License. |
| 40 |
You may obtain a copy of the License at |
| 41 |
|
| 42 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 43 |
|
| 44 |
Unless required by applicable law or agreed to in writing, software |
| 45 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 46 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 47 |
See the License for the specific language governing permissions and |
| 48 |
limitations under the License. |
| 49 |
*/ |