update color things
This commit is contained in:
parent
f9c0ec987e
commit
cf4fdc531a
5 changed files with 4763 additions and 836 deletions
|
|
@ -21,6 +21,13 @@ extern "C" {
|
|||
*/
|
||||
MWDECL MwLLColor MwParseColor(MwWidget handle, const char* text);
|
||||
|
||||
/*!
|
||||
* @brief Parses a color text
|
||||
* @param text Color text
|
||||
* @param rgb RGB
|
||||
*/
|
||||
MWDECL void MwParseColorNoAllocate(const char* text, MwRGB* rgb);
|
||||
|
||||
/*!
|
||||
* @brief Lighten a color
|
||||
* @param handle Widget
|
||||
|
|
@ -120,12 +127,12 @@ MWDECL MwLLPixmap MwLoadRaw(MwWidget handle, unsigned char* rgb, int width, int
|
|||
/*!
|
||||
* @brief Creates a pixmap from raw data
|
||||
* @param handle Widget
|
||||
* @param pixmap Pixmap to update
|
||||
* @param rgb RGBA data
|
||||
* @param width Width
|
||||
* @param height Height
|
||||
* @return Pixmap
|
||||
*/
|
||||
MWDECL void MwReloadRaw(MwWidget handle, unsigned char* rgb, int width, int height, MwLLPixmap pixmap);
|
||||
MWDECL void MwReloadRaw(MwWidget handle, MwLLPixmap pixmap, unsigned char* rgb, int width, int height);
|
||||
|
||||
/*!
|
||||
* @brief Creates a pixmap from XPM data
|
||||
|
|
@ -191,6 +198,13 @@ MWDECL int MwTextHeight(MwWidget handle, const char* text);
|
|||
*/
|
||||
MWDECL MwLLColor MwParseColorName(MwWidget handle, const char* color);
|
||||
|
||||
/*!
|
||||
* @brief Parses a color name
|
||||
* @param color Color name
|
||||
* @param rgb RGB
|
||||
*/
|
||||
MWDECL void MwParseColorNameNoAllocate(const char* color, MwRGB* rgb);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue