1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: charttypes.h 3 // Purpose: wxChart 4 // Author: Paolo Gava 5 // Modified by: 6 // Created: 7 // Copyright: (C) 2006, Paolo Gava 8 // RCS-ID: $Id: charttypes.h 9270 2013-08-18 05:22:02Z mortenmacfly $ 9 // Licence: wxWindows licence 10 ///////////////////////////////////////////////////////////////////////////// 11 12 #if !defined( __CHARTTYPES_H__ ) 13 #define __CHARTTYPES_H__ 14 15 //---------------------------------------------------------------------------- 16 // Headers 17 //---------------------------------------------------------------------------- 18 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) 19 #pragma interface "charttypes.h" 20 #endif 21 22 // For compilers that support precompilation, includes "wx.h". 23 #include <wx/wxprec.h> 24 25 #ifdef __BORLANDC__ 26 #pragma hdrstop 27 #endif 28 29 #ifndef WX_PRECOMP 30 #include <wx/string.h> 31 #include <wx/dc.h> 32 #endif 33 34 #include "wx/chartdef.h" 35 36 //---------------------------------------------------------------------------- 37 // Types 38 //---------------------------------------------------------------------------- 39 40 // Area to be drawn 41 typedef struct 42 { 43 int x; 44 int xscroll; 45 int y; 46 int yscroll; 47 int w; 48 int h; 49 } CHART_RECT, *CHART_HRECT; 50 51 // Device Context 52 typedef wxDC* CHART_HPAINT; 53 54 // Chart value and Color 55 typedef double ChartValue; 56 typedef unsigned long ChartColor; 57 58 #if 0 59 // Keep track of the size of the charts 60 struct ChartSizes 61 { 62 ChartSizes();// : nbar(0), nbar3d(0), 63 // wbar(DEFAULT_BAR_WIDTH), wbar3d(DEFAULT_BAR3D_WIDTH), 64 // gap(DEFAULT_GAP_WIDTH), scroll(DEFAULT_SCROLL_STEP), 65 // s_height(DEFAULT_SIZE_HEIGHT) {}; 66 int nbar; 67 int nbar3d; 68 int wbar; 69 int wbar3d; 70 int gap; 71 int scroll; 72 int s_height; 73 }; 74 #endif 75 76 #endif // __CHARTTYPES_H__ 77