Changeset 8448 in orxonox.OLD for trunk/src/lib/gui/gl/glgui_style.cc
- Timestamp:
- Jun 15, 2006, 12:48:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/glgui_style.cc
r8145 r8448 18 18 #include "glgui_style.h" 19 19 20 #include "loading/load_param.h" 21 20 22 namespace OrxGui 21 23 { … … 25 27 * @brief standard constructor 26 28 */ 27 GLGuiStyle::GLGuiStyle ( )29 GLGuiStyle::GLGuiStyle (const TiXmlElement* root) 28 30 { 31 if (root != NULL) 32 this->loadParams(root); 33 34 this-> 29 35 } 30 36 … … 37 43 // delete what has to be deleted here 38 44 } 45 46 void GLGuiStyle::loadParams(const TiXmlElement* root) 47 { 48 } 49 50 void GLGuiStyle::setBorderLeft(float value) 51 { 52 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 53 setBorderLeft(value, (OrxGui::State)i); 54 } 55 56 void GLGuiStyle::setBorderLeft(float value, OrxGui::State state) 57 {} 58 59 void GLGuiStyle::setBorderLeftS(float value, const std::string& state) 60 {} 61 62 63 void GLGuiStyle::setBorderRight(float value) 64 { 65 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 66 setBorderRight(value, (OrxGui::State)i); 67 } 68 69 void GLGuiStyle::setBorderRight(float value, OrxGui::State state) 70 {} 71 72 void GLGuiStyle::setBorderRightS(float value, const std::string& state) 73 {} 74 75 76 void GLGuiStyle::setBorderTop(float value) 77 { 78 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 79 setBorderTop(value, (OrxGui::State)i); 80 } 81 82 void GLGuiStyle::setBorderTop(float value, OrxGui::State state) 83 {} 84 85 void GLGuiStyle::setBorderTopS(float value, const std::string& state) 86 {} 87 88 89 void GLGuiStyle::setBorderBottom(float value) 90 { 91 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 92 setBorderBottom(value, (OrxGui::State)i); 93 } 94 95 void GLGuiStyle::setBorderBottom(float value, OrxGui::State state) 96 {} 97 98 void GLGuiStyle::setBorderBottomS(float value, const std::string& state) 99 {} 100 101 102 void GLGuiStyle::setTextSize(float value) 103 { 104 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 105 setTextSize(value, (OrxGui::State)i); 106 } 107 108 void GLGuiStyle::setTextSize(float value, OrxGui::State state) 109 {} 110 111 void GLGuiStyle::setTextSizeS(float value, const std::string& state) 112 {} 113 114 115 void GLGuiStyle::setBackgroundColor(const Color& color) 116 { 117 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 118 setBackgroundColor(color, (OrxGui::State)i); 119 } 120 121 void GLGuiStyle::setBackgroundColor(const Color& color, OrxGui::State state) 122 {} 123 124 void GLGuiStyle::setBackgroundColorS(float r, float g, float b, float a, const std::string& state) 125 {} 126 127 128 void GLGuiStyle::setBackgroundTexture(const Texture& texture) 129 { 130 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 131 setBackgroundTexture(texture, (OrxGui::State)i); 132 } 133 134 void GLGuiStyle::setBackgroundTexture(const Texture& texture, OrxGui::State state) 135 {} 136 137 void GLGuiStyle::setBackgroundTexture(const std::string& textureName, const std::string& state) 138 {} 139 140 141 void GLGuiStyle::setForegroundColor(const Color& color) 142 { 143 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 144 setForegroundColor(color, (OrxGui::State)i); 145 } 146 147 void GLGuiStyle::setForegroundColor(const Color& color, OrxGui::State state) 148 {} 149 150 void GLGuiStyle::setForegroundColorS(float r, float g, float b, float a, const std::string& state) 151 {} 152 153 154 155 void GLGuiStyle::setFeaturePosition(FeaturePosition featurePosition) 156 { 157 this->_featurePosition = featurePosition; 158 } 159 160 void GLGuiStyle::setFeaturePosition(const std::string& featurePosition) 161 { 162 163 } 164 165 166 void GLGuiStyle::setFont(Font* font) 167 { 168 this->_font = font; 169 } 170 171 void GLGuiStyle::setFont(const std::string& fontName) 172 { 173 //this->font = new Font(fontName); 174 } 175 176 177 void GLGuiStyle::setAnimated(bool animated) 178 { 179 this->_animated = animated; 180 } 181 182 void GLGuiStyle::animatedStateChanges(bool animated) 183 { 184 this->_animatedStateChanges = animated; 185 } 186 39 187 }
Note: See TracChangeset
for help on using the changeset viewer.