00001 /* 00002 * File Name: plugin_type.h 00003 */ 00004 00005 /* 00006 * This file is part of uds-plugin-common. 00007 * 00008 * uds-plugin-common is free software: you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation, either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * uds-plugin-common is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00020 */ 00021 00022 /** 00023 * Copyright (C) 2008 iRex Technologies B.V. 00024 * All rights reserved. 00025 */ 00026 00027 #ifndef PLUGIN_TYPES_H_ 00028 #define PLUGIN_TYPES_H_ 00029 00030 #ifdef __cplusplus 00031 extern "C" { 00032 #endif 00033 00034 #include "uds_string.h" 00035 00036 /** 00037 * @brief PluginBool is the basic plugin boolean type. 00038 */ 00039 typedef enum 00040 { 00041 PLUGIN_FALSE = 0, 00042 PLUGIN_TRUE = 1 00043 } PluginBool; 00044 00045 /** 00046 * @brief PluginRange in [] format identifies a document object. 00047 */ 00048 typedef struct 00049 { 00050 UDSString* start_anchor; 00051 UDSString* end_anchor; 00052 } PluginRange; 00053 00054 typedef struct 00055 { 00056 int x; /**< The x coordinate of top left point */ 00057 int y; /**< The y coordinate of top left point */ 00058 int width; /**< The width of the rectangle */ 00059 int height; /**< The height of the rectangle */ 00060 } PluginRectangle; 00061 00062 /** 00063 * @brief Rotation direction definition 00064 */ 00065 typedef enum 00066 { 00067 Clockwise_Degrees_0 = 0, /**< Rotate 0 degree */ 00068 Clockwise_Degrees_90 = 90, /**< Rotate 90 degrees */ 00069 Clockwise_Degrees_180 = 180, /**< Rotate 180 degrees */ 00070 Clockwise_Degrees_270 = 270, /**< Rotate 270 degrees */ 00071 Clockwise_Degrees_360 = 360 /**< Rotate 360 degrees */ 00072 } PluginRotationDegree; 00073 00074 #ifdef __cplusplus 00075 } 00076 #endif 00077 00078 #endif 00079