LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
color.h
Go to the documentation of this file.
1 // Copyright 2013 Trimble Inc., All rights reserved.
2 
7 #ifndef SKETCHUP_COLOR_H_
8 #define SKETCHUP_COLOR_H_
9 
11 
12 #pragma pack(push, 8)
13 #ifdef __cplusplus
14 extern "C" {
15 #endif // __cplusplus
16 
21 typedef unsigned char SUByte;
22 
27 typedef struct {
28  SUByte red;
29  SUByte green;
30  SUByte blue;
31  SUByte alpha;
32 } SUColor;
33 
50  const SUColor color1, const SUColor color2, const double weight, SUColor* blended_color);
51 
61 SU_RESULT SUColorGetNumNames(size_t* size);
62 
73 SU_RESULT SUColorGetNames(SUStringRef names[], const size_t size);
74 
86 SU_RESULT SUColorSetByName(SUColor* color, const char* name);
87 
100 SU_RESULT SUColorSetByValue(SUColor* color, const size_t value);
101 
102 #ifdef __cplusplus
103 } // end extern "C"
104 #endif // __cplusplus
105 #pragma pack(pop)
106 
107 #endif // SKETCHUP_COLOR_H_