Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8440 in orxonox.OLD for branches/gui


Ignore:
Timestamp:
Jun 15, 2006, 2:12:06 AM (18 years ago)
Author:
bensch
Message:

gui_style: go on with the work… this will be heavy

Location:
branches/gui/src/lib/gui/gl
Files:
2 edited

Legend:

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

    r8276 r8440  
    3535
    3636  private:
    37     float             _borderLeft;           //!< The Distance to the left Border of the widget, before any internal Element starts.
    38     float             _borderRight;          //!< The Distance to the right Border of the widget, before any internal Element starts.
    39     float             _borderTop;            //!< The Distance to the top Border of the widget, before any internal Element starts
    40     float             _borderBottom;         //!< The Distance to the bottom Border of the widget, before any internal Element starts
     37    typedef struct
     38    {
     39      float             _borderLeft;           //!< The Distance to the left Border of the widget, before any internal Element starts.
     40      float             _borderRight;          //!< The Distance to the right Border of the widget, before any internal Element starts.
     41      float             _borderTop;            //!< The Distance to the top Border of the widget, before any internal Element starts
     42      float             _borderBottom;         //!< The Distance to the bottom Border of the widget, before any internal Element starts
    4143
    42     Font*             _font;                 //!< The Font used in the current Widget.
    43     float             _textSize;             //!< The TextSize of the Widget.
    44     float             _textColor;            //!< The TextColor of the Widget.
     44      float             _textSize;             //!< The TextSize of the Widget.
    4545
    46     float             _backgroundColor;      //!< The BackgroundColor of the Widget.
    47     Texture           _backgorundTexture;    //!< The BackgroundTexture of the Widget.
     46      Color             _backgroundColor;      //!< The BackgroundColor of the Widget.
     47      Texture           _backgorundTexture;    //!< The BackgroundTexture of the Widget.
    4848
    49     float             _foregroundColor;      //!< The foregroundColor of the Widget.
    50     Texture           _foregorundTexture;    //!< The ForegroundTexture of the Widget
     49      Color             _foregroundColor;      //!< The foregroundColor of the Widget.
     50    }
     51    StatedStyle;
     52
     53    StatedStyle      _style[4];
    5154
    5255    FeaturePosition   _featurePosition;      //!< The Position a Feature will be layed at (checkbox(box), slider(text),...)
     56    Font*             _font;                 //!< The Font used in the current Widget.
     57
    5358
    5459    bool              _animated;             //!< If the Widget is animated (Texture might be an AnimatedTexture.)
  • branches/gui/src/lib/gui/gl/glgui_widget.h

    r8437 r8440  
    88
    99#include "element_2d.h"
     10
     11#include "glgui_style.h"
     12#include "material.h"
    1013#include "rect2D.h"
    11 
    12 #include "material.h"
    1314
    1415#include "event.h"
    1516#include "signal_connector.h"
    16 
    17 #include "glincl.h"
    18 
    19 #include <vector>
    20 
    21 // FORWARD DECLARATION
    22 class Material;
    2317
    2418namespace OrxGui
     
    173167    Vector2D                       _minSize;
    174168
     169    GLGuiStyle                     _style;
     170
    175171    /// EVENTS
    176172    bool                           _focusable;        //!< If this widget can receive focus.
Note: See TracChangeset for help on using the changeset viewer.