Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8460 in orxonox.OLD for branches/gui/src


Ignore:
Timestamp:
Jun 15, 2006, 2:08:43 PM (18 years ago)
Author:
bensch
Message:

more style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/gui/gl/glgui_style.cc

    r8450 r8460  
    5454
    5555  void GLGuiStyle::setBorderLeft(float value, OrxGui::State state)
    56 {}
     56  {
     57    _style[state]._borderLeft = value;
     58  }
    5759
    5860  void GLGuiStyle::setBorderLeftS(float value, const std::string& state)
    59   {}
     61  {
     62
     63  }
    6064
    6165
     
    6771
    6872  void GLGuiStyle::setBorderRight(float value, OrxGui::State state)
    69 {}
     73  {
     74    _style[state]._borderRight = value;
     75  }
    7076
    7177  void GLGuiStyle::setBorderRightS(float value, const std::string& state)
     
    8086
    8187  void GLGuiStyle::setBorderTop(float value, OrxGui::State state)
    82 {}
     88{
     89  _style[state]._borderTop = value;
     90}
    8391
    8492  void GLGuiStyle::setBorderTopS(float value, const std::string& state)
     
    93101
    94102  void GLGuiStyle::setBorderBottom(float value, OrxGui::State state)
    95 {}
     103{
     104  _style[state]._borderBottom = value;
     105}
    96106
    97107  void GLGuiStyle::setBorderBottomS(float value, const std::string& state)
     
    106116
    107117  void GLGuiStyle::setTextSize(float value, OrxGui::State state)
    108 {}
     118{
     119  _style[state]._textSize= value;
     120}
    109121
    110122  void GLGuiStyle::setTextSizeS(float value, const std::string& state)
     
    119131
    120132  void GLGuiStyle::setBackgroundColor(const Color& color, OrxGui::State state)
    121 {}
     133{
     134  _style[state]._backgroundColor = color;
     135}
    122136
    123137  void GLGuiStyle::setBackgroundColorS(float r, float g, float b, float a, const std::string& state)
     
    132146
    133147  void GLGuiStyle::setBackgroundTexture(const Texture& texture, OrxGui::State state)
    134 {}
     148{
     149  _style[state]._backgroundTexture = texture;
     150}
    135151
    136152  void GLGuiStyle::setBackgroundTexture(const std::string& textureName, const std::string& state)
     
    145161
    146162  void GLGuiStyle::setForegroundColor(const Color& color, OrxGui::State state)
    147   {}
     163  {
     164    _style[state]._foregroundColor = color;
     165  }
    148166
    149167  void GLGuiStyle::setForegroundColorS(float r, float g, float b, float a, const std::string& state)
     
    159177  void GLGuiStyle::setFeaturePosition(const std::string& featurePosition)
    160178  {
    161 
    162179  }
    163180
Note: See TracChangeset for help on using the changeset viewer.