50 #ifndef FORMATTERREGION_H_
51 #define FORMATTERREGION_H_
53 #include "util/Color.h"
54 #include "util/functions.h"
55 using namespace ::br::pucrio::telemidia::util;
57 #include "ncl/layout/LayoutRegion.h"
58 using namespace ::br::pucrio::telemidia::ncl::layout;
60 #include "ncl/descriptor/Descriptor.h"
61 #include "ncl/descriptor/DescriptorUtil.h"
62 using namespace ::br::pucrio::telemidia::ncl::descriptor;
64 #include "ncl/transition/Transition.h"
65 #include "ncl/transition/TransitionUtil.h"
66 using namespace ::br::pucrio::telemidia::ncl::transition;
68 #include "mb/IInputManager.h"
69 #include "mb/ILocalScreenManager.h"
70 #include "mb/interface/IWindow.h"
71 using namespace ::br::pucrio::telemidia::ginga::core::mb;
73 #include "FocusSourceManager.h"
74 using namespace ::br::pucrio::telemidia::ginga::ncl::model::presentation::focus;
86 namespace presentation {
93 LayoutRegion* ncmRegion;
94 LayoutRegion* originalRegion;
96 IWindow* outputDisplay;
98 ISurface* renderedSurface;
103 Color* focusBorderColor;
104 int focusBorderWidth;
105 string focusComponentSrc;
106 Color* selBorderColor;
107 string selComponentSrc;
118 string transitionOut;
119 bool abortTransitionIn;
120 bool abortTransitionOut;
121 pthread_mutex_t mutex;
122 pthread_mutex_t mutexT;
123 pthread_mutex_t mutexFI;
134 static const short UNSELECTED = 0;
135 static const short FOCUSED = 1;
136 static const short SELECTED = 2;
139 string objectId,
void* descriptor,
void* layoutManager);
144 void initializeNCMRegion();
147 void setZIndex(
int zIndex);
150 void setPlan(
string plan);
153 void setFocusIndex(
string focusIndex);
154 string getFocusIndex();
156 void setMoveUp(
string moveUp);
159 void setMoveDown(
string moveDown);
160 string getMoveDown();
162 void setMoveLeft(
string moveLeft);
163 string getMoveLeft();
165 void setMoveRight(
string moveRight);
166 string getMoveRight();
168 void setFocusBorderColor(
Color* focusBorderColor);
169 Color* getFocusBorderColor();
171 void setFocusBorderWidth(
int focusBorderWidth);
172 int getFocusBorderWidth();
174 void setFocusComponentSrc(
string focusComponentSrc);
175 string getFocusComponentSrc();
177 void setSelBorderColor(
Color* selBorderColor);
178 Color* getSelBorderColor();
180 void setSelBorderWidth(
int selBorderWidth);
181 int getSelBorderWidth();
183 void setSelComponentSrc(
string selComponentSrc);
184 string getSelComponentSrc();
187 Color* focusBorderColor,
188 int focusBorderWidth,
189 string focusComponentSrc,
190 Color* selBorderColor,
192 string selComponentSrc);
194 void* getLayoutManager();
195 GingaWindowID getOutputId();
203 ISurface* component);
210 ISurface* component);
212 void updateCurrentComponentSize();
215 void updateRegionBounds();
221 bool intersects(
int x,
int y);
222 LayoutRegion* getLayoutRegion();
223 LayoutRegion* getOriginalRegion();
225 GingaWindowID prepareOutputDisplay(
226 ISurface* renderedSurface,
float cvtIndex);
231 void performOutTrans();
232 double getOutTransDur();
234 void setRegionVisibility(
bool visible);
237 void disposeOutputDisplay();
243 void bringChildrenToFront(LayoutRegion* parentRegion);
244 void traverseFormatterRegions(
245 LayoutRegion *region, LayoutRegion* baseRegion);
247 void bringHideWindowToFront(
248 LayoutRegion* baseRegion, LayoutRegion* hideRegion);
253 void setGhostRegion(
bool ghost);
255 short getFocusState();
256 bool setSelection(
bool selOn);
257 void setFocus(
bool focusOn);
260 Color* getBackgroundColor();
262 float getTransparency();
263 void setTransparency(
string strTrans);
264 void setTransparency(
float transparency);
265 void setBackgroundColor(
string color);
266 void setBackgroundColor(
Color *color);
267 void setChromaKey(
string value);
268 void setRgbChromaKey(
string value);
269 void setFit(
string value);
270 void setFit(
short value);
271 void setScroll(
string value);
272 void setScroll(
short value);
275 void barWipe(Transition* transition,
bool isShowEffect);
276 static void* barWipeT(
void* ptr);
277 void fade(Transition* transition,
bool isShowEffect);
278 static void* fadeT(
void* ptr);
281 void lockTransition();
282 void unlockTransition();
283 void lockFocusInfo();
284 void unlockFocusInfo();
Definition: FormatterRegion.h:294
Definition: FormatterRegion.h:87