00001 // Bar.h: interface for the Bar class. 00002 // 00004 00005 #ifndef __OBAR_H 00006 #define __OBAR_H 00007 00008 #if _MSC_VER >= 1000 00009 #pragma once 00010 #endif // _MSC_VER >= 1000 00011 00012 #include <OVGA.H> 00013 #include <OFONT.H> 00014 00016 class Bar { 00017 public: 00018 short bar_x1, bar_y1, 00019 bar_x2, bar_y2; 00020 short bar_y; 00021 short bar_width, bar_height; 00022 int bar_color; 00023 char **option_desc; 00024 short *bar_bitmap; 00025 Font *font_ptr; 00026 char init_flag; 00027 00028 public: 00029 void init( int, int, int, int, int); 00030 void deinit(void); 00031 void paint(void); 00032 int detect(void); 00033 void refresh(void); 00034 Bar(); 00035 virtual ~Bar(); 00036 00037 }; 00038 00039 //--------------------------// 00040 #endif