LayOut C API
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
SketchUpAPI
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
10
#include <
SketchUpAPI/unicodestring.h
>
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
49
SU_RESULT
SUColorBlend
(
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_
Generated on Wed Sep 8 2021 14:15:26 for LayOut C API by
1.8.3.1