mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
build: 重构IUP库依赖和项目结构
- 删除旧版iup-3.31_Win64_dllw6_lib目录及其所有二进制文件 - 将IUP和CD库重新组织为独立目录结构,包含头文件和静态库 - 更新CMakeLists.txt以链接新的静态库(iupcontrols、iupimglib、cd等) - 修改main.c以显式初始化IupControls和IupImageLib扩展库 - 更新回调函数签名以匹配IUP Matrix控件的实际参数 - 调整UI工具函数以使用Matrix控件的属性(MARKED、NUMLIN等) - 更新安装脚本仅复制实际依赖的DLL文件 - 添加所有缺失的IUP和CD头文件以支持完整功能
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
/** \file
|
||||
* \brief Canvas Draw API
|
||||
*
|
||||
* See Copyright Notice in "iup.h"
|
||||
*/
|
||||
|
||||
#ifndef __IUPDRAW_H
|
||||
#define __IUPDRAW_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* all functions can be used only in IUP canvas and inside the ACTION callback */
|
||||
|
||||
IUP_API void IupDrawBegin(Ihandle* ih);
|
||||
IUP_API void IupDrawEnd(Ihandle* ih);
|
||||
|
||||
/* all functions can be called only between calls to Begin and End */
|
||||
|
||||
IUP_API void IupDrawSetClipRect(Ihandle* ih, int x1, int y1, int x2, int y2);
|
||||
IUP_API void IupDrawGetClipRect(Ihandle* ih, int *x1, int *y1, int *x2, int *y2);
|
||||
IUP_API void IupDrawResetClip(Ihandle* ih);
|
||||
|
||||
/* color controlled by the attribute DRAWCOLOR */
|
||||
/* line style or fill controlled by the attribute DRAWSTYLE */
|
||||
|
||||
IUP_API void IupDrawParentBackground(Ihandle* ih);
|
||||
IUP_API void IupDrawLine(Ihandle* ih, int x1, int y1, int x2, int y2);
|
||||
IUP_API void IupDrawRectangle(Ihandle* ih, int x1, int y1, int x2, int y2);
|
||||
IUP_API void IupDrawArc(Ihandle* ih, int x1, int y1, int x2, int y2, double a1, double a2);
|
||||
IUP_API void IupDrawPolygon(Ihandle* ih, int* points, int count);
|
||||
IUP_API void IupDrawText(Ihandle* ih, const char* text, int len, int x, int y, int w, int h);
|
||||
IUP_API void IupDrawImage(Ihandle* ih, const char* name, int x, int y, int w, int h);
|
||||
IUP_API void IupDrawSelectRect(Ihandle* ih, int x1, int y1, int x2, int y2);
|
||||
IUP_API void IupDrawFocusRect(Ihandle* ih, int x1, int y1, int x2, int y2);
|
||||
|
||||
IUP_API void IupDrawGetSize(Ihandle* ih, int *w, int *h);
|
||||
IUP_API void IupDrawGetTextSize(Ihandle* ih, const char* text, int len, int *w, int *h);
|
||||
IUP_API void IupDrawGetImageInfo(const char* name, int *w, int *h, int *bpp);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user