Adobe.com
Contents Suites Classes Class Index Member Index

AIUITheme.h

Go to the documentation of this file.
00001 /*
00002 *        Name:  AIUITheme.h
00003 *      Author:
00004 *        Date:
00005 *
00006 * ADOBE SYSTEMS INCORPORATED
00007 * Copyright 2007-2008 Adobe Systems Incorporated.
00008 * All rights reserved.
00009 *
00010 * NOTICE:  Adobe permits you to use, modify, and distribute this file
00011 * in accordance with the terms of the Adobe license agreement
00012 * accompanying it. If you have received this file from a source other
00013 * than Adobe, then your use, modification, or distribution of it
00014 * requires the prior written permission of Adobe.
00015 *
00016 */
00017 
00018 #ifndef AIUITheme_h__
00019 #define AIUITheme_h__
00020 
00021 
00022 
00023 /*******************************************************************************
00024 **
00025 **      Imports
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 ** Constants
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 **      Notifier constants
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 **      Suite
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__


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2016 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks