COOPY » Guide
version 0.6.5
|
00001 #ifndef APPEARANCE_INC 00002 #define APPEARANCE_INC 00003 00004 #include <coopy/RefCount.h> 00005 00006 namespace coopy { 00007 namespace store { 00008 class AppearanceRange; 00009 class Appearance; 00010 } 00011 } 00012 00018 class coopy::store::AppearanceRange { 00019 public: 00020 int start; 00021 int end; 00022 AppearanceRange() { 00023 start = end = -1; 00024 } 00025 00026 static AppearanceRange full() { 00027 return AppearanceRange(); 00028 } 00029 }; 00030 00038 class coopy::store::Appearance : public RefCount { 00039 public: 00040 virtual bool setForegroundRgb16(int r, int g, int b, 00041 const AppearanceRange& range) { 00042 return false; 00043 } 00044 00045 virtual bool setBackgroundRgb16(int r, int g, int b, 00046 const AppearanceRange& range) { 00047 return false; 00048 } 00049 00050 virtual bool setWeightBold(bool flag, const AppearanceRange& range) { 00051 return false; 00052 } 00053 00054 virtual bool setStrikethrough(bool flag, const AppearanceRange& range) { 00055 return false; 00056 } 00057 00058 virtual bool begin() { 00059 return true; 00060 } 00061 00062 virtual bool end() { 00063 return true; 00064 } 00065 }; 00066 00067 #endif