00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef AIUITheme_h__
00019 #define AIUITheme_h__
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef __AITypes__
00031 #include "AITypes.h"
00032 #endif
00033
00034 #ifndef __AIRealMath__
00035 #include "AIRealMath.h"
00036 #endif
00037
00038 #include "AIHeaderBegin.h"
00039
00042
00043
00044
00045
00046
00047
00048 #define kAIUIThemeSuite "AI User Interface Theme Suite"
00049 #define kAIUIThemeSuiteVersion AIAPI_VERSION(2)
00050 #define kAIUIThemeVersion kAIUIThemeSuiteVersion
00051
00052
00053
00054
00055
00056
00060 #define kAIUIBrightnessChangedNotifier "AI UI Brightness Changed Notifier"
00061
00064 enum AIUIThemeSelector
00065 {
00067 kAIUIThemeSelectorDialog = 0,
00068
00070 kAIUIThemeSelectorPanel,
00071
00073 kAIAUIThemeSelectorLast = 0xFFFF
00074 };
00075
00078 enum AIUIComponentColor
00079 {
00081 kAIUIComponentColorNone = -1,
00082
00084 kAIUIComponentColorBackground = 0,
00085
00087 kAIUIComponentColorText,
00088
00090 kAIUIComponentColorFocusRing,
00091
00093 kAIUIComponentColorEditText,
00094
00096 kAIUIComponentColorEditTextBackground,
00097
00099 kAIUIComponentColorLast = 0xFFFF
00100 };
00101
00103 struct AIUIThemeColor
00104 {
00106 AIReal alpha;
00108 AIReal red;
00110 AIReal green;
00112 AIReal blue;
00113
00115 AIUIThemeColor(AIReal a = kAIRealOne, AIReal r = kAIRealZero, AIReal g = kAIRealZero, AIReal b = kAIRealZero) : alpha(a), red(r), green(g), blue(b) {}
00116 };
00117
00118
00119
00120
00121
00122
00123
00131 struct AIUIThemeSuite {
00132
00138 AIAPI AIErr (*GetUIThemeColor)(ai::int32 themeSelector, ai::int32 componentColor, AIUIThemeColor& aiColor);
00139
00140
00146 AIAPI AIBoolean (*IsUIThemeDark)();
00147
00148 };
00149
00150 #include "AIHeaderEnd.h"
00151
00152 #endif // AIUITheme_h__