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 kAIUIComponentColorBorder,
00100
00102 kAIUIComponentColorLast = 0xFFFF
00103 };
00104
00106 struct AIUIThemeColor
00107 {
00109 AIReal alpha;
00111 AIReal red;
00113 AIReal green;
00115 AIReal blue;
00116
00118 AIUIThemeColor(AIReal a = kAIRealOne, AIReal r = kAIRealZero, AIReal g = kAIRealZero, AIReal b = kAIRealZero) : alpha(a), red(r), green(g), blue(b) {}
00119 };
00120
00121
00122
00123
00124
00125
00126
00134 struct AIUIThemeSuite {
00135
00141 AIAPI AIErr (*GetUIThemeColor)(ai::int32 themeSelector, ai::int32 componentColor, AIUIThemeColor& aiColor);
00142
00143
00149 AIAPI AIBoolean (*IsUIThemeDark)();
00150
00151 };
00152
00153 #include "AIHeaderEnd.h"
00154
00155 #endif // AIUITheme_h__