Skip to content

Releases: twgh/xcgui

v1.3.31-1

22 Dec 03:41
Compare
Choose a tag to compare

v1.3.31-1封装自XCGUI官方3.3.1版本.
1. 更改函数:
XEle_Move() ==> XEle_SetPosition();
XEle_MoveLogic() ==> XEle_SetPositionLogic();
XWnd_Move() ==> XWnd_SetPosition();
XSvg_GetOffset() ==> XSvg_GetPosition();
XSvg_SetOffset() ==> XSvg_SetPosition();
XShape_Move() ==> XShape_SetPosition();
XWnd_CreateEx() 更改参数顺序;
XModalWnd_CreateEx() 更改参数顺序;
XFrameWnd_CreateEx() 更改参数顺序;
XC_Alert() 更改参数顺序;
XC_MessageBox() 更改参数顺序;
XMsg_Create() 更改参数顺序;
XMsg_CreateEx() 更改参数顺序;
XSvg_LoadString() 移除长度参数;
XImage_LoadSvgString() 移除长度参数;
涉及内存加载的函数,切片指针参数改为直接传切片,移除长度参数;

3. 增加函数:
	XEase_Ex();
	XMsg_CreateEx();

	XEle_GetAlpha();
	XEle_GetPosition();
	XEle_SetSize();
	XEle_GetSize();

	XSvg_SetAlpha();
	XSvg_GetAlpha();
	XSvg_SetUserFillColor();
	XSvg_SetUserStrokeColor();
	XSvg_GetUserFillColor();
	XSvg_GetUserStrokeColor();
	XSvg_SetRotateAngle();
	XSvg_GetRotateAngle();
	XSvg_SetRotate();
	XSvg_GetRotate();
	XSvg_Show();
	XSvg_LoadStringW();
	XSvg_LoadStringUtf8();
	XSvg_SetPositionF();
	xSvg_GetPositionF();

	XShape_GetPosition();
	XShape_GetSize();
	XShape_GetSize();
	XShape_SetAlpha();
	XShape_GetAlpha();

	XImage_LoadSvgStringW();
	XImage_LoadSvgStringUtf8();

4. 增加动画特效相关函数:
	XAnima_Run();
	XAnima_Release();
	XAnima_ReleaseEx();
	XAnima_Create();
	XAnima_Move();
	XAnima_MoveEx();
	XAnima_Rotate();
	XAnima_RotateEx();
	XAnima_Scale();
	XAnima_ScaleSize();
	XAnima_Alpha();
	XAnima_AlphaEx();
	XAnima_Color();
	XAnima_ColorEx();
	XAnima_LayoutWidth();
	XAnima_LayoutSize();
	XAnima_Delay();
	XAnima_Show();
	XAnimaGroup_Create();
	XAnimaGroup_AddItem();
	XAnimaItem_EnableCompleteRelease();
	XAnimaRotate_SetCenter();
	XAnimaScale_SetPosition();
	XAnima_GetObjectUI();
	XAnima_EnableAutoDestroy();
	XAnima_DestroyObjectUI();
	XAnima_SetCallBack();
	XAnima_SetUserData();
	XAnima_GetUserData();
	XAnima_Stop();
	XAnima_Start();
	XAnima_Pause();
	XAnimaItem_SetCallback();
	XAnimaItem_SetUserData();
	XAnimaItem_GetUserData();
	XAnimaItem_EnableAutoDestroy();

5.增加通知消息相关函数:
	XNotifyMsg_Popup();
	XNotifyMsg_PopupEx();
	XNotifyMsg_WindowPopup();
	XNotifyMsg_WindowPopupEx();
	XNotifyMsg_SetDuration();
	XNotifyMsg_SetCaptionHeight();
	XNotifyMsg_SetWidth();
	XNotifyMsg_SetSpace();
	XNotifyMsg_SetBorderSize();
	XNotifyMsg_SetParentMargin();

6. 常量修改
	XC_AdjustLayout_No ==> AdjustLayout_No
	XC_AdjustLayout_All ==> AdjustLayout_All
	XC_AdjustLayout_Self ==> AdjustLayout_Self
	Ease_In ==> Ease_Type_In
	Ease_Out ==> Ease_Type_Out
	Ease_InOut ==> Ease_Type_InOut
	增加 Ease_Flag_ 相关常量
	增加 NotifyMsg_Skin_ 相关常量
	增加 Position_Flag_ 相关常量

v1.3.20-2

29 Nov 08:39
Compare
Choose a tag to compare

修复缓动

v1.3.20-1

23 Nov 07:16
Compare
Choose a tag to compare

v1.3.20-1封装于XCGUI官方3.2.0版本.
增加Svg类.
增加函数:
XC_LoadStyleFromStringW();
XC_ShowSvgFrame();
XImage_LoadSvg();
XImage_LoadSvgFile();
XImage_LoadSvgString();
XImage_GetSvg();
XSvg_LoadFile();
XSvg_LoadString();
XSvg_LoadZip();
XSvg_LoadRes();
XSvg_SetSize();
XSvg_GetSize();
XSvg_GetWidth();
XSvg_GetHeight();
XSvg_SetOffset();
XSvg_GetOffset();
XSvg_GetViewBox();
XSvg_EnableAutoDestroy();
XSvg_AddRef();
XSvg_Release();
XSvg_GetRefCount();
XSvg_Destroy();
XDraw_DrawSvgSrc();
XDraw_DrawSvg();
XDraw_DrawSvgEx();
XDraw_DrawSvgSize();
XWnd_AddBkBorder();
XWnd_AddBkFill();
XWnd_AddBkImage();
XWnd_GetBkInfoCount();
XWnd_ClearBkInfo();
Font_Info_Name();
UintPtrToString();

v1.3.12-2

10 Nov 04:32
Compare
Choose a tag to compare

优化内存加载相关参数

v1.3.12-1

04 Nov 05:03
Compare
Choose a tag to compare

v1.3.12-1封装于XCGUI官方3.1.2版本.
从这个版本号中能看出XCGUI官方的版本号.

2021-11-04

  1. 更改部分类继承关系.

2021-11-02

  1. 增加函数.
    XFont_CreateFromRes();
    XC_IsEnableD2D();
    XMsg_Create();
  2. 修改函数.
    XC_MessageBox(); //优化参数
    XWnd_Attach(); //增加参数XCStyle
    XModalWnd_Attach(); //增加参数XCStyle
    XFrameWnd_Attach(); //增加参数XCStyle

2021-11-01

  1. 增加函数.
    XDraw_SetTextRenderingHint();
    XFont_CreateFromMem();
    XComboBox_PopupDropList();
    XComboBox_SetItemTemplate();

2021-10-22

  1. 常量修改.
    (1) 去掉窗口样式常量前的Xc_
    (2) 增加窗口样式常量:
    window_style_icon = 64, ///<图标
    window_style_title = 128, ///<标题
    window_style_btn_min = 256, ///<控制按钮-最小化
    window_style_btn_max = 512, ///<控制按钮-最大化
    window_style_btn_close = 1024,///<控制按钮-关闭
    window_style_simple = 47
    window_style_modal_simple=7
    (3) 修改窗口样式常量值:
    window_style_modal = 1223
    window_style_default = 2031
    (4) 增加D2D文本渲染模式相关常量:
    XC_DWRITE_RENDERING_MODE_

  2. 增加函数.
    XWnd_SetIcon();
    XWnd_SetTitle();
    XWnd_SetTitleColor();
    XWnd_GetButton();
    XWnd_GetIcon();
    XWnd_GetTitle();
    XWnd_GetTitleColor();
    XC_GetD2dFactory();
    XC_GetWicFactory();
    XC_GetDWriteFactory();
    XC_SetD2dTextRenderingMode();
    XDraw_GetD2dRenderTarget();
    XDraw_SetD2dTextRenderingMode();

  3. 修改函数.
    (1) 增加参数:
    XImage_LoadResAdaptive();
    XImage_LoadRes();
    (2) 去掉重复的拉伸属性参数bStretch:
    XImage_LoadFile();
    XImage_LoadZip();
    XImage_LoadZipMem();
    XImage_LoadMemory();
    XImage_LoadMemoryRect();

2021-10-07

  1. 增加D2D支持.
    XInitXCGUI(true);// 参数为true启用D2D.

  2. 图形绘制接口(Draw)优化, 增加参数为浮点型的函数.

  3. 增加函数.
    XWnd_GetCaretInfo();
    ABGR();
    ABGR2();

  4. 修改函数.
    XWnd_SetCaretPos()
    XFont_Create2() 改为 XFont_CreateEx()
    XFont_CreateEx() 改为 XFont_CreateLOGFONTW()
    XEle_GetContentSize()

  5. 删除函数.
    XListBox_AddItemBkBorder()
    XListBox_AddItemBkFill()
    XListBox_AddItemBkImage()
    XListBox_GetItemBkInfoCount()
    XListBox_ClearItemBkInfo()

    XList_AddItemBkBorder()
    XList_AddItemBkFill()
    XList_AddItemBkImage()
    XList_GetItemBkInfoCount()
    XList_ClearItemBkInfo()

    XTree_AddItemBkBorder()
    XTree_AddItemBkFill()
    XTree_AddItemBkImage()
    XTree_GetItemBkInfoCount()
    XTree_ClearItemBkInfo()

    XListView_AddItemBkBorder()
    XListView_AddItemBkFill()
    XListView_AddItemBkImage()
    XListView_GetItemBkInfoCout()
    XListView_ClearItemBkInfo()

    XWnd_SetCaretPosEx()
    XWnd_SetCaretSize()
    XFont_Create3()
    XFont_Create2()

2021-09-08

  1. 增加函数.
    XObj_SetTypeEx();
    XWnd_Show();
    XWidget_SetID();
    XWidget_GetID();
    XWidget_SetUID();
    XWidget_GetUID();
    XWidget_SetName();
    XWidget_GetName();
    XProgBar_EnableStretch();
    XProgBar_EnableShowText();

  2. 修改函数.
    (1) 增加参数:(nState int)
    XEle_AddBkBorder();
    XEle_AddBkFill();
    XEle_AddBkImage();
    (2) 删除函数: 因为两端大小可以通过设置边和内填充实现
    XProgBar_SetSpaceTwo();
    XSliderBar_SetSpaceTwo();
    (3) 移除函数: 移除的部分函数提升到父级模块
    XBtn_AddBkBorder();
    XBtn_AddBkFill();
    XBtn_AddBkImage();
    XBtn_ClearBkInfo();
    XBtn_GetBkInfoCount();
    XBtn_GetStyle();
    XBtn_GetType();
    XBtn_SetStyle();
    XBtn_SetType();
    XEle_GetHWINDOW();
    XEle_GetHWND();
    XEle_GetParent();
    XEle_GetParentEle();
    XEle_GetType();
    XEle_IsShow();
    XEle_Show();
    XSView_GetBorderSize();
    XSView_SetBorderSize();
    XComboBox_AddBkBorder();
    XComboBox_AddBkFill();
    XComboBox_AddBkImage();
    XComboBox_ClearBkInfo();
    XComboboX_GetBkInfoCount();
    XShape_GetHWINDOW();
    XShape_GetParent();
    XShape_GetParentEle();
    XEle_GetID();
    XEle_GetName();
    XEle_GetUID();
    XEle_SetID();
    XEle_SetName();
    XEle_SetUID();
    XShape_GetID();
    XShape_GetName();
    XShape_GetUID();
    XShape_SetID();
    XShape_SetName();
    XShape_SetUID();
    (4)修改函数名
    XProgBar_SetHorizon() 改为 XProgBar_EnableHorizon()
    XSBar_SetHorizon() 改为 XSBar_EnableHorizon()
    XSliderBar_SetHorizon() 改为 XSliderBar_EnableHorizon()

  3. 类FontX改名为Font, 包名随之更改.

  4. 对所有注释进行适当换行, 参数注释看起来更加明了.

v0.0.6

18 Sep 06:38
Compare
Choose a tag to compare

v0.0.6

v0.0.5

15 Sep 04:38
Compare
Choose a tag to compare

v0.0.5

v0.0.4

09 Sep 09:06
Compare
Choose a tag to compare

1.优化了项目结构
2.所有类封装完毕

v0.0.3

08 Sep 09:18
Compare
Choose a tag to compare

v0.0.3

v0.0.2

07 Sep 09:15
Compare
Choose a tag to compare

v0.0.2