colorthemes.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #ifndef __COLORTHEMEGROUP_H
  2. #define __COLORTHEMEGROUP_H
  3. #include <bfc/dispatch.h>
  4. class ColorThemeGroup : public Dispatchable
  5. {
  6. public:
  7. const wchar_t *getName();
  8. int getRed();
  9. int getGreen();
  10. int getBlue();
  11. int getGray();
  12. int getBoost();
  13. void setName(const wchar_t *name);
  14. void setRed(int r);
  15. void setGreen(int g);
  16. void setBlue(int b);
  17. void setGray(int g);
  18. void setBoost(int b);
  19. enum {
  20. COLORTHEMEGROUPGETNAME=10,
  21. COLORTHEMEGROUPGETRED=20,
  22. COLORTHEMEGROUPGETGREEN=30,
  23. COLORTHEMEGROUPGETBLUE=40,
  24. COLORTHEMEGROUPGETGRAY=50,
  25. COLORTHEMEGROUPGETBOOST=60,
  26. COLORTHEMEGROUPSETNAME=70,
  27. COLORTHEMEGROUPSETRED=80,
  28. COLORTHEMEGROUPSETGREEN=90,
  29. COLORTHEMEGROUPSETBLUE=100,
  30. COLORTHEMEGROUPSETGRAY=110,
  31. COLORTHEMEGROUPSETBOOST=120,
  32. };
  33. };
  34. inline const wchar_t *ColorThemeGroup::getName() {
  35. return _call(COLORTHEMEGROUPGETNAME, (const wchar_t *)NULL);
  36. }
  37. inline int ColorThemeGroup::getRed() {
  38. return _call(COLORTHEMEGROUPGETRED, 0);
  39. }
  40. inline int ColorThemeGroup::getGreen() {
  41. return _call(COLORTHEMEGROUPGETGREEN, 0);
  42. }
  43. inline int ColorThemeGroup::getBlue() {
  44. return _call(COLORTHEMEGROUPGETBLUE, 0);
  45. }
  46. inline int ColorThemeGroup::getGray() {
  47. return _call(COLORTHEMEGROUPGETGRAY, 0);
  48. }
  49. inline int ColorThemeGroup::getBoost() {
  50. return _call(COLORTHEMEGROUPGETBOOST, 0);
  51. }
  52. inline void ColorThemeGroup::setName(const wchar_t *name) {
  53. _voidcall(COLORTHEMEGROUPSETNAME, name);
  54. }
  55. inline void ColorThemeGroup::setRed(int r) {
  56. _voidcall(COLORTHEMEGROUPSETRED, r);
  57. }
  58. inline void ColorThemeGroup::setGreen(int g) {
  59. _voidcall(COLORTHEMEGROUPSETGREEN, g);
  60. }
  61. inline void ColorThemeGroup::setBlue(int b) {
  62. _voidcall(COLORTHEMEGROUPSETBLUE, b);
  63. }
  64. inline void ColorThemeGroup::setGray(int g) {
  65. _voidcall(COLORTHEMEGROUPSETGRAY, g);
  66. }
  67. inline void ColorThemeGroup::setBoost(int b) {
  68. _voidcall(COLORTHEMEGROUPSETBOOST, b);
  69. }
  70. #endif