00001
00002
00003
00004
00005 #ifndef __GCOLOUR_H
00006 #define __GCOLOUR_H
00007
00008 #include "GPopup.h"
00009
00011 class GColour :
00012 public GDropDown,
00013 public ResObject
00014 {
00015 friend class GColourPopup;
00016
00017 COLOUR c32;
00018 GArray<COLOUR> Presets;
00019
00020 public:
00021 enum
00022 {
00023 Transparent = 0
00024 };
00025
00026 GColour(COLOUR *list = 0, int items = 0);
00027
00028
00029 void SetColourList(COLOUR *c32_list, int items);
00030
00031
00032 int64 Value();
00033 void Value(int64 i);
00034 void OnPaint(GSurface *pDC);
00035 };
00036
00037 #endif