gui_common.h

00001 /***************************************************************************
00002                           gui_common.h  -  description
00003                              -------------------
00004     begin                : Sat Feb 28 2004
00005     copyright            : (C) 2004 by Dynacube Team
00006     email                : 
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018  #ifndef __GUI_COMMON_H
00019  #define __GUI_COMMON_H
00020 
00021   #include "common/ktypes.h"
00022 
00023   #define TOTAL_WIDTH  800
00024   #define TOTAL_HEIGHT 600
00025 
00026   #define TASKBAR_HEIGHT 30
00027   #define TASKBAR_WIDTH  TOTAL_WIDTH
00028 
00029   #define START_X       5
00030   #define START_Y       2
00031   #define START_WIDTH   75
00032   #define START_HEIGHT  26
00033 
00034   #define TIME_X       5
00035   #define TIME_Y       2
00036   #define TIME_WIDTH   110
00037   #define TIME_HEIGHT  26
00038 
00039   #define TASKBAR_COLOR   0xFED4
00040   #define TASK_AC_COLOR   0xE5F1
00041   #define TASK_INAC_COLOR 0xF52D //0xBC4D
00042 
00043   #define ACTIVE_WINDOW  0xB577
00044   
00045   #define SCREEN_WIDTH   TOTAL_WIDTH
00046   #define SCREEN_HEIGHT  (TOTAL_HEIGHT - TASKBAR_HEIGHT)
00047   #define SCREEN_COLOR   0xAE1F//0xFF1F //0F
00048  
00049   typedef struct
00050   {
00051     DW type;    // window , frame , specific component types
00052     DW alias_id;
00053     DW id;
00054     DW pid;
00055   } ENTITY;
00056 
00057   typedef struct
00058   {
00059     DW x;
00060     DW y;    
00061   } POINT;
00062 
00063   #define MN_MAX_CHAR 10
00064   #define MN_MAX_ITEM 10
00065 
00066         typedef struct
00067         {
00068                 char lbl[MN_MAX_CHAR];
00069                 DW cmdCode; //To be sent to the client
00070         } MENUITEM;
00071 
00072 #endif

Generated on Thu Jul 27 23:52:26 2006 for Dynacube by  doxygen 1.4.7