X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inc%2FIntFontManager.h;h=73bb35146b2c476354c14ca4437ea5af8a1224c9;hb=324d5cb2fb4cbdf85e040dc87e6702c8f4412b26;hp=a4ac1366f5674cbae5e5199624edc76dd1c20b79;hpb=4e59896bde448c87ab4ac47f52ee7c6a4d34f778;p=apps%2Fosp%2FInternet.git diff --git a/inc/IntFontManager.h b/inc/IntFontManager.h index a4ac136..73bb351 100644 --- a/inc/IntFontManager.h +++ b/inc/IntFontManager.h @@ -1,115 +1,115 @@ -// - -// Copyright (c) 2012 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -//!Internet -/*@file: FontManager.h - *@brief: This header file contains the declarations of the %FontManager class. - */ - -#ifndef _INT_FONT_MANAGER_H_ -#define _INT_FONT_MANAGER_H_ - -#include -#include - - -/** -* @enum FontId -* -* Defines a ID for a different font size -* -*/ -enum FontId -{ - FONT_INVALID = -1, - - FONT_GT34 = 0, - FONT_GT32, - FONT_GT30, - FONT_GT26, - FONT_GT20, - FONT_GT14, - - FONT_GP40, - FONT_GP38, - FONT_GP36, - FONT_GP34, - FONT_GP30, - FONT_GP26, - FONT_GP24, - FONT_GP18, - - FONT_GS30, - FONT_GS34, - - MAX_FONT -}; - -/** -* @struct FontTable -* -* Defines a table for text fontName, fontStyle and fontSize -* -*/ -struct FontTable -{ - Tizen::Graphics::Font* pInstance; - Tizen::Base::String fontName; - int fontStyle; - int fontSize; -}; - -/** - * @class FontManager - * @brief This class declares functions which can change text font properties - */ -class FontManager -{ -public: - /** - * Gets the font using fontValue - * - * @return * This header file contains the declarations of the %FontManager class. - * - * pointer to a font value - * @param[in] fontValue The ID of the font - * @remarks To work properly, the existing fontValue has to be passed. - */ - static Tizen::Graphics::Font* GetFont(FontId fontValue); - - /** - * Release all the created fonts - * - * @return no return value - * @param[in] no input parameters - */ - static void ReleaseFonts(void); - -private: - /** - * Creates a font using fontValue - * - * @return no return value - * @param[in] fontValue The ID of the font - * @remarks To work properly, the existing fontValue has to be passed. - */ - static void CreateFont(FontId fontValue); - -}; - - -#endif //_INT_FONT_MANAGER_H_ +// + +// Copyright (c) 2012 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://floralicense.org/license/ +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an AS IS BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +//!Internet +/*@file: FontManager.h + *@brief: This header file contains the declarations of the %FontManager class. + */ + +#ifndef _INT_FONT_MANAGER_H_ +#define _INT_FONT_MANAGER_H_ + +#include +#include + + +/** +* @enum FontId +* +* Defines a ID for a different font size +* +*/ +enum FontId +{ + FONT_INVALID = -1, + + FONT_GT34 = 0, + FONT_GT32, + FONT_GT30, + FONT_GT26, + FONT_GT20, + FONT_GT14, + + FONT_GP40, + FONT_GP38, + FONT_GP36, + FONT_GP34, + FONT_GP30, + FONT_GP26, + FONT_GP24, + FONT_GP18, + + FONT_GS30, + FONT_GS34, + + MAX_FONT +}; + +/** +* @struct FontTable +* +* Defines a table for text fontName, fontStyle and fontSize +* +*/ +struct FontTable +{ + Tizen::Graphics::Font* pInstance; + Tizen::Base::String fontName; + int fontStyle; + int fontSize; +}; + +/** + * @class FontManager + * @brief This class declares functions which can change text font properties + */ +class FontManager +{ +public: + /** + * Gets the font using fontValue + * + * @return * This header file contains the declarations of the %FontManager class. + * + * pointer to a font value + * @param[in] fontValue The ID of the font + * @remarks To work properly, the existing fontValue has to be passed. + */ + static Tizen::Graphics::Font* GetFont(FontId fontValue); + + /** + * Release all the created fonts + * + * @return no return value + * @param[in] no input parameters + */ + static void ReleaseFonts(void); + +private: + /** + * Creates a font using fontValue + * + * @return no return value + * @param[in] fontValue The ID of the font + * @remarks To work properly, the existing fontValue has to be passed. + */ + static void CreateFont(FontId fontValue); + +}; + + +#endif //_INT_FONT_MANAGER_H_