merge pr #7 (take 2)
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@540 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
141ac076e3
commit
3719f17250
10 changed files with 1053 additions and 0 deletions
38
include/Mw/ColorPicker.h
Normal file
38
include/Mw/ColorPicker.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/* $Id$ */
|
||||
|
||||
/*!
|
||||
* @file Mw/ColorPicker.h
|
||||
* @brief Color picker
|
||||
*/
|
||||
#ifndef __MW_COLORPICKER_H__
|
||||
#define __MW_COLORPICKER_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct _MwRGB MwRGB;
|
||||
typedef struct _MwHSV MwHSV;
|
||||
|
||||
struct _MwRGB {
|
||||
double r;
|
||||
double g;
|
||||
double b;
|
||||
};
|
||||
|
||||
struct _MwHSV {
|
||||
double h; // angle in degrees
|
||||
double s; // a fraction between 0 and 1
|
||||
double v; // a fraction between 0 and 1
|
||||
};
|
||||
|
||||
MWDECL MwWidget MwColorPicker(MwWidget handle, const char* title);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue