Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Style.cpp

Go to the documentation of this file.
00001 
00002 /*
00003     TEDDY - General graphics application library
00004     Copyright (C) 1999-2002  Timo Suoranta
00005     tksuoran@cc.helsinki.fi
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Lesser General Public
00009     License as published by the Free Software Foundation; either
00010     version 2.1 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Lesser General Public License for more details.
00016 
00017     You should have received a copy of the GNU Lesser General Public
00018     License along with this library; if not, write to the Free Software
00019     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 
00021     $Id: Style.cpp,v 1.4 2002/01/11 14:35:03 tksuoran Exp $
00022 */
00023 
00024 
00025 #include "Teddy/PhysicalComponents/Style.h"
00026 #include "Teddy/Graphics/Color.h"
00027 #include "Teddy/Graphics/Font.h"
00028 #include <cstring>
00029 using namespace Teddy::Maths;
00030 using namespace Teddy::Graphics;
00031 
00032 
00033 namespace Teddy              {
00034 namespace PhysicalComponents {
00035 
00036 
00037 /*static*/ Style *Style::default_style = NULL;  // Can't initialize here; there is no OpenGL context yet so there can't be default font. Done in View constructor.
00038 
00039 
00041 Style::Style(){ 
00042     large_font                 = Font::default_font;
00043     medium_font                = Font::default_font;
00044     small_font                 = Font::default_font;
00045     window_title_font          = Font::default_font;
00046     group_title_font           = Font::default_font;
00047     monospace_font             = Font::default_font;
00048     basic_font                 = Font::default_font;
00049     button_font                = Font::default_font;
00050     padding                    = Vector2( 0, 0 );
00051     border                     = Vector2( 2, 1 );
00052     hilight_color              = Color::WHITE;
00053     shadow_color               = Color::BLACK;
00054     background_color           = Color(0.4f,0.4f,0.4f);
00055     fill_color                 = Color::DARK_GREEN;
00056     text_color                 = Color::BLACK; //WHITE;
00057     border_color               = Color::YELLOW;//(0.1f,0.4f,0.5f);
00058     border_color_fill          = Color::YELLOW;
00059     border_color_hilight       = Color::LIGHT_YELLOW;
00060     border_color_shadow        = Color::DARK_YELLOW;
00061     selection_background_color = Color::RED;
00062     selection_foreground_color = Color::WHITE;
00063     glyph_size                 = Vector2( 10, 10 );
00064 };
00065 
00066 
00068 /*virtual*/ Style::~Style(){
00069 }
00070 
00071 
00072 };  //  namespace PhysicalComponents
00073 };  //  namespace Teddy
00074