Changeset 8509 in orxonox.OLD for branches/gui/src/lib/gui/gl/glgui_style.cc
- Timestamp:
- Jun 16, 2006, 12:22:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_style.cc
r8469 r8509 30 30 { 31 31 _font = NULL; 32 this->reset(); 32 33 33 34 … … 65 66 66 67 void GLGuiStyle::loadParams(const TiXmlElement* root) 67 { 68 } 68 {} 69 69 70 70 void GLGuiStyle::setBorderLeft(float value) … … 81 81 void GLGuiStyle::setBorderLeftS(float value, const std::string& state) 82 82 { 83 84 83 } 85 84 … … 107 106 108 107 void GLGuiStyle::setBorderTop(float value, OrxGui::State state) 109 { 110 _style[state]._borderTop = value; 108 { 109 _style[state]._borderTop = value; 110 } 111 112 void GLGuiStyle::setBorderTopS(float value, const std::string& state) 113 {} 114 115 116 void GLGuiStyle::setBorderBottom(float value) 117 { 118 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 119 setBorderBottom(value, (OrxGui::State)i); 120 } 121 122 void GLGuiStyle::setBorderBottom(float value, OrxGui::State state) 123 { 124 _style[state]._borderBottom = value; 125 } 126 127 void GLGuiStyle::setBorderBottomS(float value, const std::string& state) 128 {} 129 130 131 void GLGuiStyle::setTextSize(float value) 132 { 133 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 134 setTextSize(value, (OrxGui::State)i); 135 } 136 137 void GLGuiStyle::setTextSize(float value, OrxGui::State state) 138 { 139 _style[state]._textSize = value; 140 } 141 142 void GLGuiStyle::setTextSizeS(float value, const std::string& state) 143 {} 144 145 146 void GLGuiStyle::setBackgroundColor(const Color& color) 147 { 148 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 149 setBackgroundColor(color, (OrxGui::State)i); 150 } 151 152 void GLGuiStyle::setBackgroundColor(const Color& color, OrxGui::State state) 153 { 154 _style[state]._backgroundColor = color; 155 } 156 157 void GLGuiStyle::setBackgroundColorS(float r, float g, float b, float a, const std::string& state) 158 {} 159 160 161 void GLGuiStyle::setBackgroundTexture(const Texture& texture) 162 { 163 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 164 setBackgroundTexture(texture, (OrxGui::State)i); 165 } 166 167 void GLGuiStyle::setBackgroundTexture(const Texture& texture, OrxGui::State state) 168 { 169 _style[state]._backgroundTexture = texture; 170 } 171 172 void GLGuiStyle::setBackgroundTexture(const std::string& textureName, const std::string& state) 173 {} 174 175 176 void GLGuiStyle::setForegroundColor(const Color& color) 177 { 178 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 179 setForegroundColor(color, (OrxGui::State)i); 180 } 181 182 void GLGuiStyle::setForegroundColor(const Color& color, OrxGui::State state) 183 { 184 _style[state]._foregroundColor = color; 185 } 186 187 void GLGuiStyle::setForegroundColorS(float r, float g, float b, float a, const std::string& state) 188 {} 189 190 191 192 void GLGuiStyle::setFeaturePosition(FeaturePosition featurePosition) 193 { 194 this->_featurePosition = featurePosition; 195 } 196 197 void GLGuiStyle::setFeaturePosition(const std::string& featurePosition) 198 {} 199 200 201 void GLGuiStyle::setFont(Font* font) 202 { 203 this->_font = font; 204 } 205 206 void GLGuiStyle::setFont(const std::string& fontName) 207 { 208 //this->font = new Font(fontName); 209 } 210 211 212 void GLGuiStyle::setAnimated(bool animated) 213 { 214 this->_animated = animated; 215 } 216 217 void GLGuiStyle::setAnimatedStateChanges(bool animated) 218 { 219 this->_animatedStateChanges = animated; 220 } 221 111 222 } 112 113 void GLGuiStyle::setBorderTopS(float value, const std::string& state)114 {}115 116 117 void GLGuiStyle::setBorderBottom(float value)118 {119 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i)120 setBorderBottom(value, (OrxGui::State)i);121 }122 123 void GLGuiStyle::setBorderBottom(float value, OrxGui::State state)124 {125 _style[state]._borderBottom = value;126 }127 128 void GLGuiStyle::setBorderBottomS(float value, const std::string& state)129 {}130 131 132 void GLGuiStyle::setTextSize(float value)133 {134 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i)135 setTextSize(value, (OrxGui::State)i);136 }137 138 void GLGuiStyle::setTextSize(float value, OrxGui::State state)139 {140 _style[state]._textSize= value;141 }142 143 void GLGuiStyle::setTextSizeS(float value, const std::string& state)144 {}145 146 147 void GLGuiStyle::setBackgroundColor(const Color& color)148 {149 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i)150 setBackgroundColor(color, (OrxGui::State)i);151 }152 153 void GLGuiStyle::setBackgroundColor(const Color& color, OrxGui::State state)154 {155 _style[state]._backgroundColor = color;156 }157 158 void GLGuiStyle::setBackgroundColorS(float r, float g, float b, float a, const std::string& state)159 {}160 161 162 void GLGuiStyle::setBackgroundTexture(const Texture& texture)163 {164 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i)165 setBackgroundTexture(texture, (OrxGui::State)i);166 }167 168 void GLGuiStyle::setBackgroundTexture(const Texture& texture, OrxGui::State state)169 {170 _style[state]._backgroundTexture = texture;171 }172 173 void GLGuiStyle::setBackgroundTexture(const std::string& textureName, const std::string& state)174 {}175 176 177 void GLGuiStyle::setForegroundColor(const Color& color)178 {179 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i)180 setForegroundColor(color, (OrxGui::State)i);181 }182 183 void GLGuiStyle::setForegroundColor(const Color& color, OrxGui::State state)184 {185 _style[state]._foregroundColor = color;186 }187 188 void GLGuiStyle::setForegroundColorS(float r, float g, float b, float a, const std::string& state)189 {}190 191 192 193 void GLGuiStyle::setFeaturePosition(FeaturePosition featurePosition)194 {195 this->_featurePosition = featurePosition;196 }197 198 void GLGuiStyle::setFeaturePosition(const std::string& featurePosition)199 {200 }201 202 203 void GLGuiStyle::setFont(Font* font)204 {205 this->_font = font;206 }207 208 void GLGuiStyle::setFont(const std::string& fontName)209 {210 //this->font = new Font(fontName);211 }212 213 214 void GLGuiStyle::setAnimated(bool animated)215 {216 this->_animated = animated;217 }218 219 void GLGuiStyle::setAnimatedStateChanges(bool animated)220 {221 this->_animatedStateChanges = animated;222 }223 224 }
Note: See TracChangeset
for help on using the changeset viewer.