Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl/glgui_style.cc @ 8449

Last change on this file since 8449 was 8448, checked in by bensch, 19 years ago

merged gui back to the trunk
merged with command
merge -r8377:HEAD https://svn.orxonox.net/orxonox/branches/gui .

File size: 4.0 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: ...
13   co-programmer: ...
14*/
15
16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
17
18#include "glgui_style.h"
19
20#include "loading/load_param.h"
21
22namespace OrxGui
23{
24
25
26  /**
27   * @brief standard constructor
28  */
29  GLGuiStyle::GLGuiStyle (const TiXmlElement* root)
30  {
31    if (root != NULL)
32      this->loadParams(root);
33
34    this->
35  }
36
37
38  /**
39   * @brief standard deconstructor
40   */
41  GLGuiStyle::~GLGuiStyle ()
42  {
43    // delete what has to be deleted here
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
187}
Note: See TracBrowser for help on using the repository browser.