plugin_zoom.h

Go to the documentation of this file.
00001 /*
00002  * File Name: plugin_zoom.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_ZOOM_H_
00028 #define PLUGIN_ZOOM_H_
00029 
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 #include "plugin_type.h"
00036 #include "plugin_unknown.h"
00037 
00038 /**
00039  * @brief Universal Document Shell Plugin Zoom interface
00040  * Through IPluginZoom, caller can set/get zoom factors to/from plugin.
00041  * The zoom factor used here are the ratio related to the whole page.
00042  * That means the value zone of a zoom factor is [0,1].
00043  */
00044 typedef struct
00045 {
00046     /**
00047      * @brief Set zoom factor.
00048      * @param thiz IPluginUnknown pointer to the render settings object.
00049      * @param zoom_factor Zoom factor to be set.
00050      * @return TODO. Add return codes here.
00051      */
00052     PluginStatus (* set_zoom_factor)( IPluginUnknown* thiz,
00053                                       const float zoom_factor );
00054 
00055     /**
00056      * @brief Query zoom factor.
00057      * @param thiz IPluginUnknown pointer to the render settings object.
00058      * @return Zoom factor in float type.
00059      */
00060     float (* get_zoom_factor)( IPluginUnknown* thiz );
00061 } IPluginZoom;
00062 
00063 #ifdef __cplusplus
00064 }
00065 #endif 
00066 
00067 #endif
Generated by  doxygen 1.6.2-20100208