2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 //==========================================================================
12 * @file CicoModuleInterface.h
14 * @brief This file is definition of CicoModuleInterface class
16 //==========================================================================
17 #ifndef __CICO_MODULE_IMPLEMENTATION_H__
18 #define __CICO_MODULE_IMPLEMENTATION_H__
21 #include "CicoModuleInterface.h"
23 //==========================================================================
25 * @brief This class provide the common module component interfaces
27 //==========================================================================
28 class CicoCommonModule : public CicoModuleInterface
31 // default constructor
35 virtual ~CicoCommonModule();
38 virtual bool Terminate(void);
41 virtual void Show(void);
44 virtual void Hide(void);
46 // set position of module
47 virtual void SetPos(int x, int y);
50 virtual void SetSize(int w, int h);
53 virtual void Move(int diffx, int diffy);
56 virtual void Resize(double ratew, double rateh);
58 // reset position and size of module
59 virtual void Reallocate(int standardx, int standardy,
60 double ratew, double rateh);
63 Evas_Object *GetRawData(void) const;
64 bool operator==(const CicoCommonModule& moduleb) {
65 return (this->evasobj_ == moduleb.evasobj_);
69 Evas_Object *evasobj_; /// module object
70 int posx_; /// module position x
71 int posy_; /// module position y
72 int width_; /// module width
73 int height_; /// module height
76 //==========================================================================
78 * @brief This class provide the image module
80 //==========================================================================
81 class CicoImageModule : public CicoCommonModule
84 // default constructor
88 virtual ~CicoImageModule();
90 // initialize of image module
91 bool Initialize(Evas_Object *windowobj);
93 // set filepath of image module
94 bool SetFilePath(const char *path);
96 char filepath_[256]; ///image file path
99 //==========================================================================
101 * @brief This class provide the text module
103 //==========================================================================
104 class CicoTextModule : public CicoCommonModule
107 // default contructor
113 // initialize of text module
114 bool Initialize(Evas_Object *windowobj);
116 // set text of text module
117 bool SetText(const char *text);
119 // set font of text module
120 void SetFont(const char *style, const int size);
122 // set color of text module
123 void SetColor(const int r, const int g, const int b, const int a);
125 static const double FONT_SIZE_RATE; /// rate of font size
126 char text_[256]; /// text of textmodule
127 char fontstyle_[256]; /// font style of textmodule
128 int fontsize_; /// font size of textmodule
130 #endif // __CICO_MODULE_IMPLEMENTATION_H__
131 // vim: set expandtab ts=4 sw=4: