Back to index

nux  3.0.0
WidgetMetrics.cpp
Go to the documentation of this file.
00001 /*
00002  * Copyright 2010 Inalogic® Inc.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License, as
00006  * published by the  Free Software Foundation; either version 2.1 or 3.0
00007  * of the License.
00008  *
00009  * This program is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranties of
00011  * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
00012  * PURPOSE.  See the applicable version of the GNU Lesser General Public
00013  * License for more details.
00014  *
00015  * You should have received a copy of both the GNU Lesser General Public
00016  * License along with this program. If not, see <http://www.gnu.org/licenses/>
00017  *
00018  * Authored by: Jay Taoko <jaytaoko@inalogic.com>
00019  *
00020  */
00021 
00022 
00023 #include "Nux.h"
00024 #include "WidgetMetrics.h"
00025 
00026 namespace nux
00027 {
00028 
00029   const Color COLOR_BLACK = Color(0xFF000000);
00030   const Color COLOR_RED =   Color(0xFFFF0000);
00031   const Color COLOR_GREEN = Color(0xFF00FF00);
00032   const Color COLOR_BLUE =  Color(0xFF0000FF);
00033   const Color COLOR_WHITE = Color(0xFFFFFFFF);
00034 
00035 
00036   const Color COLOR_BACKGROUND_PRIMARY = Color(0xFF4D4D4D);
00037   const Color COLOR_BACKGROUND_SECONDARY = Color(0xFF868686);
00038   const Color COLOR_FOREGROUND_PRIMARY = Color(0xFF424242); //0xFFCFCFCF;
00039   const Color COLOR_FOREGROUND_SECONDARY = Color(0xFFEFEFEF);
00040 
00041 
00042   const Color COLOR_SELECTION_SECONDARY = Color(0xFFAAAAAA);
00043 
00044 // Text color
00045   const Color COLOR_TEXTEDIT_BACKGROUNG = Color(0xFF9F9F9F);
00046   const Color COLOR_TEXTSTATIC_BACKGROUNG = Color(0xFF909090);
00047 
00048 // General background color
00049   const Color  COLOR_WIDGET_BACKGROUND     = Color(0xFF6E6E6E);
00050   const Color  COLOR_WIDGET_MOUSEOVER      = Color(0xFF969664);
00051   const Color  COLOR_WINDOW_BACKGROUND     = Color(0xFFa0a0a0);
00052 
00053 // Widget control background color
00054   const Color  COLOR_PRIMARY_LEFT          = Color(0xFFC0C0C0);
00055   const Color  COLOR_PRIMARY_RIGHT         = Color(0xFF7D7D7D);
00056 
00057 // ScrollBar color
00058   const Color COLOR_SCROLLBAR_TRACK     = Color(0xFF636363);
00059   const Color COLOR_SCROLLBAR_SLIDER    = Color(0xFF373737);
00060 
00061   const Color COLOR_DARK_0     = Color(0xFF575757);
00062   const Color COLOR_LIGHT_0    = Color(0xFF737373);
00063 
00064 
00065   const int   AREA_MIN_WIDTH     = 1;
00066   const int   AREA_MAX_WIDTH     = 0x7FFFFFFF;
00067   const int   AREA_MIN_HEIGHT    = 1;
00068   const int   AREA_MAX_HEIGHT    = 0x7FFFFFFF;
00069 
00070   const int   DEFAULT_WIDGET_HEIGHT   = 8;
00071   const int   PRACTICAL_WIDGET_HEIGHT = 18;
00072   const int   DEFAULT_WIDGET_WIDTH    = 32;
00073   const int   PRACTICAL_WIDGET_WIDTH  = 32;
00074   const int   DEFAULT_TEXT_X_MARGIN   = 0;
00075   const int   DEFAULT_TEXT_Y_MARGIN   = 0;
00076   const float DEFAULT_REPEAT_DELAY    = 150; //milliseconds
00077 
00078 }