mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-11 11:53:29 +00:00
documentation
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@80 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* %file Mw/Draw.h
|
||||
* %brief Common drawing API
|
||||
*/
|
||||
#ifndef __MW_DRAW_H__
|
||||
#define __MW_DRAW_H__
|
||||
|
||||
@@ -10,11 +14,50 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* %brief Parses a color text
|
||||
* %param handle Widget
|
||||
* %param text Color text
|
||||
* %return Color
|
||||
*/
|
||||
MWDECL MwLLColor MwParseColor(MwWidget handle, const char* text);
|
||||
|
||||
/*!
|
||||
* %brief Draws a filled rectangle
|
||||
* %param handle Widget
|
||||
* %param rect Rectangle area
|
||||
* %param color Color
|
||||
*/
|
||||
MWDECL void MwDrawRect(MwWidget handle, MwRect* rect, MwLLColor color);
|
||||
|
||||
/*!
|
||||
* %brief Draws a frame
|
||||
* %param handle Widget
|
||||
* %param rect Rectangle area
|
||||
* %param color Color
|
||||
* %param invert Invert the 3D border color or not
|
||||
* %warning `rect` gets changed to the area of rectangle inside
|
||||
*/
|
||||
MWDECL void MwDrawFrame(MwWidget handle, MwRect* rect, MwLLColor color, int invert);
|
||||
|
||||
/*!
|
||||
* %brief Draws a frame with specified border width
|
||||
* %param handle Widget
|
||||
* %param rect Rectangle area
|
||||
* %param color Color
|
||||
* %param invert Invert the 3D border color or not
|
||||
* %param border Border width
|
||||
* %warning `rect` gets changed to the area of rectangle inside
|
||||
*/
|
||||
MWDECL void MwDrawFrameEx(MwWidget handle, MwRect* rect, MwLLColor color, int invert, int border);
|
||||
|
||||
/*!
|
||||
* %brief Draws a text
|
||||
* %param handle Widget
|
||||
* %param point Center point of the text
|
||||
* %param text Text
|
||||
* %param color Color
|
||||
*/
|
||||
MWDECL void MwDrawText(MwWidget handle, MwPoint* point, const char* text, MwLLColor color);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user