plugin_font.h

Go to the documentation of this file.
00001 /*
00002  * File Name: plugin_font.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_FONT_H_
00028 #define PLUGIN_FONT_H_
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 #include "plugin_type.h"
00035 #include "plugin_unknown.h"
00036 
00037 /**
00038  * @brief Universal Document Shell Plugin Font interface.
00039  * Through IPluginFont, caller can get/set font size and font family.
00040  */
00041 typedef struct
00042 {
00043     /**
00044      * @brief Get the font size in point.
00045      * @param thiz IPluginUnknown pointer to the object which implments
00046      * IPluginFont.
00047      * @return This function returns the font size in point.
00048      */
00049     int (* get_font_size)( IPluginUnknown   *thiz );
00050 
00051     /**
00052      * @brief Set the font size in point.
00053      * @param thiz IPluginUnknown pointer to the object which implments 
00054      * IPluginFont.
00055      * @param font_size The font size to be set.
00056      * @return TODO. Add return code here.
00057      */
00058     PluginStatus (* set_font_size)( IPluginUnknown      *thiz, 
00059                                     const unsigned int  font_size );
00060 
00061     
00062     /**
00063      * @brief Get the font family.
00064      * @param thiz IPluginUnknown pointer to the object which implments 
00065      * IPluginFont.
00066      * @param font_family The output string of the font_family.
00067      * @return TODO. Add return code here.
00068      */
00069     PluginStatus (* get_font_family)( IPluginUnknown    *thiz, 
00070                                       UDSString         *font_family );
00071 
00072     /**
00073      * @brief Set the font family.
00074      * @param thiz IPluginUnknown pointer to the object which implments 
00075      * IPluginFont.
00076      * @param font_family The input string of the font_family which is going
00077      * to be set.
00078      * @return TODO. Add return code here.
00079      */
00080     PluginStatus (* set_font_family)( IPluginUnknown    *thiz, 
00081                                       const UDSString   *font_family );
00082 
00083 } IPluginFont;
00084 
00085 
00086 
00087 #ifdef __cplusplus
00088 }
00089 #endif 
00090 
00091 #endif
00092 
Generated by  doxygen 1.6.2-20100208