50 #ifndef FORMATTERDEVICEREGION_H_
51 #define FORMATTERDEVICEREGION_H_
53 #include "util/Color.h"
54 using namespace ::br::pucrio::telemidia::util;
56 #include "ncl/Entity.h"
57 using namespace ::br::pucrio::telemidia::ncl;
59 #include "ncl/layout/LayoutRegion.h"
60 using namespace ::br::pucrio::telemidia::ncl::layout;
62 #include "system/thread/Thread.h"
63 using namespace ::br::pucrio::telemidia::ginga::core::system::thread;
76 namespace presentation {
80 int top, left, width, height;
81 vector<LayoutRegion*>* sortedRegions;
82 set<LayoutRegion*> regionSet;
83 pthread_mutex_t rMutex;
88 void addRegion(LayoutRegion *region);
89 LayoutRegion *cloneRegion();
90 int compareWidthSize(
string w);
91 int compareHeightSize(
string h);
92 short getBackgroundColor();
97 LayoutRegion *getRegion(
string id);
98 LayoutRegion *getRegionRecursively(
string id);
99 vector<LayoutRegion*> *getRegions();
104 int getZIndexValue();
105 bool isBottomPercentual();
106 bool isHeightPercentual();
107 bool isLeftPercentual();
108 bool isRightPercentual();
109 bool isTopPercentual();
110 bool isWidthPercentual();
112 bool removeRegion(LayoutRegion *region);
113 void removeRegions();
114 void setBackgroundColor(
Color *newBackgroundColor);
115 bool setBottom(
double newBottom,
bool isPercentual);
116 bool setHeight(
double newHeight,
bool isPercentual);
117 bool setLeft(
double newLeft,
bool isPercentual);
118 bool setRight(
double newRight,
bool isPercentual);
119 void setTitle(
string newTitle);
120 bool setTop(
double newTop,
bool isPercentual);
121 bool setWidth(
double newWidth,
bool isPercentual);
122 void setZIndex(
int newZIndex);
123 vector<LayoutRegion*> *getRegionsSortedByZIndex();
124 vector<LayoutRegion*> *getRegionsOverRegion(
125 LayoutRegion *region);
127 LayoutRegion *getParent();
128 void setParent(LayoutRegion *parent);
129 int getTopInPixels();
130 int getBottomInPixels();
131 int getRightInPixels();
132 int getLeftInPixels();
133 int getHeightInPixels();
134 int getWidthInPixels();
138 void setMovable(
bool movable);
139 void setResizable(
bool resizable);
140 void setDecorated(
bool decorated);
148 void resetDecorated();
150 void resetResizable();
151 int getAbsoluteLeft();
152 int getAbsoluteTop();
156 void setId(
string id);
157 Entity *getDataEntity();
158 int compareTo(
void *arg0);
Definition: FormatterDeviceRegion.h:77