Documentation ¶
Overview ¶
Package xc 包含了xcgui所有的API.
Index ¶
- func ABGR(r, g, b, a byte) int
- func ABGR2(rgb int, a byte) int
- func ARGB(r, g, b, a byte) int
- func ARGB2(rgb int, a byte) int
- func ClientToScreen(hWindow int, pPoint *POINT)
- func Font_Info_Name(arr [32]uint16) string
- func GetVer() string
- func GetXcgui() *syscall.LazyDLL
- func GetXcguiPath() string
- func HexRGB2ABGR(str string, a byte) int
- func HexRGB2ARGB(str string, a byte) int
- func HexRGB2RGB(str string) int
- func LoadXCGUI() *syscall.LazyDLL
- func PathExists(path string) (bool, error)
- func PointInRect(pt POINT, rc RECT) bool
- func RGB(r, g, b byte) int
- func RGB2ABGR(rgb int, a byte) int
- func RGB2ARGB(rgb int, a byte) int
- func RGBA(r, g, b, a byte) int
- func RGBA2(rgb int, a byte) int
- func SetBnClicks(HXCGUI int, onBnClick func(hEle int, pbHandled *bool) int)
- func SetXcguiPath(XcguiPath string) error
- func WriteDll(dll []byte) error
- func XAdListView_Create() int
- func XAdListView_DeleteAll(hAdapter int)
- func XAdListView_DeleteAllGroup(hAdapter int)
- func XAdListView_DeleteAllItem(hAdapter int)
- func XAdListView_DeleteColumnGroup(hAdapter int, iColumn int32)
- func XAdListView_DeleteColumnItem(hAdapter int, iColumn int32)
- func XAdListView_Group_AddColumn(hAdapter int, pName string) int32
- func XAdListView_Group_AddItemImage(hAdapter int, hImage int, iPos int32) int32
- func XAdListView_Group_AddItemImageEx(hAdapter int, pName string, hImage int, iPos int32) int32
- func XAdListView_Group_AddItemText(hAdapter int, pValue string, iPos int32) int32
- func XAdListView_Group_AddItemTextEx(hAdapter int, pName string, pValue string, iPos int32) int32
- func XAdListView_Group_DeleteAllChildItem(hAdapter int, iGroup int32)
- func XAdListView_Group_DeleteItem(hAdapter int, iGroup int32) bool
- func XAdListView_Group_GetCount(hAdapter int) int32
- func XAdListView_Group_GetImage(hAdapter int, iGroup, iColumn int32) int
- func XAdListView_Group_GetImageEx(hAdapter int, iGroup int32, pName string) int
- func XAdListView_Group_GetText(hAdapter int, iGroup, iColumn int32) string
- func XAdListView_Group_GetTextEx(hAdapter int, iGroup int32, pName string) string
- func XAdListView_Group_SetImage(hAdapter int, iGroup, iColumn int32, hImage int) bool
- func XAdListView_Group_SetImageEx(hAdapter int, iGroup int32, pName string, hImage int) bool
- func XAdListView_Group_SetText(hAdapter int, iGroup, iColumn int32, pValue string) bool
- func XAdListView_Group_SetTextEx(hAdapter int, iGroup int32, pName string, pValue string) bool
- func XAdListView_Item_AddColumn(hAdapter int, pName string) int32
- func XAdListView_Item_AddItemImage(hAdapter int, iGroup int32, hImage int, iPos int32) int32
- func XAdListView_Item_AddItemImageEx(hAdapter int, iGroup int32, pName string, hImage int, iPos int32) int32
- func XAdListView_Item_AddItemText(hAdapter int, iGroup int32, pValue string, iPos int32) int32
- func XAdListView_Item_AddItemTextEx(hAdapter int, iGroup int32, pName string, pValue string, iPos int32) int32
- func XAdListView_Item_DeleteItem(hAdapter int, iGroup, iItem int32) bool
- func XAdListView_Item_GetCount(hAdapter int, iGroup int32) int32
- func XAdListView_Item_GetImage(hAdapter int, iGroup, iItem int32, pName string) int
- func XAdListView_Item_GetImageEx(hAdapter int, iGroup, iItem int32, pName string) int
- func XAdListView_Item_GetText(hAdapter int, iGroup, iItem, iColumn int32) string
- func XAdListView_Item_GetTextEx(hAdapter int, iGroup, iItem int32, pName string) string
- func XAdListView_Item_SetImage(hAdapter int, iGroup, iItem, iColumn int32, hImage int) bool
- func XAdListView_Item_SetImageEx(hAdapter int, iGroup, iItem int32, pName string, hImage int) bool
- func XAdListView_Item_SetText(hAdapter int, iGroup, iItem, iColumn int32, pValue string) bool
- func XAdListView_Item_SetTextEx(hAdapter int, iGroup, iItem int32, pName string, pValue string) bool
- func XAdMap_AddItemImage(hAdapter int, pName string, hImage int) bool
- func XAdMap_AddItemText(hAdapter int, pName string, pValue string) bool
- func XAdMap_Create() int
- func XAdMap_DeleteItem(hAdapter int, pName string) bool
- func XAdMap_GetCount(hAdapter int) int32
- func XAdMap_GetItemImage(hAdapter int, pName string) int
- func XAdMap_GetItemText(hAdapter int, pName string) string
- func XAdMap_SetItemImage(hAdapter int, pName string, hImage int) bool
- func XAdMap_SetItemText(hAdapter int, pName string, pValue string) bool
- func XAdTable_AddColumn(hAdapter int, pName string) int32
- func XAdTable_AddItemImage(hAdapter int, hImage int) int32
- func XAdTable_AddItemImageEx(hAdapter int, pName string, hImage int) int32
- func XAdTable_AddItemText(hAdapter int, pValue string) int32
- func XAdTable_AddItemTextEx(hAdapter int, pName string, pValue string) int32
- func XAdTable_AddRowImage(hAdapter int, hImage int) int32
- func XAdTable_AddRowImageEx(hAdapter int, pName string, hImage int) int32
- func XAdTable_AddRowText(hAdapter int, pValue string) int32
- func XAdTable_AddRowTextEx(hAdapter int, pName string, pValue string) int32
- func XAdTable_Create() int
- func XAdTable_DeleteColumnAll(hAdapter int)
- func XAdTable_DeleteItem(hAdapter int, iRow int32) bool
- func XAdTable_DeleteItemAll(hAdapter int)
- func XAdTable_DeleteItemEx(hAdapter int, iRow int32, nCount int32) bool
- func XAdTable_DeleteRow(hAdapter int, iRow int32) bool
- func XAdTable_DeleteRowAll(hAdapter int)
- func XAdTable_DeleteRowEx(hAdapter int, iRow int32, nCount int32) bool
- func XAdTable_GetCount(hAdapter int) int32
- func XAdTable_GetCountColumn(hAdapter int) int32
- func XAdTable_GetCountRow(hAdapter int) int32
- func XAdTable_GetItemDataType(hAdapter int, iItem, iColumn int32) xcc.Adapter_Date_Type_
- func XAdTable_GetItemDataTypeEx(hAdapter int, iItem int32, pName string) xcc.Adapter_Date_Type_
- func XAdTable_GetItemFloat(hAdapter int, iItem, iColumn int32, pOutValue *float32) bool
- func XAdTable_GetItemFloatEx(hAdapter int, iItem int32, pName string, pOutValue *float32) bool
- func XAdTable_GetItemImage(hAdapter int, iItem, iColumn int32) int
- func XAdTable_GetItemImageEx(hAdapter int, iItem int32, pName string) int
- func XAdTable_GetItemInt(hAdapter int, iItem, iColumn int32, pOutValue *int32) bool
- func XAdTable_GetItemIntEx(hAdapter int, iItem int32, pName string, pOutValue *int32) bool
- func XAdTable_GetItemText(hAdapter int, iItem, iColumn int32) string
- func XAdTable_GetItemTextEx(hAdapter int, iItem int32, pName string) string
- func XAdTable_InsertItemImage(hAdapter int, iRow int32, hImage int) int32
- func XAdTable_InsertItemImageEx(hAdapter int, iRow int32, pName string, hImage int) int32
- func XAdTable_InsertItemText(hAdapter int, iRow int32, pValue string) int32
- func XAdTable_InsertItemTextEx(hAdapter int, iRow int32, pName string, pValue string) int32
- func XAdTable_InsertRowImage(hAdapter int, iRow int32, hImage int) int32
- func XAdTable_InsertRowImageEx(hAdapter int, iRow int32, pName string, hImage int) int32
- func XAdTable_InsertRowText(hAdapter int, iRow int32, pValue string) int32
- func XAdTable_InsertRowTextEx(hAdapter int, iRow int32, pName string, pValue string) int32
- func XAdTable_SetColumn(hAdapter int, pColName string) int32
- func XAdTable_SetItemFloat(hAdapter int, iItem, iColumn int32, fValue float32) bool
- func XAdTable_SetItemFloatEx(hAdapter int, iItem int32, pName string, fValue float32) bool
- func XAdTable_SetItemImage(hAdapter int, iItem, iColumn int32, hImage int) bool
- func XAdTable_SetItemImageEx(hAdapter int, iItem int32, pName string, hImage int) bool
- func XAdTable_SetItemInt(hAdapter int, iItem, iColumn int32, nValue int32) bool
- func XAdTable_SetItemIntEx(hAdapter int, iItem int32, pName string, nValue int32) bool
- func XAdTable_SetItemText(hAdapter int, iItem, iColumn int32, pValue string) bool
- func XAdTable_SetItemTextEx(hAdapter int, iItem int32, pName string, pValue string) bool
- func XAdTable_Sort(hAdapter int, iColumn int32, bAscending bool)
- func XAdTree_AddColumn(hAdapter int, pName string) int32
- func XAdTree_Create() int
- func XAdTree_DeleteColumnAll(hAdapter int)
- func XAdTree_DeleteItem(hAdapter int, nID int32) bool
- func XAdTree_DeleteItemAll(hAdapter int)
- func XAdTree_GetCount(hAdapter int) int32
- func XAdTree_GetCountColumn(hAdapter int) int32
- func XAdTree_GetItemImage(hAdapter int, nID, iColumn int32) int
- func XAdTree_GetItemImageEx(hAdapter int, nID int32, pName string) int
- func XAdTree_GetItemText(hAdapter int, nID, iColumn int32) string
- func XAdTree_GetItemTextEx(hAdapter int, nID int32, pName string) string
- func XAdTree_InsertItemImage(hAdapter int, hImage int, nParentID, insertID int32) int32
- func XAdTree_InsertItemImageEx(hAdapter int, pName string, hImage int, nParentID, insertID int32) int32
- func XAdTree_InsertItemText(hAdapter int, pValue string, nParentID, insertID int32) int32
- func XAdTree_InsertItemTextEx(hAdapter int, pName string, pValue string, nParentID, insertID int32) int32
- func XAdTree_SetColumn(hAdapter int, pColName string) int32
- func XAdTree_SetItemImage(hAdapter int, nID, iColumn int32, hImage int) bool
- func XAdTree_SetItemImageEx(hAdapter int, nID int32, pName string, hImage int) bool
- func XAdTree_SetItemText(hAdapter int, nID, iColumn int32, pValue string) bool
- func XAdTree_SetItemTextEx(hAdapter int, nID int32, pName string, pValue string) bool
- func XAd_AddRef(hAdapter int) int32
- func XAd_Destroy(hAdapter int)
- func XAd_EnableAutoDestroy(hAdapter int, bEnable bool)
- func XAd_GetRefCount(hAdapter int) int32
- func XAd_Release(hAdapter int) int32
- func XAnimaGroup_AddItem(hGroup int, hSequence int)
- func XAnimaGroup_Create(nLoopCount int32) int
- func XAnimaItem_EnableAutoDestroy(hAnimationItem int, bEnable bool)
- func XAnimaItem_EnableCompleteRelease(hAnimationItem int, bEnable bool)
- func XAnimaItem_GetUserData(hAnimationItem int) int
- func XAnimaItem_SetCallback(hAnimationItem int, callback FunAnimationItem)
- func XAnimaItem_SetUserData(hAnimationItem, nUserData int)
- func XAnimaMove_SetFlag(hAnimationMove int, flags xcc.Animation_Move_)
- func XAnimaRotate_SetCenter(hAnimationRotate int, x, y float32, bOffset bool)
- func XAnimaScale_SetPosition(hAnimationScale int, position xcc.Position_Flag_)
- func XAnima_Alpha(hSequence int, duration uint32, alpha uint8, nLoopCount int32, ...) int
- func XAnima_AlphaEx(hSequence int, duration uint32, from_alpha byte, to_alpha byte, ...) int
- func XAnima_Color(hSequence int, duration uint32, color int, nLoopCount int32, ...) int
- func XAnima_ColorEx(hSequence int, duration uint32, from int, to int, nLoopCount int32, ...) int
- func XAnima_Create(hObjectUI int, nLoopCount int32) int
- func XAnima_Delay(hSequence int, duration float32) int
- func XAnima_DelayEx(hSequence int, duration float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, ...) int
- func XAnima_DestroyObjectUI(hSequence int, duration float32) int
- func XAnima_EnableAutoDestroy(hAnimation int, bEnable bool)
- func XAnima_GetObjectUI(hAnimation int) int
- func XAnima_GetUserData(hAnimationEx int) int
- func XAnima_LayoutHeight(hSequence int, duration uint32, nType xcc.Layout_Size_, height float32, ...) int
- func XAnima_LayoutSize(hSequence int, duration uint32, nWidthType xcc.Layout_Size_, width float32, ...) int
- func XAnima_LayoutWidth(hSequence int, duration uint32, nType xcc.Layout_Size_, width float32, ...) int
- func XAnima_Move(hSequence int, duration uint32, x float32, y float32, nLoopCount int32, ...) int
- func XAnima_MoveEx(hSequence int, duration uint32, from_x float32, from_y float32, to_x float32, ...) int
- func XAnima_Pause(hAnimationEx int) bool
- func XAnima_Release(hAnimation int, bEnd bool) bool
- func XAnima_ReleaseEx(hObjectUI int, bEnd bool) int32
- func XAnima_Rotate(hSequence int, duration uint32, angle float32, nLoopCount int32, ...) int
- func XAnima_RotateEx(hSequence int, duration uint32, from float32, to float32, nLoopCount int32, ...) int
- func XAnima_Run(hAnimation int, hRedrawObjectUI int)
- func XAnima_Scale(hSequence int, duration uint32, scaleX float32, scaleY float32, ...) int
- func XAnima_ScaleSize(hSequence int, duration uint32, width float32, height float32, ...) int
- func XAnima_SetCallBack(hAnimationEx int, callback FunAnimation)
- func XAnima_SetUserData(hAnimationEx, nUserData int)
- func XAnima_Show(hSequence int, duration float32, bShow bool) int
- func XAnima_Start(hAnimationEx int) bool
- func XAnima_Stop(hAnimationEx int) bool
- func XBkM_AddBorder(hBkInfoM int, nState xcc.CombinedState, color int, width, id int32)
- func XBkM_AddFill(hBkInfoM int, nState xcc.CombinedState, color int, id int32)
- func XBkM_AddImage(hBkInfoM int, nState xcc.CombinedState, hImage int, id int32)
- func XBkM_AddInfo(hBkInfoM int, pText string) int32
- func XBkM_AddRef(hBkInfoM int)
- func XBkM_Clear(hBkInfoM int)
- func XBkM_Create() int
- func XBkM_Destroy(hBkInfoM int)
- func XBkM_Draw(hBkInfoM int, nState xcc.CombinedState, hDraw int, pRect *RECT) bool
- func XBkM_DrawEx(hBkInfoM int, nState xcc.CombinedState, hDraw int, pRect *RECT, ...) bool
- func XBkM_EnableAutoDestroy(hBkInfoM int, bEnable bool)
- func XBkM_GetCount(hBkInfoM int) int32
- func XBkM_GetObject(hBkInfoM int, id int32) int
- func XBkM_GetRefCount(hBkInfoM int) int32
- func XBkM_GetStateTextColor(hBkInfoM int, nState xcc.CombinedState, color *int) bool
- func XBkM_Release(hBkInfoM int)
- func XBkM_SetBkInfo(hBkInfoM int, pText string) int32
- func XBkM_SetInfo(hBkInfoM int, pText string) int32
- func XBkObj_EnableBorder(hObj int, bEnable bool)
- func XBkObj_EnableFill(hObj int, bEnable bool)
- func XBkObj_GetAlign(hObj int) xcc.BkObject_Align_Flag_
- func XBkObj_GetBorderColor(hObj int) int
- func XBkObj_GetBorderWidth(hObj int) int32
- func XBkObj_GetFillColor(hObj int) int
- func XBkObj_GetFont(hObj int) int
- func XBkObj_GetImage(hObj int) int
- func XBkObj_GetMargin(hObj int, pMargin *RECT)
- func XBkObj_GetRectRoundAngle(hObj int, pRect *RECT)
- func XBkObj_GetRotate(hObj int) int32
- func XBkObj_GetText(hObj int) string
- func XBkObj_GetTextAlign(hObj int) xcc.TextFormatFlag_
- func XBkObj_IsBorder(hObj int) bool
- func XBkObj_IsFill(hObj int) bool
- func XBkObj_SetAlign(hObj int, nFlags xcc.BkObject_Align_Flag_)
- func XBkObj_SetBorderColor(hObj int, color int)
- func XBkObj_SetBorderWidth(hObj int, width int32)
- func XBkObj_SetFillColor(hObj int, color int)
- func XBkObj_SetFont(hObj int, hFont int)
- func XBkObj_SetImage(hObj int, hImage int)
- func XBkObj_SetMargin(hObj int, left, top, right, bottom int32)
- func XBkObj_SetRectRoundAngle(hObj int, leftTop, leftBottom, rightTop, rightBottom int32)
- func XBkObj_SetRotate(hObj int, angle float32)
- func XBkObj_SetText(hObj int, pText string)
- func XBkObj_SetTextAlign(hObj int, nAlign xcc.TextFormatFlag_)
- func XBtn_AddAnimationFrame(hEle int, hImage int, uElapse int) int
- func XBtn_Create(x, y, cx, cy int32, pName string, hParent int) int
- func XBtn_EnableAnimation(hEle int, bEnable bool, bLoopPlay bool) int
- func XBtn_EnableHotkeyPrefix(hEle int, bEnable bool)
- func XBtn_GetBindEle(hEle int) int
- func XBtn_GetGroupID(hEle int) int32
- func XBtn_GetIcon(hEle int, nType int) int
- func XBtn_GetState(hEle int) xcc.Common_State3_
- func XBtn_GetStateEx(hEle int) xcc.Button_State_
- func XBtn_GetText(hEle int) string
- func XBtn_GetTextAlign(hEle int) xcc.TextFormatFlag_
- func XBtn_IsCheck(hEle int) bool
- func XBtn_SetBindEle(hEle int, hBindEle int) int
- func XBtn_SetCheck(hEle int, bCheck bool) bool
- func XBtn_SetGroupID(hEle int, nID int32) int
- func XBtn_SetIcon(hEle int, hImage int) int
- func XBtn_SetIconAlign(hEle int, align xcc.Button_Icon_Align_) int
- func XBtn_SetIconDisable(hEle int, hImage int) int
- func XBtn_SetIconSpace(hEle int, size int) int
- func XBtn_SetOffset(hEle int, x int, y int) int
- func XBtn_SetOffsetIcon(hEle int, x int, y int) int
- func XBtn_SetState(hEle int, nState xcc.Common_State3_) int
- func XBtn_SetText(hEle int, pName string) int
- func XBtn_SetTextAlign(hEle int, nFlags xcc.TextFormatFlag_) int
- func XBtn_SetTypeEx(hEle int, nType xcc.XC_OBJECT_TYPE_EX) int
- func XC_AddFileSearchPath(pPath string)
- func XC_Alert(pTitle, pText string)
- func XC_AnsiToUnicode(pIn uintptr, inLen int, pOut *string, outLen int) int
- func XC_CallUT(f func())
- func XC_CallUiThread(pCall func(data int) int, data int) int
- func XC_CallUiThreadEx(f func(data int) int, data int) int
- func XC_CallUiThreader(u UiThreader, data int) int
- func XC_CombineRect(pDest *RECT, pSrc1 *RECT, pSrc2 *RECT)
- func XC_DebugToFileInfo(pInfo string)
- func XC_EnableAutoDPI(bEnabel bool)
- func XC_EnableAutoExitApp(bEnabel bool)
- func XC_EnableAutoRedrawUI(bEnabel bool)
- func XC_EnableDPI(bEnabel bool) bool
- func XC_EnableDebugFile(bEnable bool)
- func XC_EnableErrorMessageBox(bEnabel bool)
- func XC_EnableGdiDrawText(bEnable bool)
- func XC_EnableResMonitor(bEnable bool)
- func XC_Free(p uintptr)
- func XC_FreeLibrary(hModule uintptr) bool
- func XC_GetD2dFactory() int
- func XC_GetDWriteFactory() int
- func XC_GetDefaultFont() int
- func XC_GetHandleCount() int32
- func XC_GetObjectByID(hWindow int, nID int) int
- func XC_GetObjectByIDName(hWindow int, pName string) int
- func XC_GetObjectByName(pName string) int
- func XC_GetObjectByUID(nUID int) int
- func XC_GetObjectByUIDName(pName string) int
- func XC_GetObjectType(hXCGUI int) xcc.XC_OBJECT_TYPE
- func XC_GetProcAddress(hModule uintptr, lpProcName string) uintptr
- func XC_GetProperty(hXCGUI int, pName string) string
- func XC_GetTextShowRect(pString string, length int, hFontX int, nTextAlign xcc.TextFormatFlag_, ...)
- func XC_GetTextShowSize(pString string, length int, hFontX int, pOutSize *SIZE)
- func XC_GetTextShowSizeEx(pString string, length int, hFontX int, nTextAlign xcc.TextFormatFlag_, ...)
- func XC_GetTextSize(pString string, length int, hFontX int, pOutSize *SIZE)
- func XC_GetWicFactory() int
- func XC_InitFont(pFont *LOGFONTW, pName string, size int, bBold bool, bItalic bool, ...)
- func XC_IsEnableD2D() bool
- func XC_IsHELE(hEle int) bool
- func XC_IsHWINDOW(hWindow int) bool
- func XC_IsHXCGUI(hXCGUI int, nType xcc.XC_OBJECT_TYPE) bool
- func XC_IsSViewExtend(hEle int) bool
- func XC_IsShape(hShape int) bool
- func XC_LoadDll(pDllFileName string) uintptr
- func XC_LoadLayout(pFileName string, hParent int, hAttachWnd uintptr) int
- func XC_LoadLayoutEx(pFileName, pPrefixName string, hParent int, hParentWnd, hAttachWnd uintptr) int
- func XC_LoadLayoutFromStringW(pStringXML string, hParent int, hAttachWnd uintptr) int
- func XC_LoadLayoutFromStringWEx(pStringXML, pPrefixName string, hParent int, hParentWnd, hAttachWnd uintptr) int
- func XC_LoadLayoutZip(pZipFileName string, pFileName string, pPassword string, hParent int, ...) int
- func XC_LoadLayoutZipEx(pZipFileName string, pFileName string, pPassword, pPrefixName string, ...) int
- func XC_LoadLayoutZipMem(data []byte, pFileName string, pPassword string, hParent int, ...) int
- func XC_LoadLayoutZipMemEx(data []byte, pFileName string, pPassword, pPrefixName string, hParent int, ...) int
- func XC_LoadLayoutZipResEx(id int32, pFileName string, pPassword, pPrefixName string, hParent int, ...) int
- func XC_LoadLibrary(lpFileName string) uintptr
- func XC_LoadResource(pFileName string) bool
- func XC_LoadResourceFromStringW(pStringXML string, pFileName string) bool
- func XC_LoadResourceZip(pZipFileName string, pFileName string, pPassword string) bool
- func XC_LoadResourceZipMem(data []byte, pFileName string, pPassword string) bool
- func XC_LoadResourceZipRes(id int, pFileName string, pPassword string, hModule uintptr) bool
- func XC_LoadStyle(pFileName string) bool
- func XC_LoadStyleFromStringW(pFileName string, pString string) bool
- func XC_LoadStyleZip(pZipFile string, pFileName string, pPassword string) bool
- func XC_LoadStyleZipMem(data []byte, pFileName string, pPassword string) bool
- func XC_LoadStyleZipRes(id int, pFileName string, pPassword string, hModule uintptr) bool
- func XC_Malloc(size int32) uintptr
- func XC_MessageBox(pTitle, pText string, nFlags xcc.MessageBox_Flag_, hWndParent uintptr, ...) xcc.MessageBox_Flag_
- func XC_PostMessage(hWindow int, msg uint32, wParam int32, lParam int32) bool
- func XC_PostQuitMessage(nExitCode int)
- func XC_RectInRect(pRect1 *RECT, pRect2 *RECT) bool
- func XC_RegisterWindowClassName(pClassName string) bool
- func XC_SendMessage(hWindow int, msg uint32, wParam, lParam uint) uint
- func XC_SetActivateTopWindow() bool
- func XC_SetD2dTextRenderingMode(mode xcc.XC_DWRITE_RENDERING_MODE_)
- func XC_SetDefaultFont(hFontX int)
- func XC_SetLayoutFrameColor(color int)
- func XC_SetPaintFrequency(nMilliseconds int)
- func XC_SetProperty(hXCGUI int, pName string, pValue string) bool
- func XC_SetTextRenderingHint(nType int)
- func XC_SetWindowIcon(hImage int)
- func XC_ShowLayoutFrame(bShow bool)
- func XC_ShowSvgFrame(bShow bool)
- func XC_Sys_ShellExecute(hwnd uintptr, lpOperation string, lpFile string, lpParameters string, ...) uintptr
- func XC_UnicodeToAnsi(pIn string, inLen int, pOut uintptr, outLen int) int
- func XC_atoutf8(pValue uintptr) uintptr
- func XC_atow(pValue uintptr) string
- func XC_hWindowFromHWnd(hWnd uintptr) int
- func XC_utf8toa(pUtf8 uintptr) uintptr
- func XC_utf8tow(pUtf8 uintptr) string
- func XC_utf8towEx(pUtf8 uintptr, length int) string
- func XC_wtoa(pValue string) uintptr
- func XC_wtoutf8(pValue string) uintptr
- func XC_wtoutf8Ex(pValue string, length int) uintptr
- func XComboBox_AddItemImage(hEle int, hImage int) int
- func XComboBox_AddItemImageEx(hEle int, pName string, hImage int) int
- func XComboBox_AddItemText(hEle int, pText string) int
- func XComboBox_AddItemTextEx(hEle int, pName string, pText string) int
- func XComboBox_BindAdapter(hEle int, hAdapter int) int
- func XComboBox_Create(x int, y int, cx int, cy int, hParent int) int
- func XComboBox_CreateAdapter(hEle int) int
- func XComboBox_DeleteColumnAll(hEle int) int
- func XComboBox_DeleteItem(hEle int, iItem int) bool
- func XComboBox_DeleteItemAll(hEle int) int
- func XComboBox_DeleteItemEx(hEle int, iItem int, nCount int) bool
- func XComboBox_EnableDrawButton(hEle int, bEnable bool) int
- func XComboBox_EnableDropHeightFixed(hEle int, bEnable bool) int
- func XComboBox_EnableEdit(hEle int, bEdit bool) int
- func XComboBox_GetAdapter(hEle int) int
- func XComboBox_GetButtonRect(hEle int, pRect *RECT) int
- func XComboBox_GetCount(hEle int) int
- func XComboBox_GetCountColumn(hEle int) int
- func XComboBox_GetDropHeight(hEle int) int
- func XComboBox_GetItemFloat(hEle int, iItem int, iColumn int, pOutValue *float32) bool
- func XComboBox_GetItemFloatEx(hEle int, iItem int, pName string, pOutValue *float32) bool
- func XComboBox_GetItemImage(hEle int, iItem int, iColumn int) int
- func XComboBox_GetItemImageEx(hEle int, iItem int, pName string) int
- func XComboBox_GetItemInt(hEle int, iItem int, iColumn int, pOutValue *int32) bool
- func XComboBox_GetItemIntEx(hEle int, iItem int, pName string, pOutValue *int32) bool
- func XComboBox_GetItemTemplate(hEle int) int
- func XComboBox_GetItemText(hEle int, iItem int32, iColumn int32) string
- func XComboBox_GetItemTextEx(hEle int, iItem int, pName string) string
- func XComboBox_GetSelItem(hEle int) int
- func XComboBox_GetState(hEle int) xcc.ComboBox_State_
- func XComboBox_InsertItemImage(hEle int, iItem int, hImage int) int
- func XComboBox_InsertItemImageEx(hEle int, iItem int, pName string, hImage int) int
- func XComboBox_InsertItemText(hEle int, iItem int, pText string) int
- func XComboBox_InsertItemTextEx(hEle int, iItem int, pName string, pText string) int
- func XComboBox_PopupDropList(hEle int) int
- func XComboBox_SetBindName(hEle int, pName string) int
- func XComboBox_SetButtonSize(hEle int, size int) int
- func XComboBox_SetDropHeight(hEle int, height int) int
- func XComboBox_SetItemFloat(hEle int, iItem int, iColumn int, fFloat float32) bool
- func XComboBox_SetItemFloatEx(hEle int, iItem int, pName string, fFloat float32) bool
- func XComboBox_SetItemImage(hEle int, iItem int, iColumn int, hImage int) bool
- func XComboBox_SetItemImageEx(hEle int, iItem int, pName string, hImage int) bool
- func XComboBox_SetItemInt(hEle int, iItem int, iColumn int, nValue int32) bool
- func XComboBox_SetItemIntEx(hEle int, iItem int, pName string, nValue int32) bool
- func XComboBox_SetItemTemplate(hEle, hTemp int) bool
- func XComboBox_SetItemTemplateXML(hEle int, pXmlFile string) int
- func XComboBox_SetItemTemplateXMLFromMem(hEle int, data []byte) bool
- func XComboBox_SetItemTemplateXMLFromString(hEle int, pStringXML string) int
- func XComboBox_SetItemTemplateXMLFromZipRes(hEle int, id int32, pFileName string, pPassword string, hModule uintptr) bool
- func XComboBox_SetItemText(hEle int, iItem int, iColumn int, pText string) bool
- func XComboBox_SetItemTextEx(hEle int, iItem int, pName string, pText string) bool
- func XComboBox_SetSelItem(hEle int, iIndex int) bool
- func XDateTime_Create(x int, y int, cx int, cy int, hParent int) int
- func XDateTime_EnableSplitSlash(hEle int, bSlash bool) int
- func XDateTime_GetButton(hEle int, nType int) int
- func XDateTime_GetDate(hEle int, pnYear *int32, pnMonth *int32, pnDay *int32) int
- func XDateTime_GetSelBkColor(hEle int) int
- func XDateTime_GetStyle(hEle int) int
- func XDateTime_GetTime(hEle int, pnHour *int32, pnMinute *int32, pnSecond *int32) int
- func XDateTime_Popup(hEle int) int
- func XDateTime_SetDate(hEle int, nYear int32, nMonth int32, nDay int32) int
- func XDateTime_SetSelBkColor(hEle int, crSelectBk int) int
- func XDateTime_SetStyle(hEle int, nStyle int) int
- func XDateTime_SetTime(hEle int, nHour int32, nMinute int32, nSecond int32) int
- func XDebug_Print(level int, pInfo string)
- func XDraw_ClearClip(hDraw int)
- func XDraw_Create(hWindow int) int
- func XDraw_CreateGDI(hWindow int, hdc uintptr) int
- func XDraw_D2D_Clear(hDraw int, color int)
- func XDraw_Destroy(hDraw int)
- func XDraw_Dottedline(hDraw int, x1, y1, x2, y2 int32)
- func XDraw_DottedlineF(hDraw int, x1, y1, x2, y2 float32)
- func XDraw_DrawArc(hDraw int, x, y, nWidth, nHeight int32, startAngle, sweepAngle float32)
- func XDraw_DrawArcF(hDraw int, x, y, nWidth, nHeight, startAngle, sweepAngle float32)
- func XDraw_DrawCurve(hDraw int, points []POINT, count int32, tension float32)
- func XDraw_DrawCurveF(hDraw int, points []POINTF, count int32, tension float32)
- func XDraw_DrawEllipse(hDraw int, pRect *RECT)
- func XDraw_DrawLine(hDraw int, x1, y1, x2, y2 int32)
- func XDraw_DrawLineF(hDraw int, x1, y1, x2, y2 float32)
- func XDraw_DrawPolygon(hDraw int, points []POINT, nCount int32)
- func XDraw_DrawPolygonF(hDraw int, points []POINTF, nCount int32)
- func XDraw_DrawRect(hDraw int, pRect *RECT)
- func XDraw_DrawRectF(hDraw int, pRect *RECTF)
- func XDraw_DrawRoundRect(hDraw int, pRect *RECT, nWidth, nHeight int32)
- func XDraw_DrawRoundRectEx(hDraw int, pRect *RECT, nLeftTop, nRightTop, nRightBottom, nLeftBottom int32)
- func XDraw_DrawRoundRectExF(hDraw int, pRect *RECT, nLeftTop, nRightTop, nRightBottom, nLeftBottom float32)
- func XDraw_DrawRoundRectF(hDraw int, pRect *RECT, nWidth, nHeight float32)
- func XDraw_DrawSvg(hDraw int, hSvg int, x, y int32)
- func XDraw_DrawSvgEx(hDraw int, hSvg int, x, y, nWidth, nHeight int32)
- func XDraw_DrawSvgSize(hDraw int, hSvg int, nWidth, nHeight int32)
- func XDraw_DrawSvgSrc(hDraw int, hSvg int)
- func XDraw_DrawText(hDraw int, lpString string, lpRect *RECT)
- func XDraw_DrawTextF(hDraw int, lpString string, lpRect *RECTF)
- func XDraw_DrawTextUnderline(hDraw int, lpString string, lpRect *RECT, colorLine int)
- func XDraw_DrawTextUnderlineF(hDraw int, lpString string, lpRect *RECTF, colorLine int)
- func XDraw_EnableSmoothingMode(hDraw int, bEnable bool)
- func XDraw_EnableWndTransparent(hDraw int, bTransparent bool)
- func XDraw_FillEllipse(hDraw int, pRect *RECT)
- func XDraw_FillEllipseF(hDraw int, pRect *RECTF)
- func XDraw_FillPolygon(hDraw int, points []POINT, nCount int32)
- func XDraw_FillPolygonF(hDraw int, points []POINTF, nCount int32)
- func XDraw_FillRect(hDraw int, pRect *RECT)
- func XDraw_FillRectColor(hDraw int, pRect *RECT, color int)
- func XDraw_FillRectColorF(hDraw int, pRect *RECTF, color int)
- func XDraw_FillRectF(hDraw int, pRect *RECTF)
- func XDraw_FillRoundRect(hDraw int, pRect *RECT, nWidth, nHeight int32)
- func XDraw_FillRoundRectEx(hDraw int, pRect *RECT, nLeftTop, nRightTop, nRightBottom, nLeftBottom int32)
- func XDraw_FillRoundRectExF(hDraw int, pRect *RECTF, ...)
- func XDraw_FillRoundRectF(hDraw int, pRect *RECTF, nWidth, nHeight float32)
- func XDraw_FocusRect(hDraw int, pRect *RECT)
- func XDraw_FocusRectF(hDraw int, pRect *RECTF)
- func XDraw_GDI_AlphaBlend(hDraw int, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest int32, ...) bool
- func XDraw_GDI_BitBlt(hDrawDest int, nXDest, nYDest, nWidth, nHeight int32, hdcSrc uintptr, ...) bool
- func XDraw_GDI_BitBlt2(hDrawDest int, nXDest, nYDest, nWidth, nHeight int32, hDrawSrc uintptr, ...) bool
- func XDraw_GDI_CreatePen(hDraw int, fnPenStyle, nWidth int32, crColor int) int
- func XDraw_GDI_CreatePolygonRgn(hDraw int, pPt []POINT, cPoints, fnPolyFillMode int32) int
- func XDraw_GDI_CreateRectRgn(hDraw int, nLeftRect, nTopRect, nRightRect, nBottomRect int32) int
- func XDraw_GDI_CreateRoundRectRgn(hDraw int, ...) int
- func XDraw_GDI_CreateSolidBrush(hDraw int, crColor int) int
- func XDraw_GDI_DrawIconEx(hDraw int, xLeft, yTop int32, hIcon uintptr, cxWidth, cyWidth int32, ...) bool
- func XDraw_GDI_Ellipse(hDraw int, pRect *RECT) bool
- func XDraw_GDI_FillRgn(hDraw int, hrgn int, hbr int) bool
- func XDraw_GDI_FrameRgn(hDraw int, hrgn int, hbr int, nWidth, nHeight int32) bool
- func XDraw_GDI_LineTo(hDraw int, nXEnd, nYEnd int32) bool
- func XDraw_GDI_MoveToEx(hDraw int, X, Y int32, pPoint *POINT) bool
- func XDraw_GDI_Polyline(hDraw int, pArrayPt []POINT, arrayPtSize int32) bool
- func XDraw_GDI_Rectangle(hDraw int, nLeftRect, nTopRect, nRightRect, nBottomRect int32) bool
- func XDraw_GDI_RestoreGDIOBJ(hDraw int)
- func XDraw_GDI_SelectClipRgn(hDraw int, hRgn int) int32
- func XDraw_GDI_SetBkMode(hDraw int, bTransparent bool) int32
- func XDraw_GDI_SetPixel(hDraw int, X, Y int32, crColor int) int
- func XDraw_GetD2dRenderTarget(hDraw int) int
- func XDraw_GetFont(hDraw int) int
- func XDraw_GetHDC(hDraw int) uintptr
- func XDraw_GetOffset(hDraw int, pX, pY *int32)
- func XDraw_GradientFill2(hDraw int, pRect *RECT, color1 int, color2 int, mode xcc.GRADIENT_FILL_)
- func XDraw_GradientFill2F(hDraw int, pRect *RECTF, color1 int, color2 int, mode xcc.GRADIENT_FILL_)
- func XDraw_GradientFill4(hDraw int, pRect *RECT, color1 int, color2 int, color3 int, color4 int, ...)
- func XDraw_GradientFill4F(hDraw int, pRect *RECTF, color1 int, color2 int, color3 int, color4 int, ...)
- func XDraw_Image(hDraw int, hImageFrame int, x, y int32)
- func XDraw_ImageAdaptive(hDraw int, hImageFrame int, pRect *RECT, bOnlyBorder bool)
- func XDraw_ImageAdaptiveF(hDraw int, hImageFrame int, pRect *RECTF, bOnlyBorder bool)
- func XDraw_ImageEx(hDraw int, hImageFrame int, x, y, width, height int32)
- func XDraw_ImageExF(hDraw int, hImageFrame int, x, y, width, height float32)
- func XDraw_ImageF(hDraw int, hImageFrame int, x, y float32)
- func XDraw_ImageMask(hDraw int, hImageFrame int, hImageFrameMask int, pRect *RECT, x, y int32)
- func XDraw_ImageMaskEllipse(hDraw int, hImageFrame int, pRect *RECT, pRcMask *RECT)
- func XDraw_ImageMaskRect(hDraw int, hImageFrame int, pRect *RECT, pRcMask *RECT, pRcRoundAngle *RECT)
- func XDraw_ImageSuper(hDraw int, hImageFrame int, pRect *RECT, bClip bool)
- func XDraw_ImageSuperEx(hDraw int, hImageFrame int, prcDest *RECT, prcSrc *RECT)
- func XDraw_ImageSuperExF(hDraw int, hImageFrame int, prcDest *RECTF, prcSrc *RECT)
- func XDraw_ImageSuperF(hDraw int, hImageFrame int, pRect *RECTF, bClip bool)
- func XDraw_ImageSuperMask(hDraw int, hImageFrame int, hImageFrameMask int, pRect *RECT, pRectMask *RECT, ...)
- func XDraw_ImageTile(hDraw int, hImageFrame int, hImageFrameMask int, pRect *RECT, flag int32)
- func XDraw_ImageTileF(hDraw int, hImageFrame int, hImageFrameMask int, pRect *RECTF, flag int32)
- func XDraw_SetBrushColor(hDraw int, color int)
- func XDraw_SetClipRect(hDraw int, pRect *RECT)
- func XDraw_SetD2dTextRenderingMode(hDraw int, mode xcc.XC_DWRITE_RENDERING_MODE_)
- func XDraw_SetFont(hDraw int, hFontx int)
- func XDraw_SetLineWidth(hDraw int, nWidth int32)
- func XDraw_SetLineWidthF(hDraw int, nWidth float32)
- func XDraw_SetOffset(hDraw int, x, y int32)
- func XDraw_SetTextAlign(hDraw int, nFlags xcc.TextFormatFlag_)
- func XDraw_SetTextRenderingHint(hDraw int, nType int32)
- func XDraw_SetTextVertical(hDraw int, bVertical bool)
- func XDraw_TextOut(hDraw int, nXStart, nYStart int32, lpString string, cbString string)
- func XDraw_TextOutA(hDraw int, nXStart, nYStart int32, lpString string)
- func XDraw_TextOutAF(hDraw int, nXStart, nYStart float32, lpString string)
- func XDraw_TextOutEx(hDraw int, nXStart, nYStart int32, lpString string)
- func XDraw_TextOutExF(hDraw int, nXStart, nYStart float32, lpString string)
- func XDraw_TextOutF(hDraw int, nXStart, nYStart float32, lpString string, cbString string) int
- func XEase_Back(p float32, flag xcc.Ease_Type_) float32
- func XEase_Bounce(p float32, flag xcc.Ease_Type_) float32
- func XEase_Circ(p float32, flag xcc.Ease_Type_) float32
- func XEase_Cubic(p float32, flag xcc.Ease_Type_) float32
- func XEase_Elastic(p float32, flag xcc.Ease_Type_) float32
- func XEase_Ex(pos float32, flag xcc.Ease_Flag_) float32
- func XEase_Expo(p float32, flag xcc.Ease_Type_) float32
- func XEase_Linear(p float32) float32
- func XEase_Quad(p float32, flag xcc.Ease_Type_) float32
- func XEase_Quart(p float32, flag xcc.Ease_Type_) float32
- func XEase_Quint(p float32, flag xcc.Ease_Type_) float32
- func XEase_Sine(p float32, flag xcc.Ease_Type_) float32
- func XEdit_AddByStyle(hEle int, iStyle int) int
- func XEdit_AddChatBegin(hEle int, hImageAvatar int, hImageBubble int, nFlag xcc.Chat_Flag_) int
- func XEdit_AddChatEnd(hEle int) int
- func XEdit_AddData(hEle int, pData *Edit_Data_Copy_, styleTable []uint16, nStyleCount int) int
- func XEdit_AddObject(hEle int, hObj int) int
- func XEdit_AddStyle(hEle int, hFont_image_Obj int, color int, bColor bool) int
- func XEdit_AddStyleEx(hEle int, fontName string, fontSize int, fontStyle xcc.FontStyle_, color int, ...) int
- func XEdit_AddText(hEle int, pString string) int
- func XEdit_AddTextEx(hEle int, pString string, iStyle int) int
- func XEdit_AddTextUser(hEle int, pString string) int
- func XEdit_AutoScroll(hEle int) bool
- func XEdit_AutoScrollEx(hEle int, iRow int, iCol int) bool
- func XEdit_CancelSelect(hEle int) bool
- func XEdit_ClipboardCopy(hEle int) bool
- func XEdit_ClipboardCopyAll(hEle int) bool
- func XEdit_ClipboardCut(hEle int) bool
- func XEdit_ClipboardPaste(hEle int) bool
- func XEdit_Create(x int, y int, cx int, cy int, hParent int) int
- func XEdit_CreateEx(x int, y int, cx int, cy int, nType xcc.Edit_Type_, hParent int) int
- func XEdit_Delete(hEle int, iStartRow int, iStartCol int, iEndRow int, iEndCol int) bool
- func XEdit_DeleteRow(hEle int, iRow int) bool
- func XEdit_DeleteSelect(hEle int) bool
- func XEdit_EnableAutoCancelSel(hEle int, bEnable bool) int
- func XEdit_EnableAutoSelAll(hEle int, bEnable bool) int
- func XEdit_EnableAutoWrap(hEle int, bEnable bool) int
- func XEdit_EnableMultiLine(hEle int, bEnable bool) int
- func XEdit_EnablePassword(hEle int, bEnable bool) int
- func XEdit_EnableReadOnly(hEle int, bEnable bool) int
- func XEdit_FreeData(pData *Edit_Data_Copy_) int
- func XEdit_GetAt(hEle int, iRow int, iCol int) int
- func XEdit_GetChatFlags(hEle int, iRow int) xcc.Chat_Flag_
- func XEdit_GetCurCol(hEle int) int
- func XEdit_GetCurPos(hEle int) int
- func XEdit_GetCurPosEx(hEle int, iRow, iCol *int32) int
- func XEdit_GetCurRow(hEle int) int
- func XEdit_GetLength(hEle int) int
- func XEdit_GetLengthRow(hEle int, iRow int) int
- func XEdit_GetPoint(hEle int, iRow int, iCol int, pOut *POINT) int
- func XEdit_GetRowCount(hEle int) int
- func XEdit_GetRowCountEx(hEle int) int32
- func XEdit_GetSelectRange(hEle int, pBegin *Position_, pEnd *Position_) bool
- func XEdit_GetSelectText(hEle int, pOut *string, nOutLen int) int
- func XEdit_GetSelectTextLength(hEle int) int
- func XEdit_GetSelectText_Temp(hEle int) string
- func XEdit_GetStyleInfo(hEle int, iStyle int, info *Edit_Style_Info_) bool
- func XEdit_GetText(hEle int, pOut *string, nOutlen int) int32
- func XEdit_GetTextRow(hEle int, iRow int, pOut *string, nOutlen int) int
- func XEdit_GetTextRow_Temp(hEle int, iRow int) string
- func XEdit_GetText_Temp(hEle int) string
- func XEdit_GetVisibleRowRange(hEle int, piStart *int32, piEnd *int32) int
- func XEdit_InsertChatBegin(hEle int, hImageAvatar int, hImageBubble int, nFlag xcc.Chat_Flag_) int
- func XEdit_InsertObject(hEle int, iRow int, iCol int, hObj int) int
- func XEdit_InsertText(hEle int, iRow int, iCol int, pString string) int
- func XEdit_InsertTextEx(hEle int, iRow int, iCol int, pString string, iStyle int) int
- func XEdit_IsAutoWrap(hEle int) bool
- func XEdit_IsEmpty(hEle int) bool
- func XEdit_IsInSelect(hEle int, iRow int, iCol int) bool
- func XEdit_IsMultiLine(hEle int) bool
- func XEdit_IsPassword(hEle int) bool
- func XEdit_IsReadOnly(hEle int) bool
- func XEdit_ModifyStyle(hEle int, iStyle int, hFont int, color int, bColor bool) bool
- func XEdit_MoveEnd(hEle int) int
- func XEdit_PosToRowCol(hEle int, iPos int, pInfo *Position_) int
- func XEdit_Redo(hEle int) bool
- func XEdit_ReleaseStyle(hEle int, iStyle int) bool
- func XEdit_RowColToPos(hEle int, iRow int, iCol int) int
- func XEdit_SelectAll(hEle int) bool
- func XEdit_SetBackFont(hEle int, hFont int) int
- func XEdit_SetCaretColor(hEle int, color int) int
- func XEdit_SetCaretWidth(hEle int, nWidth int) int
- func XEdit_SetCharSpaceSize(hEle int, size int, sizeZh int) int
- func XEdit_SetChatIndentation(hEle int, nIndentation int) int
- func XEdit_SetChatMaxWidth(hEle int, nWidth int32)
- func XEdit_SetCurPos(hEle int, iRow int) bool
- func XEdit_SetCurPosEx(hEle int, iRow, iCol int32) int
- func XEdit_SetCurStyle(hEle int, iStyle int) int
- func XEdit_SetDefaultText(hEle int, pString string) int
- func XEdit_SetDefaultTextColor(hEle int, color int) int
- func XEdit_SetPasswordCharacter(hEle int, ch int) int
- func XEdit_SetRowHeight(hEle int, nHeight int) int
- func XEdit_SetRowHeightEx(hEle int, iRow int, nHeight int) int
- func XEdit_SetRowSpace(hEle int, nSpace int) int
- func XEdit_SetSelect(hEle int, iStartRow int, iStartCol int, iEndRow int, iEndCol int) bool
- func XEdit_SetSelectBkColor(hEle int, color int) int
- func XEdit_SetSelectTextStyle(hEle int, iStyle int) int
- func XEdit_SetSpaceSize(hEle int, size int) int
- func XEdit_SetTabSpace(hEle int, nSpace int) int
- func XEdit_SetText(hEle int, pString string) int
- func XEdit_SetTextAlign(hEle int, align xcc.Edit_TextAlign_Flag_) int
- func XEdit_SetTextInt(hEle int, nValue int) int
- func XEdit_Undo(hEle int) bool
- func XEditor_AddConst(hEle int, pKey string) int
- func XEditor_AddExcludeDefVarKeyword(hEle int, pKeyword string) int
- func XEditor_AddFunction(hEle int, pKey string) int
- func XEditor_AddKeyword(hEle int, pKey string, iStyle int) int
- func XEditor_ClearBreakpoint(hEle int) int
- func XEditor_Create(x int, y int, cx int, cy int, hParent int) int
- func XEditor_Expand(hEle int, iRow int, bExpand bool) int
- func XEditor_ExpandAll(hEle int, bExpand bool) int
- func XEditor_ExpandEx(hEle int, iRow int) int
- func XEditor_GetBreakpointCount(hEle int) int
- func XEditor_GetBreakpoints(hEle int, aPoints *[]int32, nCount int) int
- func XEditor_GetColor(hEle int, pInfo *Editor_Color_) int
- func XEditor_GetDepth(hEle int, iRow int) int
- func XEditor_GetExpandState(hEle int) string
- func XEditor_GetIndentation(hEle int, iRow int) int
- func XEditor_IsBreakpoint(hEle int, iRow int) bool
- func XEditor_RemoveBreakpoint(hEle int, iRow int) bool
- func XEditor_SetAutoMatchMode(hEle int, mode int) int
- func XEditor_SetBreakpoint(hEle int, iRow int, bActivate bool) bool
- func XEditor_SetColor(hEle int, pInfo *Editor_Color_) int
- func XEditor_SetCurRow(hEle int, iRow int) int
- func XEditor_SetExpandState(hEle int, pString string) int
- func XEditor_SetRunRow(hEle int, iRow int) bool
- func XEditor_SetStyleClass(hEle int, iStyle int) int
- func XEditor_SetStyleComment(hEle int, iStyle int) int
- func XEditor_SetStyleDataType(hEle int, iStyle int) int
- func XEditor_SetStyleFunction(hEle int, iStyle int) int
- func XEditor_SetStyleKeyword(hEle int, iStyle int) int
- func XEditor_SetStyleMacro(hEle int, iStyle int) int
- func XEditor_SetStyleNumber(hEle int, iStyle int) int
- func XEditor_SetStyleString(hEle int, iStyle int) int
- func XEditor_SetStyleVar(hEle int, iStyle int) int
- func XEditor_ToExpandRow(hEle int, iRow int) int
- func XEidtor_EnableAutoMatchSpaseSelect(hEle int, bEnable bool) int
- func XEidtor_IsEmptyRow(hEle int, iRow int) int
- func XEle_AddBkBorder(hEle int, nState xcc.CombinedState, color int, width int) int
- func XEle_AddBkFill(hEle int, nState xcc.CombinedState, color int) int
- func XEle_AddBkImage(hEle int, nState xcc.CombinedState, hImage int) int
- func XEle_AddChild(hEle int, hChild int) bool
- func XEle_AdjustLayout(hEle int, nAdjustNo uint32) int
- func XEle_AdjustLayoutEx(hEle int, nFlags xcc.AdjustLayout_, nAdjustNo uint32) int
- func XEle_ClearBkInfo(hEle int) int
- func XEle_Create(x, y, cx, cy int32, hParent int) int
- func XEle_Destroy(hEle int) int
- func XEle_DrawEle(hEle int, hDraw int) int
- func XEle_DrawFocus(hEle int, hDraw int, pRect *RECT) bool
- func XEle_Enable(hEle int, bEnable bool) int
- func XEle_EnableBkTransparent(hEle int, bEnable bool) int
- func XEle_EnableCanvas(hEle int, bEnable bool) int
- func XEle_EnableDrawBorder(hEle int, bEnable bool) int
- func XEle_EnableDrawFocus(hEle int, bEnable bool) int
- func XEle_EnableEvent_XE_MOUSEWHEEL(hEle int, bEnable bool) int
- func XEle_EnableEvent_XE_PAINT_END(hEle int, bEnable bool) int
- func XEle_EnableFocus(hEle int, bEnable bool) int
- func XEle_EnableKeyTab(hEle int, bEnable bool) int
- func XEle_EnableMouseThrough(hEle int, bEnable bool) int
- func XEle_EnableSwitchFocus(hEle int, bEnable bool) int
- func XEle_EnableTopmost(hEle int, bTopmost bool) bool
- func XEle_EnableTransparentChannel(hEle int, bEnable bool) int
- func XEle_GetAlpha(hEle int) byte
- func XEle_GetBkInfoCount(hEle int) int
- func XEle_GetBkManager(hEle int) int
- func XEle_GetBkManagerEx(hEle int) int
- func XEle_GetBorderSize(hEle int, pBorder *RECT) int
- func XEle_GetChildByID(hEle int, nID int) int
- func XEle_GetChildByIndex(hEle int, index int) int
- func XEle_GetChildCount(hEle int) int
- func XEle_GetClientRect(hEle int, pRect *RECT) int
- func XEle_GetContentSize(hEle int, bHorizon bool, cx int, cy int, pSize *SIZE) int
- func XEle_GetCursor(hEle int) int
- func XEle_GetFocusBorderColor(hEle int) int
- func XEle_GetFont(hEle int) int
- func XEle_GetFontEx(hEle int) int
- func XEle_GetHeight(hEle int) int
- func XEle_GetPadding(hEle int, pPadding *RECT) int
- func XEle_GetPosition(hEle int, pOutX, pOutY *int32) int
- func XEle_GetRect(hEle int, pRect *RECT) int
- func XEle_GetRectLogic(hEle int, pRect *RECT) int
- func XEle_GetSize(hEle int, pOutWidth, pOutHeight *int32) int
- func XEle_GetStateFlags(hEle int) xcc.CombinedState
- func XEle_GetTextColor(hEle int) int
- func XEle_GetTextColorEx(hEle int) int
- func XEle_GetToolTip(hEle int) int
- func XEle_GetUserData(hEle int) int
- func XEle_GetWidth(hEle int) int
- func XEle_GetWndClientRect(hEle int, pRect *RECT) int
- func XEle_GetWndClientRectDPI(hEle int, pRect *RECT) int
- func XEle_GetZOrder(hEle int) int
- func XEle_HitChildEle(hEle int, pPt *POINT) int
- func XEle_InsertChild(hEle int, hChild int, index int) bool
- func XEle_IsBkTransparent(hEle int) bool
- func XEle_IsChildEle(hEle int, hChildEle int) bool
- func XEle_IsDrawFocus(hEle int) bool
- func XEle_IsEnable(hEle int) bool
- func XEle_IsEnableCanvas(hEle int) bool
- func XEle_IsEnableEvent_XE_PAINT_END(hEle int) bool
- func XEle_IsEnableFocus(hEle int) bool
- func XEle_IsEnable_XE_MOUSEWHEEL(hEle int) bool
- func XEle_IsFocus(hEle int) bool
- func XEle_IsFocusEx(hEle int) bool
- func XEle_IsKeyTab(hEle int) bool
- func XEle_IsMouseThrough(hEle int) bool
- func XEle_IsSwitchFocus(hEle int) bool
- func XEle_KillXCTimer(hEle int, nIDEvent int) bool
- func XEle_PointClientToWndClient(hEle int, pPt *POINT) int
- func XEle_PointClientToWndClientDPI(hEle int, pPt *POINT) int
- func XEle_PointWndClientToEleClient(hEle int, pPt *POINT) int
- func XEle_PopupToolTip(hEle int, x int, y int) int
- func XEle_PostEvent(hEle int, nEvent xcc.XE_, wParam, lParam uint) int
- func XEle_RectClientToWndClient(hEle int, pRect *RECT) int
- func XEle_RectClientToWndClientDPI(hEle int, pRect *RECT) int
- func XEle_RectWndClientToEleClient(hEle int, pRect *RECT) int
- func XEle_Redraw(hEle int, bImmediate bool) int
- func XEle_RedrawRect(hEle int, pRect *RECT, bImmediate bool) int
- func XEle_RegEventC(hEle int, nEvent xcc.XE_, pFun interface{}) bool
- func XEle_RegEventC1(hEle int, nEvent xcc.XE_, pFun interface{}) bool
- func XEle_RegEventC1Ex(hEle int, nEvent xcc.XE_, pFun uintptr) bool
- func XEle_RegEventCEx(hEle int, nEvent xcc.XE_, pFun uintptr) bool
- func XEle_Remove(hEle int) int
- func XEle_RemoveEventC(hEle int, nEvent xcc.XE_, pFun interface{}) bool
- func XEle_RemoveEventCEx(hEle int, nEvent xcc.XE_, pFun uintptr) bool
- func XEle_SendEvent(hEle int, nEvent xcc.XE_, wParam, lParam uint) int
- func XEle_SetAlpha(hEle int, alpha uint8) int
- func XEle_SetBkInfo(hEle int, pText string) int
- func XEle_SetBkManager(hEle int, hBkInfoM int) int
- func XEle_SetBorderSize(hEle int, left int, top int, right int, bottom int) int
- func XEle_SetCapture(hEle int, b bool) int
- func XEle_SetCursor(hEle int, hCursor int) int
- func XEle_SetDragBorder(hEle int, nFlags xcc.Element_Position_) int
- func XEle_SetDragBorderBindEle(hEle int, nFlags xcc.Element_Position_, hBindEle int, nSpace int) int
- func XEle_SetFocusBorderColor(hEle int, color int) int
- func XEle_SetFont(hEle int, hFontx int) int
- func XEle_SetHeight(hEle int, nHeight int) int
- func XEle_SetLockScroll(hEle int, bHorizon bool, bVertical bool) int
- func XEle_SetMaxSize(hEle int, nWidth int, nHeight int) int
- func XEle_SetMinSize(hEle int, nWidth int, nHeight int) int
- func XEle_SetPadding(hEle int, left int, top int, right int, bottom int) int
- func XEle_SetPosition(hEle int, x, y int32, bRedraw bool, nFlags xcc.AdjustLayout_, nAdjustNo uint32) int
- func XEle_SetPositionLogic(hEle int, x, y int32, bRedraw bool, nFlags xcc.AdjustLayout_, nAdjustNo uint32) int
- func XEle_SetRect(hEle int, pRect *RECT, bRedraw bool, nFlags xcc.AdjustLayout_, ...) int
- func XEle_SetRectEx(hEle int, x int, y int, cx int, cy int, bRedraw bool, nFlags xcc.AdjustLayout_, ...) int
- func XEle_SetRectLogic(hEle int, pRect *RECT, bRedraw bool, nFlags xcc.AdjustLayout_, ...) int
- func XEle_SetSize(hEle int, nWidth, nHeight int32, bRedraw bool, nFlags xcc.AdjustLayout_, ...) int
- func XEle_SetTextColor(hEle int, color int) int
- func XEle_SetToolTip(hEle int, pText string) int
- func XEle_SetToolTipEx(hEle int, pText string, nTextAlign xcc.TextFormatFlag_) int
- func XEle_SetUserData(hEle int, nData int) int
- func XEle_SetWidth(hEle int, nWidth int) int
- func XEle_SetXCTimer(hEle int, nIDEvent int, uElapse int) bool
- func XEle_SetZOrder(hEle int, index int) bool
- func XEle_SetZOrderEx(hEle int, hDestEle int, nType xcc.Zorder_) bool
- func XExitXCGUI()
- func XFont_AddRef(hFontX int)
- func XFont_Create(size int32) int
- func XFont_CreateEx(pName string, size int32, style xcc.FontStyle_) int
- func XFont_CreateFromFile(pFontFile string, size int32, style xcc.FontStyle_) int
- func XFont_CreateFromFont(pFont uintptr) int
- func XFont_CreateFromHFONT(hFont uintptr) int
- func XFont_CreateFromLOGFONTW(pFontInfo *LOGFONTW) int
- func XFont_CreateFromMem(data []byte, fontSize int32, style xcc.FontStyle_) int
- func XFont_CreateFromRes(id int32, pType string, fontSize int32, style xcc.FontStyle_, hModule uintptr) int
- func XFont_CreateFromZip(pZipFileName, pFileName, pPassword string, fontSize int32, ...) int
- func XFont_CreateFromZipMem(data []byte, pFileName, pPassword string, fontSize int32, style xcc.FontStyle_) int
- func XFont_Destroy(hFontX int)
- func XFont_EnableAutoDestroy(hFontX int, bEnable bool)
- func XFont_GetFont(hFontX int) uintptr
- func XFont_GetFontInfo(hFontX int, pInfo *Font_Info_)
- func XFont_GetLOGFONTW(hFontX int, hdc uintptr, pOut *LOGFONTW) bool
- func XFont_GetRefCount(hFontX int) int32
- func XFont_GetUnderlineEdit(hFontX int) (bUnderline, bStrikeout bool)
- func XFont_Release(hFontX int)
- func XFont_SetUnderlineEdit(hFontX int, bUnderline, bStrikeout bool)
- func XFrameWnd_AddPane(hWindow int, hPaneDest int, hPaneNew int, align xcc.Pane_Align_) bool
- func XFrameWnd_Attach(hWnd uintptr, XCStyle int) int
- func XFrameWnd_Create(x, y, cx, cy int32, pTitle string, hWndParent uintptr, ...) int
- func XFrameWnd_CreateEx(dwExStyle int, dwStyle int, lpClassName string, x, y, cx, cy int32, ...) int
- func XFrameWnd_GetDragFloatWndTopFlag(hWindow int) xcc.FrameWnd_Cell_Type_
- func XFrameWnd_GetLayoutAreaRect(hWindow int, pRect *RECT) int
- func XFrameWnd_GetPaneSplitBarWidth(hWindow int) int32
- func XFrameWnd_GetViewRect(hWindow int, pRect *RECT)
- func XFrameWnd_LoadLayoutFile(hWindow int, aPaneList []int, nPaneCount int32, pFileName string) bool
- func XFrameWnd_MergePane(hWindow int, hPaneDest int, hPaneNew int) bool
- func XFrameWnd_SaveLayoutToFile(hWindow int, pFileName string) bool
- func XFrameWnd_SetLayoutMargin(hWindow int, left, top, right, bottom int32)
- func XFrameWnd_SetPaneSplitBarColor(hWindow int, color int) int
- func XFrameWnd_SetPaneSplitBarWidth(hWindow int, nWidth int32)
- func XFrameWnd_SetTabBarHeight(hWindow int, nHeight int32) int
- func XFrameWnd_SetView(hWindow int, hEle int) int
- func XImage_AddRef(hImage int)
- func XImage_Destroy(hImage int)
- func XImage_EnableAutoDestroy(hImage int, bEnable bool)
- func XImage_EnableCenter(hImage int, bCenter bool)
- func XImage_EnableTranColor(hImage int, bEnable bool)
- func XImage_GetDrawType(hImage int) xcc.Image_Draw_Type_
- func XImage_GetHeight(hImage int) int32
- func XImage_GetImageSrc(hImage int) int
- func XImage_GetRefCount(hImage int) int32
- func XImage_GetSvg(hImage int) int
- func XImage_GetWidth(hImage int) int32
- func XImage_IsAdaptive(hImage int) bool
- func XImage_IsCenter(hImage int) bool
- func XImage_IsStretch(hImage int) bool
- func XImage_IsTile(hImage int) bool
- func XImage_LoadFile(pFileName string) int
- func XImage_LoadFileAdaptive(pFileName string, leftSize, topSize, rightSize, bottomSize int32) int
- func XImage_LoadFileRect(pFileName string, x, y, cx, cy int32) int
- func XImage_LoadFromExtractIcon(pFileName string) int
- func XImage_LoadFromHBITMAP(hBitmap uintptr) int
- func XImage_LoadFromHICON(hIcon uintptr) int
- func XImage_LoadFromImage(pImage uintptr) int
- func XImage_LoadMemory(pBuffer []byte) int
- func XImage_LoadMemoryAdaptive(pBuffer []byte, leftSize, topSize, rightSize, bottomSize int32) int
- func XImage_LoadMemoryRect(pBuffer []byte, x, y, cx, cy int32) int
- func XImage_LoadRes(id int32, pType string, bStretch bool, hModule uintptr) int
- func XImage_LoadResAdaptive(id int32, pType string, leftSize, topSize, rightSize, bottomSize int32, ...) int
- func XImage_LoadSrc(hImageSrc int) int
- func XImage_LoadSvg(hSvg int) int
- func XImage_LoadSvgFile(pFileName string) int
- func XImage_LoadSvgString(pString string) int
- func XImage_LoadSvgStringUtf8(pString string) int
- func XImage_LoadSvgStringW(pString string) int
- func XImage_LoadZip(pZipFileName string, pFileName string, pPassword string) int
- func XImage_LoadZipAdaptive(pZipFileName string, pFileName string, pPassword string, x1, x2, y1, y2 int32) int
- func XImage_LoadZipMem(data []byte, pFileName string, pPassword string) int
- func XImage_LoadZipRect(pZipFileName string, pFileName string, pPassword string, x, y, cx, cy int32) int
- func XImage_LoadZipRes(id int32, pFileName string, pPassword string, hModule uintptr) int
- func XImage_Release(hImage int)
- func XImage_SetDrawType(hImage int, nType xcc.Image_Draw_Type_) bool
- func XImage_SetDrawTypeAdaptive(hImage int, leftSize, topSize, rightSize, bottomSize int32) bool
- func XImage_SetRotateAngle(hImage int, fAngle float32) float32
- func XImage_SetScaleSize(hImage int, width, height int32)
- func XImage_SetSplitEqual(hImage int, nCount int32, iIndex int32)
- func XImage_SetTranColor(hImage int, color int)
- func XImage_SetTranColorEx(hImage int, color int, tranColor byte)
- func XInitXCGUI(bD2D bool) bool
- func XLayoutBox_EnableAutoWrap(hLayoutBox int, bEnable bool) int
- func XLayoutBox_EnableHorizon(hLayoutBox int, bEnable bool) int
- func XLayoutBox_EnableOverflowHide(hLayoutBox int, bEnable bool) int
- func XLayoutBox_SetAlignBaseline(hLayoutBox int, nAlign xcc.Layout_Align_Axis_) int
- func XLayoutBox_SetAlignH(hLayoutBox int, nAlign xcc.Layout_Align_) int
- func XLayoutBox_SetAlignV(hLayoutBox int, nAlign xcc.Layout_Align_) int
- func XLayoutBox_SetSpace(hLayoutBox int, nSpace int) int
- func XLayoutBox_SetSpaceRow(hLayoutBox int, nSpace int) int
- func XLayoutFrame_Create(x int, y int, cx int, cy int, hParent int) int
- func XLayoutFrame_ShowLayoutFrame(hEle int, bEnable bool) int
- func XLayout_Create(x int, y int, cx int, cy int, hParent int) int
- func XLayout_CreateEx(hParent int) int
- func XLayout_EnableLayout(hEle int, bEnable bool) int
- func XLayout_GetHeightIn(hEle int) int
- func XLayout_GetWidthIn(hEle int) int
- func XLayout_IsEnableLayout(hEle int) bool
- func XLayout_ShowLayoutFrame(hEle int, bEnable bool) int
- func XListBox_AddItemImage(hEle int, hImage int) int32
- func XListBox_AddItemImageEx(hEle int, pName string, hImage int) int32
- func XListBox_AddItemText(hEle int, pText string) int32
- func XListBox_AddItemTextEx(hEle int, pName string, pText string) int32
- func XListBox_AddSelectItem(hEle int, iItem int32) bool
- func XListBox_BindAdapter(hEle int, hAdapter int)
- func XListBox_CancelSelectAll(hEle int) bool
- func XListBox_CancelSelectItem(hEle int, iItem int32) bool
- func XListBox_Create(x int, y int, cx int, cy int, hParent int) int
- func XListBox_CreateAdapter(hEle int) int
- func XListBox_CreateEx(x, y, cx, cy int32, hParent, col_extend_count int32) int
- func XListBox_DeleteColumnAll(hEle int)
- func XListBox_DeleteItem(hEle int, iItem int32) bool
- func XListBox_DeleteItemAll(hEle int)
- func XListBox_DeleteItemEx(hEle int, iItem, nCount int32) bool
- func XListBox_EnableFixedRowHeight(hEle int, bEnable bool)
- func XListBox_EnableMultiSel(hEle int, bEnable bool)
- func XListBox_EnableTemplateReuse(hEle int, bEnable bool)
- func XListBox_EnableVirtualTable(hEle int, bEnable bool)
- func XListBox_GetAdapter(hEle int) int
- func XListBox_GetCountColumn_AD(hEle int) int32
- func XListBox_GetCount_AD(hEle int) int32
- func XListBox_GetItemData(hEle int, iItem int32) int
- func XListBox_GetItemFloat(hEle int, iItem, iColumn int32, pOutValue *float32) bool
- func XListBox_GetItemFloatEx(hEle int, iItem int32, pName string, pOutValue *float32) bool
- func XListBox_GetItemHeight(hEle int, iItem int32, pHeight, pSelHeight *int32)
- func XListBox_GetItemHeightDefault(hEle int, pHeight, pSelHeight *int32)
- func XListBox_GetItemImage(hEle int, iItem, iColumn int32) int
- func XListBox_GetItemImageEx(hEle int, iItem int32, pName string) int
- func XListBox_GetItemIndexFromHXCGUI(hEle int, hXCGUI int) int32
- func XListBox_GetItemInfo(hEle int, iItem int32, pItem *ListBox_Item_Info_) bool
- func XListBox_GetItemInt(hEle int, iItem, iColumn int32, pOutValue *int32) bool
- func XListBox_GetItemIntEx(hEle int, iItem int32, pName string, pOutValue *int32) bool
- func XListBox_GetItemMouseStay(hEle int) int32
- func XListBox_GetItemTemplate(hEle int) int
- func XListBox_GetItemText(hEle int, iItem, iColumn int32) string
- func XListBox_GetItemTextEx(hEle int, iItem int32, pName string) string
- func XListBox_GetRowSpace(hEle int) int32
- func XListBox_GetSelectAll(hEle int, pArray *[]int32, nArraySize int32) int32
- func XListBox_GetSelectCount(hEle int) int32
- func XListBox_GetSelectItem(hEle int) int32
- func XListBox_GetTemplateObject(hEle int, iItem, nTempItemID int32) int
- func XListBox_GetVisibleRowRange(hEle int, piStart *int32, piEnd *int32)
- func XListBox_HitTest(hEle int, pPt *POINT) int32
- func XListBox_HitTestOffset(hEle int, pPt *POINT) int32
- func XListBox_InsertItemImage(hEle int, iItem int32, hImage int) int32
- func XListBox_InsertItemImageEx(hEle int, iItem int32, pName string, hImage int) int32
- func XListBox_InsertItemText(hEle int, iItem int32, pValue string) int32
- func XListBox_InsertItemTextEx(hEle int, iItem int32, pName string, pValue string) int32
- func XListBox_RefreshData(hEle int)
- func XListBox_RefreshItem(hEle int, iItem int32)
- func XListBox_SelectAll(hEle int) bool
- func XListBox_SetDragRectColor(hEle int, color int, width int32)
- func XListBox_SetDrawItemBkFlags(hEle int, nFlags xcc.List_DrawItemBk_Flag_)
- func XListBox_SetItemData(hEle int, iItem int32, nUserData int) bool
- func XListBox_SetItemFloat(hEle int, iItem, iColumn int32, fFloat float32) bool
- func XListBox_SetItemFloatEx(hEle int, iItem int32, pName string, fFloat float32) bool
- func XListBox_SetItemHeight(hEle int, iItem, nHeight, nSelHeight int32)
- func XListBox_SetItemHeightDefault(hEle int, nHeight, nSelHeight int32)
- func XListBox_SetItemImage(hEle int, iItem, iColumn int32, hImage int) bool
- func XListBox_SetItemImageEx(hEle int, iItem int32, pName string, hImage int) bool
- func XListBox_SetItemInfo(hEle int, iItem int32, pItem *ListBox_Item_Info_) bool
- func XListBox_SetItemInt(hEle int, iItem, iColumn int32, nValue int32) bool
- func XListBox_SetItemIntEx(hEle int, iItem int32, pName string, nValue int32) bool
- func XListBox_SetItemTemplate(hEle int, hTemp int) bool
- func XListBox_SetItemTemplateXML(hEle int, pXmlFile string) bool
- func XListBox_SetItemTemplateXMLFromMem(hEle int, data []byte) bool
- func XListBox_SetItemTemplateXMLFromString(hEle int, pStringXML string) bool
- func XListBox_SetItemTemplateXMLFromZipRes(hEle int, id int32, pFileName string, pPassword string, hModule uintptr) bool
- func XListBox_SetItemText(hEle int, iItem, iColumn int32, pText string) bool
- func XListBox_SetItemTextEx(hEle int, iItem int32, pName string, pText string) bool
- func XListBox_SetRowSpace(hEle int, nSpace int32)
- func XListBox_SetSelectItem(hEle int, iItem int32) bool
- func XListBox_SetSplitLineColor(hEle int, color int)
- func XListBox_SetVirtualRowCount(hEle int, nRowCount int32)
- func XListBox_Sort(hEle int, iColumnAdapter int32, bAscending bool)
- func XListBox_VisibleItem(hEle int, iItem int32)
- func XListView_AddSelectItem(hEle int, iGroup int, iItem int) bool
- func XListView_BindAdapter(hEle int, hAdapter int) int
- func XListView_CancelSelectAll(hEle int) int
- func XListView_Create(x int, y int, cx int, cy int, hParent int) int
- func XListView_CreateAdapter(hEle int) int
- func XListView_CreateEx(x, y, cx, cy int32, hParent, col_extend_count int32) int
- func XListView_DeleteAll(hEle int) int
- func XListView_DeleteAllGroup(hEle int) int
- func XListView_DeleteAllItem(hEle int) int
- func XListView_DeleteColumnGroup(hEle int, iColumn int) int
- func XListView_DeleteColumnItem(hEle int, iColumn int) int
- func XListView_EnableMultiSel(hEle int, bEnable bool) int
- func XListView_EnableTemplateReuse(hEle int, bEnable bool) int
- func XListView_EnableVirtualTable(hEle int, bEnable bool) int
- func XListView_ExpandGroup(hEle int, iGroup int, bExpand bool) bool
- func XListView_GetAdapter(hEle int) int
- func XListView_GetGroupHeight(hEle int) int
- func XListView_GetGroupUserData(hEle int, iGroup int) int
- func XListView_GetItemIDFromHXCGUI(hEle int, hXCGUI int, piGroup *int32, piItem *int32) bool
- func XListView_GetItemSize(hEle int, pSize *SIZE) int
- func XListView_GetItemTemplate(hEle int) int
- func XListView_GetItemTemplateGroup(hEle int) int
- func XListView_GetItemUserData(hEle int, iGroup int, iItem int) int
- func XListView_GetSelectAll(hEle int, pArray *[]ListView_Item_Id_, nArraySize int) int
- func XListView_GetSelectItem(hEle int, piGroup *int32, piItem *int32) bool
- func XListView_GetSelectItemCount(hEle int) int
- func XListView_GetTemplateObject(hEle int, iGroup int, iItem int, nTempItemID int) int
- func XListView_GetTemplateObjectGroup(hEle int, iGroup int, nTempItemID int) int
- func XListView_GetVisibleItemRange(hEle int, piGroup1 *int32, piGroup2 *int32, piStartGroup *int32, ...) int
- func XListView_Group_AddColumn(hEle int, pName string) int
- func XListView_Group_AddItemImage(hEle int, hImage int, iPos int) int
- func XListView_Group_AddItemImageEx(hEle int, pName string, hImage int, iPos int) int
- func XListView_Group_AddItemText(hEle int, pValue string, iPos int) int
- func XListView_Group_AddItemTextEx(hEle int, pName string, pValue string, iPos int) int
- func XListView_Group_DeleteAllChildItem(hEle int, iGroup int) int
- func XListView_Group_DeleteItem(hEle int, iGroup int) bool
- func XListView_Group_GetCount(hEle int) int
- func XListView_Group_GetImage(hEle int, iGroup int, iColumn int) int
- func XListView_Group_GetImageEx(hEle int, iGroup int, pName string) int
- func XListView_Group_GetText(hEle int, iGroup int, iColumn int) string
- func XListView_Group_GetTextEx(hEle int, iGroup int, pName string) string
- func XListView_Group_SetImage(hEle int, iGroup int, iColumn int, hImage int) bool
- func XListView_Group_SetImageEx(hEle int, iGroup int, pName string, hImage int) bool
- func XListView_Group_SetText(hEle int, iGroup int, iColumn int, pValue string) bool
- func XListView_Group_SetTextEx(hEle int, iGroup int, pName string, pValue string) bool
- func XListView_HitTest(hEle int, pPt *POINT, pOutGroup *int32, pOutItem *int32) bool
- func XListView_HitTestOffset(hEle int, pPt *POINT, pOutGroup *int32, pOutItem *int32) bool
- func XListView_Item_AddColumn(hEle int, pName string) int
- func XListView_Item_AddItemImage(hEle int, iGroup int, hImage int, iPos int) int
- func XListView_Item_AddItemImageEx(hEle int, iGroup int, pName string, hImage int, iPos int) int
- func XListView_Item_AddItemText(hEle int, iGroup int, pValue string, iPos int) int
- func XListView_Item_AddItemTextEx(hEle int, iGroup int, pName string, pValue string, iPos int) int
- func XListView_Item_DeleteItem(hEle int, iGroup int, iItem int) bool
- func XListView_Item_GetCount(hEle int, iGroup int) int
- func XListView_Item_GetImage(hEle int, iGroup int, iItem int, iColumn int) int
- func XListView_Item_GetImageEx(hEle int, iGroup int, iItem int, pName string) int
- func XListView_Item_GetText(hEle int, iGroup int, iItem int, iColumn int) string
- func XListView_Item_GetTextEx(hEle int, iGroup int, iItem int, pName string) string
- func XListView_Item_SetImage(hEle int, iGroup int, iItem int, iColumn int, hImage int) bool
- func XListView_Item_SetImageEx(hEle int, iGroup int, iItem int, pName string, hImage int) bool
- func XListView_Item_SetText(hEle int, iGroup int, iItem int, iColumn int, pValue string) bool
- func XListView_Item_SetTextEx(hEle int, iGroup int, iItem int, pName string, pValue string) bool
- func XListView_RefreshData(hEle int) int
- func XListView_RefreshItem(hEle int, iGroup int, iItem int) int
- func XListView_SetColumnSpace(hEle int, space int) int
- func XListView_SetDragRectColor(hEle int, color int, width int) int
- func XListView_SetDrawItemBkFlags(hEle int, nFlags xcc.List_DrawItemBk_Flag_) int
- func XListView_SetGroupHeight(hEle int, height int) int
- func XListView_SetGroupUserData(hEle int, iGroup int, nData int) int
- func XListView_SetItemSize(hEle int, width int, height int) int
- func XListView_SetItemTemplate(hEle int, hTemp int) bool
- func XListView_SetItemTemplateXML(hEle int, pXmlFile string) bool
- func XListView_SetItemTemplateXMLFromMem(hEle int, data []byte) bool
- func XListView_SetItemTemplateXMLFromString(hEle int, pStringXML string) bool
- func XListView_SetItemTemplateXMLFromZipRes(hEle int, id int32, pFileName string, pPassword string, hModule uintptr) bool
- func XListView_SetItemUserData(hEle int, iGroup int, iItem int, nData int) int
- func XListView_SetRowSpace(hEle int, space int) int
- func XListView_SetSelectAll(hEle int) int
- func XListView_SetSelectItem(hEle int, iGroup int, iItem int) bool
- func XListView_SetVirtualItemCount(hEle int, iGroup int, nCount int) bool
- func XListView_VisibleItem(hEle int, iGroup int, iItem int) int
- func XList_AddColumn(hEle int, width int) int
- func XList_AddColumnImage(hEle int, nWidth int, pName string, hImage int) int
- func XList_AddColumnImage2(hEle int, nWidth int32, hImage int) int32
- func XList_AddColumnText(hEle int, nWidth int, pName string, pText string) int
- func XList_AddColumnText2(hEle int, nWidth int32, pText string) int32
- func XList_AddItemImage(hEle int, hImage int) int
- func XList_AddItemImageEx(hEle int, pName string, hImage int) int
- func XList_AddItemText(hEle int, pText string) int
- func XList_AddItemTextEx(hEle int, pName string, pText string) int
- func XList_AddRowImage(hEle int, hImage int) int
- func XList_AddRowImageEx(hEle int, pName string, hImage int) int
- func XList_AddRowText(hEle int, pText string) int
- func XList_AddRowTextEx(hEle int, pName string, pText string) int
- func XList_AddSelectItem(hEle int, iRow int) bool
- func XList_AddSelectRow(hEle int, iRow int) bool
- func XList_BindAdapter(hEle int, hAdapter int) int
- func XList_BindAdapterHeader(hEle int, hAdapter int) int
- func XList_CancelSelectAll(hEle int) int
- func XList_CancelSelectItem(hEle int, iRow int) bool
- func XList_CancelSelectRow(hEle int, iRow int) bool
- func XList_Create(x int, y int, cx int, cy int, hParent int) int
- func XList_CreateAdapter(hEle int, colExtend_count int) int
- func XList_CreateAdapterHeader(hEle int) int
- func XList_CreateAdapters(hEle int, col_extend_count int32) bool
- func XList_CreateEx(x, y, cx, cy int32, hParent, col_extend_count int32) int
- func XList_DeleteColumn(hEle int, iItem int) bool
- func XList_DeleteColumnAll(hEle int) int
- func XList_DeleteColumnAll_AD(hEle int) int
- func XList_DeleteItem(hEle int, iRow int) bool
- func XList_DeleteItemAll(hEle int) int
- func XList_DeleteItemEx(hEle int, iRow int, nCount int) bool
- func XList_DeleteRow(hEle int, iRow int) bool
- func XList_DeleteRowAll(hEle int) int
- func XList_DeleteRowEx(hEle int, iRow int, nCount int) bool
- func XList_EnableDragChangeColumnWidth(hEle int, bEnable bool) int
- func XList_EnableFixedRowHeight(hEle int, bEnable bool) int
- func XList_EnableItemBkFullRow(hEle int, bFull bool)
- func XList_EnableMultiSel(hEle int, bEnable bool) int
- func XList_EnableRowBkFull(hEle int, bFull bool)
- func XList_EnableTemplateReuse(hEle int, bEnable bool) int
- func XList_EnableVScrollBarTop(hEle int, bTop bool) int
- func XList_EnableVirtualTable(hEle int, bEnable bool) int
- func XList_GetAdapter(hEle int) int
- func XList_GetAdapterHeader(hEle int) int
- func XList_GetColumnCount(hEle int) int
- func XList_GetColumnWidth(hEle int, iColumn int) int
- func XList_GetCountColumn_AD(hEle int) int
- func XList_GetCount_AD(hEle int) int
- func XList_GetHeaderColumnIndexFromHXCGUI(hEle int, hXCGUI int) int
- func XList_GetHeaderHELE(hEle int) int
- func XList_GetHeaderHeight(hEle int) int
- func XList_GetHeaderItemIndexFromHXCGUI(hEle int, hXCGUI int) int
- func XList_GetHeaderTemplateObject(hEle int, iItem int, nTempItemID int) int
- func XList_GetItemData(hEle int, iItem int, iSubItem int) int
- func XList_GetItemFloat(hEle int, iItem int, iColumn int, pOutValue *float32) bool
- func XList_GetItemFloatEx(hEle int, iItem int, pName string, pOutValue *float32) bool
- func XList_GetItemHeight(hEle int, iRow int, pHeight, pSelHeight *int32) int
- func XList_GetItemHeightDefault(hEle int, pHeight *int32, pSelHeight *int32) int
- func XList_GetItemImage(hEle int, iItem int, iColumn int) int
- func XList_GetItemImageEx(hEle int, iItem int, pName string) int
- func XList_GetItemIndexFromHXCGUI(hEle int, hXCGUI int) int
- func XList_GetItemInt(hEle int, iItem int, iColumn int, pOutValue *int32) bool
- func XList_GetItemIntEx(hEle int, iItem int, pName string, pOutValue *int32) bool
- func XList_GetItemTemplate(hEle int) int
- func XList_GetItemTemplateHeader(hEle int) int
- func XList_GetItemText(hEle int, iItem int, iColumn int) string
- func XList_GetItemTextEx(hEle int, iItem int, pName string) string
- func XList_GetRowHeight(hEle int, iRow int, pHeight, pSelHeight *int32) int
- func XList_GetRowHeightDefault(hEle int, pHeight *int32, pSelHeight *int32) int
- func XList_GetRowIndexFromHXCGUI(hEle int, hXCGUI int) int
- func XList_GetRowSpace(hEle int) int
- func XList_GetSelectAll(hEle int, pArray *[]int32, nArraySize int) int
- func XList_GetSelectItem(hEle int) int
- func XList_GetSelectItemCount(hEle int) int
- func XList_GetSelectRow(hEle int) int
- func XList_GetSelectRowCount(hEle int) int
- func XList_GetTemplateObject(hEle int, iItem int, iSubItem int, nTempItemID int) int
- func XList_GetVisibleRowRange(hEle int, piStart *int32, piEnd *int32) int
- func XList_HitTest(hEle int, pPt *POINT, piItem *int32, piSubItem *int32) bool
- func XList_HitTestOffset(hEle int, pPt *POINT, piItem *int32, piSubItem *int32) bool
- func XList_InsertColumn(hEle int, width int, iItem int) int
- func XList_InsertItemImage(hEle int, iItem int, hImage int) int
- func XList_InsertItemImageEx(hEle int, iItem int, pName string, hImage int) int
- func XList_InsertItemText(hEle int, iItem int, pValue string) int
- func XList_InsertItemTextEx(hEle int, iItem int, pName string, pValue string) int
- func XList_InsertRowImage(hEle int, iRow int, hImage int) int
- func XList_InsertRowImageEx(hEle int, iRow int, pName string, hImage int) int
- func XList_InsertRowText(hEle int, iRow int, pValue string) int
- func XList_InsertRowTextEx(hEle int, iRow int, pName string, pValue string) int
- func XList_RefreshData(hEle int) int
- func XList_RefreshDataHeader(hEle int) int
- func XList_RefreshItem(hEle int, iRow int)
- func XList_RefreshRow(hEle int, iRow int)
- func XList_SetColumnMinWidth(hEle int, iItem int, width int) int
- func XList_SetColumnWidth(hEle int, iItem int, width int) int
- func XList_SetColumnWidthFixed(hEle int, iColumn int, bFixed bool) int
- func XList_SetDragRectColor(hEle int, color, width int) int
- func XList_SetDrawItemBkFlags(hEle int, nFlags xcc.List_DrawItemBk_Flag_)
- func XList_SetDrawRowBkFlags(hEle int, nFlags xcc.List_DrawItemBk_Flag_)
- func XList_SetHeaderHeight(hEle int, height int) int
- func XList_SetItemData(hEle int, iItem int, iSubItem int, data int) bool
- func XList_SetItemFloat(hEle int, iItem int, iColumn int, fFloat float32) bool
- func XList_SetItemFloatEx(hEle int, iItem int, pName string, fFloat float32) bool
- func XList_SetItemHeight(hEle int, iRow int, nHeight, nSelHeight int32) int
- func XList_SetItemHeightDefault(hEle int, nHeight int32, nSelHeight int32) int
- func XList_SetItemImage(hEle int, iItem int, iColumn int, hImage int) bool
- func XList_SetItemImageEx(hEle int, iItem int, pName string, hImage int) bool
- func XList_SetItemInt(hEle int, iItem int, iColumn int, nValue int) bool
- func XList_SetItemIntEx(hEle int, iItem int, pName string, nValue int) bool
- func XList_SetItemTemplate(hEle int, hTemp int) bool
- func XList_SetItemTemplateXML(hEle int, pXmlFile string) bool
- func XList_SetItemTemplateXMLFromMem(hEle int, data []byte) bool
- func XList_SetItemTemplateXMLFromString(hEle int, pStringXML string) bool
- func XList_SetItemTemplateXMLFromZipRes(hEle int, id int32, pFileName string, pPassword string, hModule uintptr) bool
- func XList_SetItemText(hEle int, iItem int, iColumn int, pText string) bool
- func XList_SetItemTextEx(hEle int, iItem int, pName string, pText string) bool
- func XList_SetLockColumnLeft(hEle int, iColumn int) int
- func XList_SetLockColumnRight(hEle int, iColumn int) int
- func XList_SetLockRowBottom(hEle int, bLock bool) int
- func XList_SetLockRowBottomOverlap(hEle int, bOverlap bool) int
- func XList_SetRowHeight(hEle int, iRow int, nHeight, nSelHeight int32) int
- func XList_SetRowHeightDefault(hEle int, nHeight int32, nSelHeight int32) int
- func XList_SetRowSpace(hEle int, nSpace int) int
- func XList_SetSelectAll(hEle int) int
- func XList_SetSelectItem(hEle int, iRow int) bool
- func XList_SetSelectRow(hEle int, iRow int) bool
- func XList_SetSort(hEle int, iColumn int, iColumnAdapter int, bEnable bool) int
- func XList_SetSplitLineColor(hEle int, color int) int
- func XList_SetVirtualRowCount(hEle int, nRowCount int) int
- func XList_VisibleItem(hEle int, iRow int) int
- func XList_VisibleRow(hEle int, iRow int) int
- func XMenuBar_AddButton(hEle int, pText string) int32
- func XMenuBar_Create(x, y, cx, cy int32, hParent int) int
- func XMenuBar_DeleteButton(hEle int, nIndex int32) bool
- func XMenuBar_EnableAutoWidth(hEle int, bEnable bool)
- func XMenuBar_GetButton(hEle int, nIndex int32) bool
- func XMenuBar_GetMenu(hEle int, nIndex int32) int
- func XMenuBar_GetSelect(hEle int) int32
- func XMenuBar_SetButtonHeight(hEle int, height int32)
- func XMenu_AddItem(hMenu int, nID int32, pText string, nParentID int32, ...)
- func XMenu_AddItemIcon(hMenu int, nID int32, pText string, nParentID int32, hIcon int, ...)
- func XMenu_CloseMenu(hMenu int)
- func XMenu_Create() int
- func XMenu_DestroyMenu(hMenu int)
- func XMenu_EnableDrawBackground(hMenu int, bEnable bool)
- func XMenu_EnableDrawItem(hMenu int, bEnable bool)
- func XMenu_GetEndChildItem(hMenu int, nID int32) int32
- func XMenu_GetFirstChildItem(hMenu int, nID int32) int32
- func XMenu_GetItemCount(hMenu int) int32
- func XMenu_GetItemHeight(hMenu int) int32
- func XMenu_GetItemText(hMenu int, nID int32) string
- func XMenu_GetItemTextLength(hMenu int, nID int32) int32
- func XMenu_GetLeftSpaceText(hMenu int) int32
- func XMenu_GetLeftWidth(hMenu int) int32
- func XMenu_GetMenuBar(hMenu int) int
- func XMenu_GetNextSiblingItem(hMenu int, nID int32) int32
- func XMenu_GetParentItem(hMenu int, nID int32) int32
- func XMenu_GetPrevSiblingItem(hMenu int, nID int32) int32
- func XMenu_InsertItem(hMenu int, nID int32, pText string, nFlags xcc.Menu_Item_Flag_, insertID int32)
- func XMenu_InsertItemIcon(hMenu int, nID int32, pText string, hIcon int, nFlags xcc.Menu_Item_Flag_, ...)
- func XMenu_IsItemCheck(hMenu int, nID int32) bool
- func XMenu_Popup(hMenu int, hParentWnd uintptr, x, y int32, hParentEle int, ...) bool
- func XMenu_SetAutoDestroy(hMenu int, bAuto bool)
- func XMenu_SetBkImage(hMenu int, hImage int)
- func XMenu_SetBorderColor(hMenu int, crColor int)
- func XMenu_SetBorderSize(hMenu int, nLeft, nTop, nRight, nBottom int32)
- func XMenu_SetItemCheck(hMenu int, nID int32, bCheck bool) bool
- func XMenu_SetItemFlags(hMenu int, nID int32, uFlags xcc.Menu_Item_Flag_) bool
- func XMenu_SetItemHeight(hMenu int, height int32)
- func XMenu_SetItemIcon(hMenu int, nID int32, hIcon int) bool
- func XMenu_SetItemText(hMenu int, nID int32, pText string) bool
- func XMenu_SetItemWidth(hMenu int, nID, nWidth int32) bool
- func XModalWnd_Attach(hWnd uintptr, XCStyle xcc.Window_Style_) int
- func XModalWnd_Create(nWidth, nHeight int32, pTitle string, hWndParent uintptr, ...) int
- func XModalWnd_CreateEx(dwExStyle int, dwStyle int, lpClassName string, x, y, cx, cy int32, ...) int
- func XModalWnd_DoModal(hWindow int) xcc.MessageBox_Flag_
- func XModalWnd_EnableAutoClose(hWindow int, bEnable bool) int
- func XModalWnd_EnableEscClose(hWindow int, bEnable bool) int
- func XModalWnd_EndModal(hWindow int, nResult xcc.MessageBox_Flag_) int
- func XMonthCal_Create(x int, y int, cx int, cy int, hParent int) int
- func XMonthCal_GetButton(hEle int, nType int) int
- func XMonthCal_GetSelDate(hEle int, pnYear *int32, pnMonth *int32, pnDay *int32) int
- func XMonthCal_GetToday(hEle int, pnYear *int32, pnMonth *int32, pnDay *int32) int
- func XMonthCal_SetTextColor(hEle int, nFlag int32, color int) int
- func XMonthCal_SetToday(hEle int, nYear int32, nMonth int32, nDay int32) int
- func XMsg_Create(pTitle, pText string, nFlags xcc.MessageBox_Flag_, hWndParent uintptr, ...) int
- func XMsg_CreateEx(dwExStyle int, dwStyle int, lpClassName, pTitle, pText string, ...) int
- func XNotifyMsg_Popup(position xcc.Position_Flag_, pTitle, pText string, hIcon int, ...) int
- func XNotifyMsg_PopupEx(position xcc.Position_Flag_, pTitle, pText string, hIcon int, ...) int
- func XNotifyMsg_SetBorderSize(hWindow, left, top, right, bottom int) int
- func XNotifyMsg_SetCaptionHeight(hWindow, nHeight int) int
- func XNotifyMsg_SetDuration(hWindow, duration int) int
- func XNotifyMsg_SetParentMargin(hWindow, left, top, right, bottom int) int
- func XNotifyMsg_SetSpace(hWindow, nSpace int) int
- func XNotifyMsg_SetWidth(hWindow, nWidth int) int
- func XNotifyMsg_WindowPopup(hWindow int, position xcc.Position_Flag_, pTitle, pText string, hIcon int, ...) int
- func XNotifyMsg_WindowPopupEx(hWindow int, position xcc.Position_Flag_, pTitle, pText string, hIcon int, ...) int
- func XObj_GetType(hXCGUI int) xcc.XC_OBJECT_TYPE
- func XObj_GetTypeBase(hXCGUI int) xcc.XC_OBJECT_TYPE
- func XObj_GetTypeEx(hXCGUI int) xcc.XC_OBJECT_TYPE_EX
- func XObj_SetTypeEx(hXCGUI int, nType xcc.XC_OBJECT_TYPE_EX) int
- func XPGrid_EnableExpandCurGroupOnly(hEle int, bEnabel bool)
- func XPane_Create(pName string, nWidth int, nHeight int, hFrameWnd int) int
- func XPane_DockPane(hEle int) int
- func XPane_DrawPane(hEle int, hDraw int) int
- func XPane_FloatPane(hEle int) int
- func XPane_GetCaptionHeight(hEle int) int
- func XPane_GetState(hEle int) xcc.Pane_State_
- func XPane_GetTitle(hEle int) string
- func XPane_GetViewRect(hEle int, pRect *RECT) int
- func XPane_HidePane(hEle int, bGroupActivate bool) int
- func XPane_IsGroupActivate(hEle int) bool
- func XPane_IsShowPane(hEle int) bool
- func XPane_LockPane(hEle int) int
- func XPane_SetCaptionHeight(hEle int, nHeight int) int
- func XPane_SetSelect(hEle int) bool
- func XPane_SetSize(hEle int, nWidth int, nHeight int) int
- func XPane_SetTitle(hEle int, pTitle string) int
- func XPane_SetView(hEle int, hView int) int
- func XPane_ShowPane(hEle int, bGroupActivate bool) int
- func XProgBar_Create(x int, y int, cx int, cy int, hParent int) int
- func XProgBar_EnableHorizon(hEle int, bHorizon bool) int
- func XProgBar_EnableShowText(hEle int, bShow bool) bool
- func XProgBar_EnableStretch(hEle int, bStretch bool) bool
- func XProgBar_GetPos(hEle int) int
- func XProgBar_GetRange(hEle int) int
- func XProgBar_SetColorLoad(hEle int, color int) bool
- func XProgBar_SetImageLoad(hEle int, hImage int) int
- func XProgBar_SetPos(hEle int, pos int) int
- func XProgBar_SetRange(hEle int, range_ int) int
- func XRes_EnableDelayLoad(bEnable bool)
- func XRes_GetBkM(pName string) int
- func XRes_GetColor(pName string) int
- func XRes_GetFont(pName string) int
- func XRes_GetIDValue(pName string) int32
- func XRes_GetImage(pName string) int
- func XRes_GetImageEx(pFileName string, pName string) int
- func XRes_SetLoadFileCallback(pFun FunLoadFile)
- func XRunXCGUI()
- func XSBar_Create(x int, y int, cx int, cy int, hParent int) int
- func XSBar_EnableHorizon(hEle int, bHorizon bool) bool
- func XSBar_GetButtonDown(hEle int) int
- func XSBar_GetButtonSlider(hEle int) int
- func XSBar_GetButtonUp(hEle int) int
- func XSBar_GetRange(hEle int) int
- func XSBar_GetSliderMaxLength(hEle int) int
- func XSBar_ScrollBottom(hEle int) bool
- func XSBar_ScrollDown(hEle int) bool
- func XSBar_ScrollPos(hEle int, pos int) bool
- func XSBar_ScrollTop(hEle int) bool
- func XSBar_ScrollUp(hEle int) bool
- func XSBar_SetRange(hEle int, range_ int) int
- func XSBar_SetSliderLength(hEle int, length int) int
- func XSBar_SetSliderMinLength(hEle int, minLength int) int
- func XSBar_SetSliderPadding(hEle int, nPadding int) int
- func XSBar_ShowButton(hEle int, bShow bool) int
- func XSView_Create(x int, y int, cx int, cy int, hParent int) int
- func XSView_EnableAutoShowScrollBar(hEle int, bEnable bool) int
- func XSView_GetLineSize(hEle int, pSize *SIZE) int
- func XSView_GetScrollBarH(hEle int) int
- func XSView_GetScrollBarV(hEle int) int
- func XSView_GetTotalSize(hEle int, pSize *SIZE) int
- func XSView_GetViewHeight(hEle int) int
- func XSView_GetViewPosH(hEle int) int
- func XSView_GetViewPosV(hEle int) int
- func XSView_GetViewRect(hEle int, pRect *RECT) int
- func XSView_GetViewWidth(hEle int) int
- func XSView_ScrollBottom(hEle int) bool
- func XSView_ScrollBottomLine(hEle int) bool
- func XSView_ScrollLeft(hEle int) bool
- func XSView_ScrollLeftLine(hEle int) bool
- func XSView_ScrollPosH(hEle int, pos int) bool
- func XSView_ScrollPosV(hEle int, pos int) bool
- func XSView_ScrollPosXH(hEle int, posX int) bool
- func XSView_ScrollPosYV(hEle int, posY int) bool
- func XSView_ScrollRight(hEle int) bool
- func XSView_ScrollRightLine(hEle int) bool
- func XSView_ScrollTop(hEle int) bool
- func XSView_ScrollTopLine(hEle int) bool
- func XSView_SetLineSize(hEle int, nWidth int, nHeight int) bool
- func XSView_SetScrollBarSize(hEle int, size int) int
- func XSView_SetTotalSize(hEle int, cx int, cy int) bool
- func XSView_ShowSBarH(hEle int, bShow bool) int
- func XSView_ShowSBarV(hEle int, bShow bool) int
- func XShapeEllipse_Create(x int, y int, cx int, cy int, hParent int) int
- func XShapeEllipse_EnableBorder(hShape int, bEnable bool) int
- func XShapeEllipse_EnableFill(hShape int, bEnable bool) int
- func XShapeEllipse_SetBorderColor(hShape int, color int) int
- func XShapeEllipse_SetFillColor(hShape int, color int) int
- func XShapeGif_Create(x int, y int, cx int, cy int, hParent int) int
- func XShapeGif_GetImage(hShape int) int
- func XShapeGif_SetImage(hShape int, hImage int) int
- func XShapeGroupBox_Create(x int, y int, cx int, cy int, pName string, hParent int) int
- func XShapeGroupBox_EnableRoundAngle(hShape int, bEnable bool) int
- func XShapeGroupBox_GetRoundAngle(hShape int, pWidth *int32, pHeight *int32) int
- func XShapeGroupBox_GetTextOffset(hShape int, pOffsetX *int32, pOffsetY *int32) int
- func XShapeGroupBox_SetBorderColor(hShape int, color int) int
- func XShapeGroupBox_SetFontX(hShape int, hFontX int) int
- func XShapeGroupBox_SetRoundAngle(hShape int, nWidth int32, nHeight int32) int
- func XShapeGroupBox_SetText(hShape int, pText string) int
- func XShapeGroupBox_SetTextColor(hShape int, color int) int
- func XShapeGroupBox_SetTextOffset(hShape int, offsetX int32, offsetY int32) int
- func XShapeLine_Create(x1 int, y1 int, x2 int, y2 int, hParent int) int
- func XShapeLine_SetColor(hShape int, color int) int
- func XShapeLine_SetPosition(hShape int, x1 int, y1 int, x2 int, y2 int) int
- func XShapePic_Create(x int, y int, cx int, cy int, hParent int) int
- func XShapePic_GetImage(hShape int) int
- func XShapePic_SetImage(hShape int, hImage int) int
- func XShapeRect_Create(x int, y int, cx int, cy int, hParent int) int
- func XShapeRect_EnableBorder(hShape int, bEnable bool) int
- func XShapeRect_EnableFill(hShape int, bEnable bool) int
- func XShapeRect_EnableRoundAngle(hShape int, bEnable bool) int
- func XShapeRect_GetRoundAngle(hShape int, pWidth *int, pHeight *int32) int
- func XShapeRect_SetBorderColor(hShape int, color int) int
- func XShapeRect_SetFillColor(hShape int, color int) int
- func XShapeRect_SetRoundAngle(hShape int, nWidth int, nHeight int32) int
- func XShapeText_Create(x, y, cx, cy int32, pName string, hParent int) int
- func XShapeText_GetFont(hTextBlock int) int
- func XShapeText_GetText(hTextBlock int) string
- func XShapeText_GetTextColor(hTextBlock int) int
- func XShapeText_GetTextLength(hTextBlock int) int
- func XShapeText_SetFont(hTextBlock int, hFontx int) int
- func XShapeText_SetOffset(hTextBlock int, x int, y int) int
- func XShapeText_SetText(hTextBlock int, pName string) int
- func XShapeText_SetTextAlign(hTextBlock int, align xcc.TextFormatFlag_) int
- func XShapeText_SetTextColor(hTextBlock int, color int) int
- func XShape_AdjustLayout(hShape int) int
- func XShape_Destroy(hShape int) int
- func XShape_GetAlpha(hShape int) int
- func XShape_GetContentSize(hShape int, pSize *SIZE) int
- func XShape_GetHeight(hShape int) int32
- func XShape_GetPosition(hShape int, pOutX, pOutY *int32) int
- func XShape_GetRect(hShape int, pRect *RECT) int
- func XShape_GetRectLogic(hShape int, pRect *RECT) int
- func XShape_GetSize(hShape int, pOutWidth, pOutHeight *int32) int
- func XShape_GetWidth(hShape int) int32
- func XShape_GetWndClientRect(hShape int, pRect *RECT) int
- func XShape_GetZOrder(hShape int) int
- func XShape_Redraw(hShape int) int
- func XShape_RemoveShape(hShape int) int
- func XShape_SetAlpha(hShape int, alpha uint8) int
- func XShape_SetPosition(hShape int, x, y int32) int
- func XShape_SetRect(hShape int, pRect *RECT) int
- func XShape_SetRectLogic(hShape int, pRect *RECT, bRedraw bool) bool
- func XShape_SetSize(hShape int, nWidth, nHeight int32) int
- func XShape_ShowLayout(hShape int, bShow bool) int
- func XSliderBar_Create(x int, y int, cx int, cy int, hParent int) int
- func XSliderBar_EnableHorizon(hEle int, bHorizon bool) int
- func XSliderBar_GetButton(hEle int) int
- func XSliderBar_GetPos(hEle int) int
- func XSliderBar_GetRange(hEle int) int
- func XSliderBar_SetButtonHeight(hEle int, height int) int
- func XSliderBar_SetButtonWidth(hEle int, width int) int
- func XSliderBar_SetImageLoad(hEle int, hImage int) int
- func XSliderBar_SetPos(hEle int, pos int) int
- func XSliderBar_SetRange(hEle int, range_ int) int
- func XSvg_AddRef(hSvg int)
- func XSvg_Destroy(hSvg int)
- func XSvg_EnableAutoDestroy(hSvg int, bEnable bool)
- func XSvg_GetAlpha(hSvg int) byte
- func XSvg_GetHeight(hSvg int) int32
- func XSvg_GetPosition(hSvg int, pX, pY *int32)
- func XSvg_GetPositionF(hSvg int, pX, pY *float32)
- func XSvg_GetRefCount(hSvg int) int32
- func XSvg_GetRotate(hSvg int, pAngle *float32, pX *float32, pY *float32, pbOffset *bool)
- func XSvg_GetRotateAngle(hSvg int) float32
- func XSvg_GetSize(hSvg int, pWidth, pHeight *int32)
- func XSvg_GetUserFillColor(hSvg int, pColor *int) bool
- func XSvg_GetUserStrokeColor(hSvg int, pColor *int, pStrokeWidth *float32) bool
- func XSvg_GetViewBox(hSvg int, pViewBox *RECT)
- func XSvg_GetWidth(hSvg int) int32
- func XSvg_LoadFile(pFileName string) int
- func XSvg_LoadRes(id int32, pType string, hModule uintptr) int
- func XSvg_LoadString(pString string) int
- func XSvg_LoadStringUtf8(pString string) int
- func XSvg_LoadStringW(pString string) int
- func XSvg_LoadZip(pZipFileName, pFileName, pPassword string) int
- func XSvg_LoadZipMem(data []byte, pFileName, pPassword string) int
- func XSvg_LoadZipRes(id int32, pFileName, pPassword string, hModule uintptr) int
- func XSvg_Release(hSvg int)
- func XSvg_SetAlpha(hSvg int, alpha byte)
- func XSvg_SetPosition(hSvg int, x, y int32)
- func XSvg_SetPositionF(hSvg int, x, y float32)
- func XSvg_SetRotate(hSvg int, angle float32, x float32, y float32, bOffset bool)
- func XSvg_SetRotateAngle(hSvg int, angle float32)
- func XSvg_SetSize(hSvg int, nWidth, nHeight int32)
- func XSvg_SetUserFillColor(hSvg int, color int, bEnable bool)
- func XSvg_SetUserStrokeColor(hSvg int, color int, strokeWidth float32, bEnable bool)
- func XSvg_Show(hSvg int, bShow bool)
- func XTabBar_AddLabel(hEle int, pName string) int
- func XTabBar_Create(x int, y int, cx int, cy int, hParent int) int
- func XTabBar_DeleteLabel(hEle int, index int) bool
- func XTabBar_DeleteLabelAll(hEle int) int
- func XTabBar_EnableClose(hEle int, bEnable bool) int
- func XTabBar_EnableDropMenu(hEle int, bEnable bool) int
- func XTabBar_EnableTile(hEle int, bTile bool) int
- func XTabBar_GetButtonDropMenu(hEle int) int
- func XTabBar_GetButtonLeft(hEle int) int
- func XTabBar_GetButtonRight(hEle int) int
- func XTabBar_GetLabel(hEle int, index int) int
- func XTabBar_GetLabelClose(hEle int, index int) int
- func XTabBar_GetLabelCount(hEle int) int
- func XTabBar_GetLabelSpacing(hEle int) int
- func XTabBar_GetSelect(hEle int) int
- func XTabBar_GetindexByEle(hEle int, hLabel int) int
- func XTabBar_InsertLabel(hEle int, index int, pName string) int
- func XTabBar_MoveLabel(hEle int, iSrc int, iDest int) bool
- func XTabBar_SetCloseSize(hEle int, pSize *SIZE) int
- func XTabBar_SetDown(hEle int) int
- func XTabBar_SetLabelSpacing(hEle int, spacing int) int
- func XTabBar_SetLabelWidth(hEle int, index int, nWidth int) int
- func XTabBar_SetPadding(hEle int, left int, top int, right int, bottom int) int
- func XTabBar_SetSelect(hEle int, index int) int
- func XTabBar_SetTurnButtonSize(hEle int, pSize *SIZE) int
- func XTabBar_SetUp(hEle int) int
- func XTabBar_ShowLabel(hEle int, index int, bShow bool) bool
- func XTable_ComboCol(hShape int, iRow int, iCol int, count int) int
- func XTable_ComboRow(hShape int, iRow int, iCol int, count int) int
- func XTable_Create(x int, y int, cx int, cy int, hParent int) int
- func XTable_GetItemRect(hShape int, iRow int, iCol int, pRect *RECT) bool
- func XTable_Reset(hShape int, nRow int, nCol int) int
- func XTable_SetBorderColor(hShape int, color int) int
- func XTable_SetColWidth(hShape int, iCol int, width int) int
- func XTable_SetFont(hShape int, hFont int) int
- func XTable_SetItemBkColor(hShape int, iRow int, iCol int, color int, bColor bool) int
- func XTable_SetItemFlag(hShape int, iRow int, iCol int, flag xcc.Table_Flag_) int
- func XTable_SetItemFont(hShape int, iRow int, iCol int, hFont int) int
- func XTable_SetItemLine(hShape int, iRow1 int, iCol1 int, iRow2 int, iCol2 int, nFlag int, color int) int
- func XTable_SetItemPadding(hShape int, leftSize int, topSize int, rightSize int, bottomSize int) int
- func XTable_SetItemText(hShape int, iRow int, iCol int, pText string) int
- func XTable_SetItemTextAlign(hShape int, iRow int, iCol int, nAlign xcc.TextFormatFlag_) int
- func XTable_SetItemTextColor(hShape int, iRow int, iCol int, color int, bColor bool) int
- func XTable_SetRowHeight(hShape int, iRow int, height int) int
- func XTable_SetTextColor(hShape int, color int) int
- func XTemp_AddNode(pParentNode int, pNode int) bool
- func XTemp_AddNodeRoot(hTemp int, pNode int) bool
- func XTemp_Clone(hTemp int) int
- func XTemp_CloneNode(pNode int) int
- func XTemp_Create(nType xcc.ListItemTemp_Type_) int
- func XTemp_CreateNode(nType xcc.XC_OBJECT_TYPE) int
- func XTemp_Destroy(hTemp int) bool
- func XTemp_GetNode(pNode int, itemID int32) int
- func XTemp_GetType(hTemp int) xcc.ListItemTemp_Type_
- func XTemp_List_DeleteNode(hTemp int, index int32) bool
- func XTemp_List_GetCount(hTemp int) int32
- func XTemp_List_GetNode(hTemp int, index int32) int
- func XTemp_List_InsertNode(hTemp int, index int32, pNode int) bool
- func XTemp_List_MoveColumn(hTemp int, iColSrc, iColDest int32) bool
- func XTemp_Load(nType xcc.ListItemTemp_Type_, pFileName string) int
- func XTemp_LoadEx(nType xcc.ListItemTemp_Type_, pFileName string, pOutTemp1 *int, pOutTemp2 *int) bool
- func XTemp_LoadFromMem(nType xcc.ListItemTemp_Type_, data []byte) int
- func XTemp_LoadFromMemEx(nType xcc.ListItemTemp_Type_, data []byte, pOutTemp1 *int, pOutTemp2 *int) bool
- func XTemp_LoadFromString(nType xcc.ListItemTemp_Type_, pStringXML string) int
- func XTemp_LoadFromStringEx(nType xcc.ListItemTemp_Type_, pStringXML string, pOutTemp1 *int, ...) bool
- func XTemp_LoadZip(nType xcc.ListItemTemp_Type_, pZipFile string, pFileName string, ...) int
- func XTemp_LoadZipEx(nType xcc.ListItemTemp_Type_, pZipFile string, pFileName string, ...) bool
- func XTemp_LoadZipMem(nType xcc.ListItemTemp_Type_, data []byte, pFileName string, pPassword string) int
- func XTemp_LoadZipMemEx(nType xcc.ListItemTemp_Type_, data []byte, pFileName string, pPassword string, ...) bool
- func XTemp_LoadZipRes(nType xcc.ListItemTemp_Type_, id int32, pFileName string, pPassword string, ...) int
- func XTemp_LoadZipResEx(nType xcc.ListItemTemp_Type_, id int32, pFileName string, pPassword string, ...) int
- func XTemp_SetNodeAttribute(pNode int, pName string, pAttr string) bool
- func XTemp_SetNodeAttributeEx(pNode int, itemID int32, pName string, pAttr string) bool
- func XTextLink_Create(x int, y int, cx int, cy int, pName string, hParent int) int
- func XTextLink_EnableUnderlineLeave(hEle int, bEnable bool) int
- func XTextLink_EnableUnderlineStay(hEle int, bEnable bool) int
- func XTextLink_SetTextColorStay(hEle int, color int) int
- func XTextLink_SetUnderlineColorLeave(hEle int, color int) int
- func XTextLink_SetUnderlineColorStay(hEle int, color int) int
- func XToolBar_Create(x, y, cx, cy int32, hParent int) int
- func XToolBar_DeleteAllEle(hEle int) int
- func XToolBar_DeleteEle(hEle int, index int) int
- func XToolBar_EnableButtonMenu(hEle int, bEnable bool) int
- func XToolBar_GetButtonLeft(hEle int) int
- func XToolBar_GetButtonMenu(hEle int) int
- func XToolBar_GetButtonRight(hEle int) int
- func XToolBar_GetEle(hEle int, index int) int
- func XToolBar_InsertEle(hEle int, hNewEle int, index int) int
- func XToolBar_InsertSeparator(hEle int, index int, color int) int
- func XToolBar_SetSpace(hEle int, nSize int) int
- func XTrayIcon_Add(hWindow int, id int32) bool
- func XTrayIcon_Del() bool
- func XTrayIcon_Modify() bool
- func XTrayIcon_Reset()
- func XTrayIcon_SetCallbackMessage(user_message uint32)
- func XTrayIcon_SetFocus() bool
- func XTrayIcon_SetIcon(hIcon uintptr)
- func XTrayIcon_SetPopupBalloon(pTitle, pText string, hBalloonIcon uintptr, flags xcc.TrayIcon_Flag_)
- func XTrayIcon_SetTips(pTips string)
- func XTree_BindAdapter(hEle int, hAdapter int)
- func XTree_Create(x, y, cx, cy int32, hParent int) int
- func XTree_CreateAdapter(hEle int) int
- func XTree_CreateEx(x, y, cx, cy int32, hParent, col_extend_count int32) int
- func XTree_DeleteColumnAll(hEle int)
- func XTree_DeleteItem(hEle int, nID int32) bool
- func XTree_DeleteItemAll(hEle int)
- func XTree_EnableConnectLine(hEle int, bEnable bool, bSolid bool)
- func XTree_EnableDragItem(hEle int, bEnable bool)
- func XTree_EnableExpand(hEle int, bEnable bool)
- func XTree_EnableTemplateReuse(hEle int, bEnable bool)
- func XTree_ExpandAllChildItem(hEle int, nID int32, bExpand bool) bool
- func XTree_ExpandItem(hEle int, nID int32, bExpand bool) bool
- func XTree_GetAdapter(hEle int) int
- func XTree_GetCount(hEle int) int32
- func XTree_GetCountColumn(hEle int) int32
- func XTree_GetEndChildItem(hEle int, nID int32) int32
- func XTree_GetFirstChildItem(hEle int, nID int32) int32
- func XTree_GetIndentation(hEle int) int32
- func XTree_GetItemData(hEle int, nID int32) int
- func XTree_GetItemHeight(hEle int, nID int32, pHeight, pSelHeight *int32)
- func XTree_GetItemHeightDefault(hEle int, pHeight, pSelHeight *int32)
- func XTree_GetItemIDFromHXCGUI(hEle int, hXCGUI int) int32
- func XTree_GetItemImage(hEle int, nID, iColumn int32) int
- func XTree_GetItemImageEx(hEle int, nID int32, pName string) int
- func XTree_GetItemTemplate(hEle int) int
- func XTree_GetItemText(hEle int, nID, iColumn int32) string
- func XTree_GetItemTextEx(hEle int, nID int32, pName string) string
- func XTree_GetNextSiblingItem(hEle int, nID int32) int32
- func XTree_GetParentItem(hEle int, nID int32) int32
- func XTree_GetPrevSiblingItem(hEle int, nID int32) int32
- func XTree_GetRowSpace(hEle int) int32
- func XTree_GetSelectItem(hEle int) int32
- func XTree_GetTemplateObject(hEle int, nID, nTempItemID int32) int
- func XTree_HitTest(hEle int, pPt *POINT) int32
- func XTree_HitTestOffset(hEle int, pPt *POINT) int32
- func XTree_InsertItemImage(hEle int, hImage int, nParentID, insertID int32) int32
- func XTree_InsertItemImageEx(hEle int, pName string, hImage int, nParentID, insertID int32) int32
- func XTree_InsertItemText(hEle int, pValue string, nParentID, insertID int32) int32
- func XTree_InsertItemTextEx(hEle int, pName string, pValue string, nParentID, insertID int32) int32
- func XTree_IsExpand(hEle int, nID int32) bool
- func XTree_MoveItem(hEle int, nMoveItem, nDestItem, nFlag int32) bool
- func XTree_RefreshData(hEle int)
- func XTree_RefreshItem(hEle int, nID int32)
- func XTree_SetConnectLineColor(hEle int, color int)
- func XTree_SetConnectLineLength(hEle int, nLength int32)
- func XTree_SetDragInsertPositionColor(hEle int, color int)
- func XTree_SetDrawItemBkFlags(hEle int, nFlags xcc.List_DrawItemBk_Flag_)
- func XTree_SetExpandButtonSize(hEle int, nWidth, nHeight int32)
- func XTree_SetIndentation(hEle int, nWidth int32)
- func XTree_SetItemData(hEle int, nID int32, nUserData int) bool
- func XTree_SetItemHeight(hEle int, nID, nHeight, nSelHeight int32)
- func XTree_SetItemHeightDefault(hEle int, nHeight, nSelHeight int32)
- func XTree_SetItemImage(hEle int, nID, iColumn int32, hImage int) bool
- func XTree_SetItemImageEx(hEle int, nID int32, pName string, hImage int) bool
- func XTree_SetItemTemplate(hEle int, hTemp int) bool
- func XTree_SetItemTemplateSel(hEle int, hTemp int) bool
- func XTree_SetItemTemplateXML(hEle int, pXmlFile string) bool
- func XTree_SetItemTemplateXMLFromMem(hEle int, data []byte) bool
- func XTree_SetItemTemplateXMLFromString(hEle int, pStringXML string) bool
- func XTree_SetItemTemplateXMLFromZipRes(hEle int, id int32, pFileName string, pPassword string, hModule uintptr) bool
- func XTree_SetItemTemplateXMLSel(hEle int, pXmlFile string) bool
- func XTree_SetItemTemplateXMLSelFromString(hEle int, pStringXML string) bool
- func XTree_SetItemText(hEle int, nID, iColumn int32, pValue string) bool
- func XTree_SetItemTextEx(hEle int, nID int32, pName string, pValue string) bool
- func XTree_SetRowSpace(hEle int, nSpace int32)
- func XTree_SetSelectItem(hEle int, nID int32) bool
- func XTree_SetSplitLineColor(hEle int, color int)
- func XTree_VisibleItem(hEle int, nID int32)
- func XUI_EnableCSS(hXCGUI int, bEnable bool)
- func XUI_EnableCssEx(hXCGUI int, bEnable bool)
- func XUI_GetCssName(hXCGUI int) string
- func XUI_GetStyle(hXCGUI int) xcc.XC_OBJECT_STYLE
- func XUI_SetCssName(hXCGUI int, pName string) int
- func XUI_SetStyle(hXCGUI int, nStyle xcc.XC_OBJECT_STYLE) int
- func XWidget_EnableLayoutControl(hXCGUI int, bEnable bool) int
- func XWidget_GetHWINDOW(hXCGUI int) int
- func XWidget_GetHWND(hXCGUI int) uintptr
- func XWidget_GetID(hXCGUI int) int32
- func XWidget_GetName(hXCGUI int) string
- func XWidget_GetParent(hXCGUI int) int
- func XWidget_GetParentEle(hXCGUI int) int
- func XWidget_GetUID(hXCGUI int) int32
- func XWidget_IsLayoutControl(hXCGUI int) bool
- func XWidget_IsShow(hXCGUI int) bool
- func XWidget_LayoutItem_EnableFloat(hXCGUI int, bFloat bool) int
- func XWidget_LayoutItem_EnableSwap(hXCGUI int, bEnable bool) int
- func XWidget_LayoutItem_EnableWrap(hXCGUI int, bWrap bool) int
- func XWidget_LayoutItem_GetHeight(hXCGUI int, pType *xcc.Layout_Size_, pHeight *int32) int
- func XWidget_LayoutItem_GetMargin(hXCGUI int, pMargin *RECT) int
- func XWidget_LayoutItem_GetWidth(hXCGUI int, pType *xcc.Layout_Size_, pWidth *int32) int
- func XWidget_LayoutItem_SetAlign(hXCGUI int, nAlign xcc.Layout_Align_Axis_) int
- func XWidget_LayoutItem_SetHeight(hXCGUI int, nType xcc.Layout_Size_, nHeight int32) int
- func XWidget_LayoutItem_SetMargin(hXCGUI, left, top, right, bottom int) int
- func XWidget_LayoutItem_SetMinSize(hXCGUI, width, height int) int
- func XWidget_LayoutItem_SetPosition(hXCGUI, left, top, right, bottom int) int
- func XWidget_LayoutItem_SetWidth(hXCGUI int, nType xcc.Layout_Size_, nWidth int32) int
- func XWidget_SetID(hXCGUI int, nID int32) int
- func XWidget_SetName(hXCGUI int, pName string) int
- func XWidget_SetUID(hXCGUI int, nUID int32) int
- func XWidget_Show(hXCGUI int, bShow bool) int
- func XWnd_AddBkBorder(hWindow int, nState xcc.Window_State_Flag_, color int, width int) int
- func XWnd_AddBkFill(hWindow int, nState xcc.Window_State_Flag_, color int) int
- func XWnd_AddBkImage(hWindow int, nState xcc.Window_State_Flag_, hImage int) int
- func XWnd_AddChild(hWindow int, hChild int) bool
- func XWnd_AdjustLayout(hWindow int) int
- func XWnd_AdjustLayoutEx(hWindow int, nFlags xcc.AdjustLayout_) int
- func XWnd_Attach(hWnd uintptr, XCStyle xcc.Window_Style_) int
- func XWnd_Center(hWindow int) int
- func XWnd_CenterEx(hWindow, width, height int) int
- func XWnd_ClearBkInfo(hWindow int) int
- func XWnd_ClientToScreen(hWindow int, pPt *POINT) bool
- func XWnd_CloseWindow(hWindow int) int
- func XWnd_Create(x, y, cx, cy int32, pTitle string, hWndParent uintptr, ...) int
- func XWnd_CreateCaret(hWindow, hEle, x, y, width, height int) int
- func XWnd_CreateEx(dwExStyle int, dwStyle int, lpClassName string, x int, y int, cx int, cy int, ...) int
- func XWnd_DestroyCaret(hWindow int) int
- func XWnd_DrawWindow(hWindow int, hDraw int) int
- func XWnd_EnableAutoFocus(hWindow int, bEnable bool) int
- func XWnd_EnableDragBorder(hWindow int, bEnable bool) int
- func XWnd_EnableDragCaption(hWindow int, bEnable bool) int
- func XWnd_EnableDragFiles(hWindow int, bEnable bool) bool
- func XWnd_EnableDragWindow(hWindow int, bEnable bool) int
- func XWnd_EnableDrawBk(hWindow int, bEnable bool) int
- func XWnd_EnableLayout(hWindow int, bEnable bool) int
- func XWnd_EnableLayoutOverlayBorder(hWindow int, bEnable bool) int
- func XWnd_EnableLimitWindowSize(hWindow int, bEnable bool) int
- func XWnd_EnableMaxWindow(hWindow int, bEnable bool) int
- func XWnd_GetBkInfoCount(hWindow int) int
- func XWnd_GetBkManager(hWindow int) int
- func XWnd_GetBkManagerEx(hWindow int) int
- func XWnd_GetBodyRect(hWindow int, pRect *RECT) int
- func XWnd_GetBorderSize(hWindow int, pBorder *RECT) int
- func XWnd_GetButton(hWindow int, nFlag xcc.Window_Style_) int
- func XWnd_GetCaptureEle(hWindow int) int
- func XWnd_GetCaretHELE(hWindow int) int
- func XWnd_GetCaretInfo(hWindow int, pX, pY, pWidth, pHeight *int32) int
- func XWnd_GetChild(hWindow, nID int) int
- func XWnd_GetChildByID(hWindow, nID int) int
- func XWnd_GetChildByIndex(hWindow, index int) int
- func XWnd_GetChildCount(hWindow int) int
- func XWnd_GetClientRect(hWindow int, pRect *RECT) int
- func XWnd_GetCursor(hWindow int) int
- func XWnd_GetCursorPos(hWindow int, pPt *POINT) bool
- func XWnd_GetDPI(hWindow int) int
- func XWnd_GetDragBorderSize(hWindow int, pBorder *RECT) int
- func XWnd_GetDrawRect(hWindow int, pRcPaint *RECT) int
- func XWnd_GetFocusEle(hWindow int) int
- func XWnd_GetHWND(hWindow int) uintptr
- func XWnd_GetID(hWindow int) int
- func XWnd_GetIcon(hWindow int) int
- func XWnd_GetLayoutRect(hWindow int, pRect *RECT) int
- func XWnd_GetName(hWindow int) string
- func XWnd_GetPadding(hWindow int, pPadding *RECT)
- func XWnd_GetRect(hWindow int, pRect *RECT) int
- func XWnd_GetShadowInfo(hWindow int, pnSize, pnDepth, pnAngeleSize *int32, pbRightAngle *bool, ...) int
- func XWnd_GetStayEle(hWindow int) int
- func XWnd_GetTextColor(hWindow int) int
- func XWnd_GetTextColorEx(hWindow int) int
- func XWnd_GetTitle(hWindow int) string
- func XWnd_GetTitleColor(hWindow int) int
- func XWnd_GetTransparentType(hWindow int) xcc.Window_Transparent_
- func XWnd_HitChildEle(hWindow int, pPt *POINT) int
- func XWnd_InsertChild(hWindow int, hChild int, index int) bool
- func XWnd_IsDragBorder(hWindow int) bool
- func XWnd_IsDragCaption(hWindow int) bool
- func XWnd_IsDragWindow(hWindow int) bool
- func XWnd_IsEnableLayout(hWindow int) bool
- func XWnd_IsMaxWindow(hWindow int) bool
- func XWnd_KillTimer(hWindow, nIDEvent int) int
- func XWnd_KillXCTimer(hWindow, nIDEvent int) int
- func XWnd_MaxWindow(hWindow int, bMaximize bool) int
- func XWnd_PointToDPI(hWindow int, pPt *POINT) int
- func XWnd_RectToDPI(hWindow int, pRect *RECT) int
- func XWnd_Redraw(hWindow int, bImmediate bool) int
- func XWnd_RedrawRect(hWindow int, pRect *RECT, bImmediate bool) int
- func XWnd_RegEventC(hWindow int, nEvent xcc.WM_, pFun interface{}) bool
- func XWnd_RegEventC1(hWindow int, nEvent xcc.WM_, pFun interface{}) bool
- func XWnd_RegEventC1Ex(hWindow int, nEvent xcc.WM_, pFun uintptr) bool
- func XWnd_RegEventCEx(hWindow int, nEvent xcc.WM_, pFun uintptr) bool
- func XWnd_RemoveEventC(hWindow int, nEvent xcc.WM_, pFun interface{}) bool
- func XWnd_RemoveEventCEx(hWindow int, nEvent xcc.WM_, pFun uintptr) bool
- func XWnd_ScreenToClient(hWindow int, pPt *POINT) bool
- func XWnd_SetBkInfo(hWindow int, pText string) int
- func XWnd_SetBkMagager(hWindow, hBkInfoM int) int
- func XWnd_SetBorderSize(hWindow, left, top, right, bottom int) int
- func XWnd_SetCaptionMargin(hWindow int, left int, top int, right int, bottom int) int
- func XWnd_SetCaptureEle(hWindow, hEle int) int
- func XWnd_SetCaretColor(hWindow, color int) int
- func XWnd_SetCaretPos(hWindow, x, y, width, height int, bUpdate bool) int
- func XWnd_SetCursor(hWindow int, hCursor int) int
- func XWnd_SetCursorSys(hWindow, hCursor int) int
- func XWnd_SetDPI(hWindow int, nDPI int)
- func XWnd_SetDragBorderSize(hWindow, left, top, right, bottom int) int
- func XWnd_SetFocusEle(hWindow int, hFocusEle int) bool
- func XWnd_SetFont(hWindow, hFontx int) int
- func XWnd_SetID(hWindow, nID int) int
- func XWnd_SetIcon(hWindow, hImage int) int
- func XWnd_SetMinimumSize(hWindow, width, height int) int
- func XWnd_SetName(hWindow int, pName string) int
- func XWnd_SetPadding(hWindow, left, top, right, bottom int) int
- func XWnd_SetPosition(hWindow int, x, y int32)
- func XWnd_SetRect(hWindow int, pRect *RECT)
- func XWnd_SetShadowInfo(hWindow, nSize int, nDepth byte, nAngeleSize int, bRightAngle bool, color int) int
- func XWnd_SetTextColor(hWindow, color int) int
- func XWnd_SetTimer(hWindow, nIDEvent, uElapse int) int
- func XWnd_SetTitle(hWindow int, pTitle string) int
- func XWnd_SetTitleColor(hWindow, color int) int
- func XWnd_SetTop(hWindow int) int
- func XWnd_SetTransparentAlpha(hWindow int, alpha byte) int
- func XWnd_SetTransparentColor(hWindow, color int) int
- func XWnd_SetTransparentType(hWindow int, nType xcc.Window_Transparent_) int
- func XWnd_SetWindowPos(hWindow int, hWndInsertAfter xcc.HWND_, x, y, cx, cy int32, uFlags xcc.SWP_) int
- func XWnd_SetXCTimer(hWindow, nIDEvent, uElapse int) int
- func XWnd_Show(hWindow int, bShow bool) int
- func XWnd_ShowCaret(hWindow int, bShow bool) int
- func XWnd_ShowLayoutFrame(hWindow int, bEnable bool) int
- func XWnd_ShowWindow(hWindow int, nCmdShow xcc.SW_) int
- type Edit_Data_Copy_
- type Edit_Data_Copy_Style_
- type Edit_Style_Info_
- type Editor_Color_
- type Font_Info_
- type FunAnimation
- type FunAnimationItem
- type FunLoadFile
- type LOGFONTW
- type ListBox_Item_
- type ListBox_Item_Info_
- type ListView_Item_
- type ListView_Item_Id_
- type List_Header_Item_
- type List_Item_
- type Menu_DrawBackground_
- type Menu_DrawItem_
- type Menu_PopupWnd_
- type MonthCal_item_
- type POINT
- type POINTF
- type Position_
- type PropertyGrid_item_
- type RECT
- type RECTF
- type SIZE
- type Tree_Drag_Item_
- type Tree_Item_
- type UiThreader
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ARGB ¶ added in v1.3.390
ARGB 根据r, g, b, a组合成ARGB颜色.
@param r 红色分量. @param g 绿色分量. @param b 蓝色分量. @param a 透明度. @return int ARGB颜色.
func ARGB2 ¶ added in v1.3.390
ARGB2 根据rgb, a组合成十进制ARGB颜色.
@param rgb RGB颜色. @param a 透明度. @return int ARGB颜色.
func ClientToScreen ¶ added in v1.0.1
Deprecated
!这是旧版函数, 请使用 xc.XWnd_ClientToScreen 或 wapi.ClientToScreen
func Font_Info_Name ¶ added in v1.3.310
Font_Info_Name 将[32]uint16转换到string.
@param arr [32]uint16. @return string
func GetXcgui ¶ added in v1.3.380
GetXcgui 获取加载的炫彩dll, 用途是你可以利用这个来封装dll中的函数, 因为我有时候可能更新不及时, 如果你恰巧需要最新版本dll中的函数, 那么你可以自己封装最新版本dll中的函数.
@return *syscall.LazyDLL
func GetXcguiPath ¶ added in v1.3.340
func GetXcguiPath() string
GetXcguiPath 获取设置的xcgui.dll的路径.
@return string
func HexRGB2ARGB ¶ added in v1.3.390
HexRGB2ARGB 将十六进制RGB颜色转换到十进制ARGB颜色.
@param str 十六进制RGB颜色, 开头有没有#都可以. @param a 透明度. @return int ARGB颜色.
func HexRGB2RGB ¶ added in v1.3.380
HexRGB2RGB 将十六进制RGB颜色转换到十进制RGB颜色.
@param str 十六进制RGB颜色, 开头有没有#都可以. @return int RGB颜色.
func LoadXCGUI ¶ added in v1.3.340
LoadXCGUI 将从 xcguiPath 加载xcgui.dll. xcguiPath 的默认值是'xcgui.dll'.
本函数在进程运行期间只需调用一次, 而且也只会被调用一次. 如果你想要更改xcgui.dll的路径, 那么请在调用本函数之前调用 xc.SetXcguiPath(). 注意: app.New() 函数内部会自动调用 xc.LoadXCGUI(). 所以一般是不需要手动调用的, 除非你没有使用 app.New() 函数, 而是使用了 xc.XInitXCGUI(), 那么你需要在 xc.XInitXCGUI() 之前调用 xc.LoadXCGUI().
func PathExists ¶ added in v1.3.352
PathExists 判断文件或文件夹是否存在.
@param path 文件或文件夹. @return error 如果出错, 则不确定是否存在.
func PointInRect ¶ added in v1.3.381
PointInRect 判断一个点是否在矩形范围内.
func RGB2ARGB ¶ added in v1.3.390
RGB2ARGB 将RGB颜色转换到ARGB颜色.
@param rgb RGB颜色. @param a 透明度. @return int ARGB颜色.
func RGBA ¶ added in v1.3.330
RGBA 根据r, g, b, a组合成ARGB颜色. 和 ARGB 函数一模一样, 只是为了符合部分人使用习惯.
@param r 红色分量. @param g 绿色分量. @param b 蓝色分量. @param a 透明度. @return int ARGB颜色.
func RGBA2 ¶ added in v1.3.330
RGBA2 根据rgb, a组合成十进制ARGB颜色. 和 ARGB2 函数一模一样, 只是为了符合部分人使用习惯.
@param rgb RGB颜色. @param a 透明度. @return int ARGB颜色.
func SetBnClicks ¶ added in v1.3.381
SetBnClicks 给一个窗口或布局元素中所有的按钮注册按钮单击事件.
说明: 本函数是通过遍历子元素实现的, 只会给窗口和布局元素中的按钮注册事件, 像List, Tree, 滑块条等元素中的按钮不会注册, 想要更多可以自己实现一个.
@param HXCGUI 炫彩窗口句柄或布局元素句柄. @param onBnClick 按钮单击事件回调函数.
func SetXcguiPath ¶ added in v1.3.340
SetXcguiPath 手动设置xcgui.dll的路径. 未设置时, 默认值为'xcgui.dll'.
@param XcguiPath dll完整路径(目录+文件名), 也可以是相对路径. @return error 如果出错, 要么你输入的文件不存在, 要么你输入的不是dll文件.
func WriteDll ¶ added in v1.3.352
WriteDll 把 xcgui.dll 写出到windows临时目录中版本号文件夹里, 如果检测到dll已存在则不会写出.
使用完本函数后无需再调用 xc.SetXcguiPath(), 内部已自动操作.
func XAdListView_DeleteAll ¶
func XAdListView_DeleteAll(hAdapter int)
数据适配器列表视_删除全部, 删除所有(组,项,列).
hAdapter: 数据适配器句柄.
func XAdListView_DeleteAllGroup ¶
func XAdListView_DeleteAllGroup(hAdapter int)
数据适配器列表视_删除全部组, 删除所有的组.
hAdapter: 数据适配器句柄.
func XAdListView_DeleteAllItem ¶
func XAdListView_DeleteAllItem(hAdapter int)
数据适配器列表视_删除全部项, 删除所有的项.
hAdapter: 数据适配器句柄.
func XAdListView_Group_AddItemImage ¶
数据适配器列表视_添加组图片, 组操作, 添加组, 数据默认填充第一列.
hAdapter: 数据适配器句柄.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func XAdListView_Group_AddItemImageEx ¶
数据适配器列表视_添加组图片扩展, 组操作, 添加组, 数据填充指定列.
hAdapter: 数据适配器句柄.
pName: 字段称.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func XAdListView_Group_AddItemText ¶
数据适配器列表视_添加组文本, 组操作, 添加组, 数据默认填充到第一列, 返回组索引.
hAdapter: 数据适配器句柄.
pValue: 值.
iPos: 插入位置, 可为-1.
func XAdListView_Group_AddItemTextEx ¶
数据适配器列表视_添加组文本扩展, 组操作, 添加组, 数据填充指定列, 返回组索引.
hAdapter: 数据适配器句柄.
pName: 字段称.
pValue: 值.
iPos: 插入位置, 可为-1.
func XAdListView_Group_DeleteAllChildItem ¶
数据适配器列表视_删除全部子项, 删除指定组的所有子项.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
func XAdListView_Group_GetImage ¶ added in v1.3.340
数据适配器列表视_组取图片, 返回图片句柄.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iColumn: 列索引.
func XAdListView_Group_GetImageEx ¶ added in v1.3.340
数据适配器列表视_组取图片扩展, 返回图片句柄.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
pName: 字段名称.
func XAdListView_Group_GetText ¶ added in v1.3.340
数据适配器列表视_组取文本, 返回文本内容.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iColumn: 列索引.
func XAdListView_Group_GetTextEx ¶ added in v1.3.340
数据适配器列表视_组取文本扩展, 返回文本内容.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
pName: 字段名称.
func XAdListView_Group_SetImage ¶
数据适配器列表视_组设置图片, 组操作, 设置指定项数据.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iColumn: 列索引.
hImage: 图片句柄.
func XAdListView_Group_SetImageEx ¶
数据适配器列表视_组设置图片扩展, 组操作, 设置指定项数据.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
pName: 字段名.
hImage: 图片句柄.
func XAdListView_Group_SetText ¶
数据适配器列表视_组设置文本, 组操作, 设置指定项数据.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iColumn: 列索引.
pValue: 值.
func XAdListView_Group_SetTextEx ¶
数据适配器列表视_组设置文本扩展, 组操作, 设置指定项数据.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
pName: 字段名.
pValue: 值.
func XAdListView_Item_AddItemImage ¶
数据适配器列表视_添加项图片, 项操作, 添加项.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func XAdListView_Item_AddItemImageEx ¶
func XAdListView_Item_AddItemImageEx(hAdapter int, iGroup int32, pName string, hImage int, iPos int32) int32
数据适配器列表视_添加项图片扩展, 项操作, 添加项, 填充指定列数据.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
pName: 字段称.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func XAdListView_Item_AddItemText ¶
数据适配器列表视_添加项文本, 项操作, 添加项.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
pValue: 值.
iPos: 插入位置, 可为-1.
func XAdListView_Item_AddItemTextEx ¶
func XAdListView_Item_AddItemTextEx(hAdapter int, iGroup int32, pName string, pValue string, iPos int32) int32
数据适配器列表视_添加项文本扩展, 项操作, 添加项, 数据填充指定列.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
pName: 字段称.
pValue: 值.
iPos: 插入位置, 可为-1.
func XAdListView_Item_GetImage ¶ added in v1.3.340
数据适配器列表视_项取图片. 项操作, 返回项图片句柄.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 字段名称.
func XAdListView_Item_GetImageEx ¶
数据适配器列表视_项获取图片扩展, 项操作, 获取项图片句柄.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
func XAdListView_Item_GetText ¶ added in v1.3.340
数据适配器列表视_项取文本. 项操作, 返回项文本内容.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
func XAdListView_Item_GetTextEx ¶
数据适配器列表视_项获取文本扩展, 项操作, 获取项文本内容.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
func XAdListView_Item_SetImage ¶
数据适配器列表视_项置图片, 项操作, 数据填充指定列.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
hImage: 图片句柄.
func XAdListView_Item_SetImageEx ¶
数据适配器列表视_项置图片扩展, 项操作, 数据填充指定列.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
hImage: 图片句柄.
func XAdListView_Item_SetText ¶
数据适配器列表视_项置文本, 项操作, 数据填充指定列.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
pValue: 值.
func XAdListView_Item_SetTextEx ¶
func XAdListView_Item_SetTextEx(hAdapter int, iGroup, iItem int32, pName string, pValue string) bool
数据适配器列表视_项置文本扩展, 项操作, 数据填充指定列.
hAdapter: 数据适配器句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
pValue: 值.
func XAdTable_AddRowImage ¶ added in v1.3.390
数据适配器表_添加行图片, 添加数据行, 默认值放到第一列, 返回行索引值.
hAdapter: 数据适配器句柄.
hImage: 图片句柄.
func XAdTable_AddRowImageEx ¶ added in v1.3.390
数据适配器表_添加行图片扩展, 添加数据行, 并填充指定列数据.
hAdapter: 数据适配器句柄.
pName: 字段称.
hImage: 图片句柄.
func XAdTable_AddRowText ¶ added in v1.3.390
数据适配器表_添加行文本, 添加数据行, 默认值放到第一列, 返回行索引值.
hAdapter: 数据适配器句柄.
pValue: 值.
func XAdTable_AddRowTextEx ¶ added in v1.3.390
数据适配器表_添加行文本扩展, 添加数据行, 填充指定列数据, 返回行索引.
hAdapter: 数据适配器句柄.
pName: 字段称.
pValue: 值.
func XAdTable_DeleteColumnAll ¶
func XAdTable_DeleteColumnAll(hAdapter int)
数据适配器表_删除列全部, 删除所有列, 并且清空所有数据.
hAdapter: 数据适配器句柄.
func XAdTable_DeleteItemAll ¶
func XAdTable_DeleteItemAll(hAdapter int)
Deprecated
!这是旧版函数, 请使用 XAdTable_DeleteRowAll
func XAdTable_DeleteRowAll ¶ added in v1.3.390
func XAdTable_DeleteRowAll(hAdapter int)
数据适配器表_删除行全部, 删除所有行.
hAdapter: 数据适配器句柄.
func XAdTable_DeleteRowEx ¶ added in v1.3.390
数据适配器表_删除行扩展, 删除多个行.
hAdapter: 数据适配器句柄.
iRow: 行起始索引.
nCount: 删除行数量.
func XAdTable_GetItemDataType ¶
func XAdTable_GetItemDataType(hAdapter int, iItem, iColumn int32) xcc.Adapter_Date_Type_
数据适配器表_取项数据类型, 获取项数据类型, 返回: Adapter_Date_Type_.
hAdapter: 数据适配器句柄.
iItem: 项索引.
iColumn: 列索引.
func XAdTable_GetItemDataTypeEx ¶
func XAdTable_GetItemDataTypeEx(hAdapter int, iItem int32, pName string) xcc.Adapter_Date_Type_
数据适配器表_取项数据类型扩展, 返回: Adapter_Date_Type_.
hAdapter: 数据适配器句柄.
iItem: 项索引.
pName: 字段称.
func XAdTable_GetItemFloat ¶
数据适配器表_取项浮点值, 获取项值.
hAdapter: 数据适配器句柄.
iItem: 项索引.
iColumn: 列索引.
pOutValue: 接收返还值.
func XAdTable_GetItemFloatEx ¶
数据适配器表_取项浮点值扩展, 获取项值.
hAdapter: 数据适配器句柄.
iItem: 项索引.
pName: 字段称.
pOutValue: 接收返还值.
func XAdTable_GetItemInt ¶
数据适配器表_取项整数值, 获取项值.
hAdapter: 数据适配器句柄.
iItem: 项索引.
iColumn: 列索引.
pOutValue: 接收返还值.
func XAdTable_GetItemIntEx ¶
数据适配器表_取项整数值扩展, 获取项值.
hAdapter: 数据适配器句柄.
iItem: 项索引.
pName: 字段称.
pOutValue: 接收返还值.
func XAdTable_InsertRowImage ¶ added in v1.3.390
数据适配器表_插入行图片, 插入数据行, 填充第一列数据, 返回行索引.
hAdapter: 数据适配器句柄.
iRow: 插入位置索引.
hImage: 图片句柄.
func XAdTable_InsertRowImageEx ¶ added in v1.3.390
数据适配器表_插入行图片扩展, 插入数据行, 并填充指定列数据, 返回行索引.
hAdapter: 数据适配器句柄.
iRow: 插入位置索引.
pName: 字段称.
hImage: 图片句柄.
func XAdTable_InsertRowText ¶ added in v1.3.390
数据适配器表_插入行文本, 插入数据行, 填充第一列数据, 返回行索引.
hAdapter: 数据适配器句柄.
iRow: 插入位置索引.
pValue: 值.
func XAdTable_InsertRowTextEx ¶ added in v1.3.390
数据适配器表_插入行文本扩展, 插入数据行, 并填充指定列数据, 返回行索引.
hAdapter: 数据适配器句柄.
iRow: 插入位置索引.
pName: 字段称.
pValue: 值.
func XAdTable_SetItemFloat ¶
数据适配器表_置项浮点值, 设置项数据.
hAdapter: 数据适配器句柄.
iItem: 项索引.
iColumn: 列索引.
fValue: 值.
func XAdTable_SetItemFloatEx ¶
数据适配器表_置项浮点值扩展, 设置项数据.
hAdapter: 数据适配器句柄.
iItem: 项索引.
pName: 字段称.
fValue: 值.
func XAdTable_SetItemImage ¶
数据适配器表_置项图片, 设置项数据.
hAdapter: 数据适配器句柄.
iItem: 项索引.
iColumn: 列索引.
hImage: 图片句柄.
func XAdTable_SetItemImageEx ¶
数据适配器表_置项图片扩展, 设置项数据.
hAdapter: 数据适配器句柄.
iItem: 项索引.
pName: 字段称.
hImage: 图片句柄.
func XAdTable_SetItemInt ¶
数据适配器表_置项整数值, 设置项数据.
hAdapter: 数据适配器句柄.
iItem: 项索引.
iColumn: 列索引.
nValue: 值.
func XAdTable_SetItemIntEx ¶
数据适配器表_置项整数值扩展, 设置项数据.
hAdapter: 数据适配器句柄.
iItem: 项索引.
pName: 字段称.
nValue: 值.
func XAdTable_SetItemText ¶
数据适配器表_置项文本, 设置项数据.
hAdapter: 数据适配器句柄.
iItem: 项索引.
iColumn: 列索引.
pValue: 值.
func XAdTable_SetItemTextEx ¶
数据适配器表_置项文本扩展, 设置项数据.
hAdapter: 数据适配器句柄.
iItem: 项索引.
pName: 字段称.
pValue: 值.
func XAdTable_Sort ¶
数据适配器表_排序, 对内容进行排序.
hAdapter: 数据适配器句柄.
iColumn: 要排序的列索引。.
bAscending: 是否按照升序方式排序.
func XAdTree_DeleteColumnAll ¶
func XAdTree_DeleteColumnAll(hAdapter int)
数据适配器树_删除列全部, 删除所有列, 并且清空数据.
hAdapter: 数据适配器句柄.
func XAdTree_DeleteItemAll ¶
func XAdTree_DeleteItemAll(hAdapter int)
数据适配器树_删除项全部, 删除所有项.
hAdapter: 数据适配器句柄.
func XAdTree_GetItemImageEx ¶
数据适配器树_取项图片扩展, 获取项内容, 返回图片句柄.
hAdapter: 数据适配器句柄.
nID: 项ID.
pName: 字段称.
func XAdTree_InsertItemImage ¶
数据适配器树_插入项图片, 插入项, 数据填充到第一列, 返回项ID值.
hAdapter: 数据适配器句柄.
hImage: 图片句柄.
nParentID: 父ID.
insertID: 插入位置ID.
func XAdTree_InsertItemImageEx ¶
func XAdTree_InsertItemImageEx(hAdapter int, pName string, hImage int, nParentID, insertID int32) int32
数据适配器树_插入项图片扩展, 插入项, 数据填充到指定列, 返回项ID值.
hAdapter: 数据适配器句柄.
pName: 字段称.
hImage: 图片句柄.
nParentID: 父ID.
insertID: 插入位置ID.
func XAdTree_InsertItemText ¶
数据适配器树_插入项文本, 插入项, 数据填充到第一列, 返回项ID值.
hAdapter: 数据适配器句柄.
pValue: 值.
nParentID: 父ID.
insertID: 插入位置ID.
func XAdTree_InsertItemTextEx ¶
func XAdTree_InsertItemTextEx(hAdapter int, pName string, pValue string, nParentID, insertID int32) int32
数据适配器树_插入项文本扩展, 插入项, 数据填充到指定列, 返回项ID值.
hAdapter: 数据适配器句柄.
pName: 字段称.
pValue: 值.
nParentID: 父ID.
insertID: 插入位置ID.
func XAdTree_SetItemImage ¶
数据适配器树_置项图片, 设置项数据.
hAdapter: 数据适配器句柄.
nID: 项ID.
iColumn: 列索引.
hImage: 图片句柄.
func XAdTree_SetItemImageEx ¶
数据适配器树_置项图片扩展, 设置项内容.
hAdapter: 数据适配器句柄.
nID: 项ID.
pName: 字段称.
hImage: 图片句柄.
func XAdTree_SetItemText ¶
数据适配器树_置项文本, 设置项数据.
hAdapter: 数据适配器句柄.
nID: 项ID.
iColumn: 列索引.
pValue: 值.
func XAdTree_SetItemTextEx ¶
数据适配器树_置项文本扩展, 设置项文件内容.
hAdapter: 数据适配器句柄.
nID: 项ID.
pName: 字段称.
pValue: 值.
func XAnimaGroup_Create ¶ added in v1.3.310
动画组_创建, 动画同步组, 当组中动画序列全部完成后, 重新开始.
当遇到无限循环项时, 直至其他序列完成后终止循环, 避免出现无法到达终点, 无法返回头部进行同步, 返回动画组句柄.
nLoopCount: 动画循环次数, 0: 无限循环.
func XAnimaItem_EnableAutoDestroy ¶ added in v1.3.310
动画项_启用自动销毁.
hAnimationItem: 动画项句柄.
bEnable: 是否启用.
func XAnimaItem_EnableCompleteRelease ¶ added in v1.3.310
动画项_启用完成释放, 当动画项完成后自动释放.
例如对多个动画序列进行渐近式延迟, 在动画序列头标添加延时项(时间差), 当延时项完成时自动释放, 后续动画循环就形成一种时间差(因为对齐的时间差销毁了, 他们永远无法对齐时间).
hAnimationItem: 动画项句柄.
bEnable: 是否启用.
func XAnimaItem_SetCallback ¶ added in v1.3.310
func XAnimaItem_SetCallback(hAnimationItem int, callback FunAnimationItem)
动画项_置回调.
hAnimationItem: 动画项句柄.
callback: 回调函数.
func XAnimaItem_SetUserData ¶ added in v1.3.310
func XAnimaItem_SetUserData(hAnimationItem, nUserData int)
动画项_置用户数据.
hAnimationItem: 动画项句柄.
nUserData: 用户数据.
func XAnimaMove_SetFlag ¶ added in v1.3.320
func XAnimaMove_SetFlag(hAnimationMove int, flags xcc.Animation_Move_)
动画移动_置标识, 此接口可独立设置x轴移动或y轴移动.
hAnimationMove: 动画移动项句柄.
flags: 动画移动标识, 可组合使用, Animation_Move_.
TODO: 此函数尚未封装到类中.
func XAnimaRotate_SetCenter ¶ added in v1.3.310
动画旋转_置中心, 设置旋转中心点坐标.
hAnimationRotate: 动画旋转项句柄.
x: 坐标X.
y: 坐标Y.
bOffset: TRUE: 相对于自身中心点偏移, FALSE: 绝对坐标.
func XAnimaScale_SetPosition ¶ added in v1.3.310
func XAnimaScale_SetPosition(hAnimationScale int, position xcc.Position_Flag_)
动画缩放_置延伸位置, 设置缩放起点, 确定延伸方向.
hAnimationScale: 动画缩放项句柄.
position: 位置, Position_Flag_.
func XAnima_Alpha ¶ added in v1.3.310
func XAnima_Alpha(hSequence int, duration uint32, alpha uint8, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_透明度, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
alpha: 透明度.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_AlphaEx ¶ added in v1.3.310
func XAnima_AlphaEx(hSequence int, duration uint32, from_alpha byte, to_alpha byte, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_透明度扩展, 从指定透明度到目标透明度, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
from_alpha: 起始透明度.
to_alpha: 终止透明度.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_Color ¶ added in v1.3.310
func XAnima_Color(hSequence int, duration uint32, color int, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_颜色, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
color: ARGB 颜色.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_ColorEx ¶ added in v1.3.310
func XAnima_ColorEx(hSequence int, duration uint32, from int, to int, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_颜色扩展, 从指定颜色到目标颜色, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
from: 起点颜色, ARGB 颜色.
to: 终点颜色, ARGB 颜色.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_Create ¶ added in v1.3.310
动画_创建动画序列, 按顺序执行的动画列表, 返回动画序列句柄.
hObjectUI: 绑定的UI对象. UI对象句柄: 窗口句柄, 元素句柄, 形状句柄, SVG句柄.
nLoopCount: 动画循环次数, 0: 无限循环.
func XAnima_DelayEx ¶ added in v1.3.320
func XAnima_DelayEx(hSequence int, duration float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_延迟扩展, 可以作为一个空动画, 然后在回调里处理自己的算法, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
nLoopCount: 动画循环次数, 0:无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_DestroyObjectUI ¶ added in v1.3.310
动画_销毁UI对象, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
func XAnima_EnableAutoDestroy ¶ added in v1.3.310
动画_启用自动销毁, TRUE: 当引用计数为0时自动销毁, FALSE: 手动销毁.
hAnimation: 动画项或动画序列或动画组句柄.
bEnable: 是否启用.
func XAnima_GetObjectUI ¶ added in v1.3.310
动画_取UI对象, 获取动画关联的UI对象, 返回UI对象句柄.
hAnimation: 动画序列或动画组句柄.
func XAnima_LayoutHeight ¶ added in v1.3.310
func XAnima_LayoutHeight(hSequence int, duration uint32, nType xcc.Layout_Size_, height float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_布局高度, 修改布局高度属性, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
nType: 布局高度类型: xcc.Layout_Size_.
height: 布局高度.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_LayoutSize ¶ added in v1.3.310
func XAnima_LayoutSize(hSequence int, duration uint32, nWidthType xcc.Layout_Size_, width float32, nHeightType xcc.Layout_Size_, height float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_布局大小, 修改布局宽度和高度, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
nWidthType: 布局宽度类型: xcc.Layout_Size_.
width: 布局宽度.
nHeightType: 布局高度类型: xcc.Layout_Size_.
height: 布局高度.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_LayoutWidth ¶ added in v1.3.310
func XAnima_LayoutWidth(hSequence int, duration uint32, nType xcc.Layout_Size_, width float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_布局宽度, 修改布局宽度属性, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
nType: 布局宽度类型: xcc.Layout_Size_.
width: 布局宽度.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_Move ¶ added in v1.3.310
func XAnima_Move(hSequence int, duration uint32, x float32, y float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_移动, 移动到目标位置, 默认以UI对象中心点为操作方式, 避免出现坐标错位, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
x: 终点位置X(对象左上角坐标).
y: 终点位置Y(对象左上角坐标).
nLoopCount: 动画循环次数, 0:无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_MoveEx ¶ added in v1.3.310
func XAnima_MoveEx(hSequence int, duration uint32, from_x float32, from_y float32, to_x float32, to_y float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_移动扩展, 从指定位置移动到目标位置, 默认以UI对象中心点为操作方式, 避免出现坐标错位, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
from_x: 起点位置X(对象左上角坐标).
from_y: 起点位置Y(对象左上角坐标).
to_x: 终点位置X(对象左上角坐标).
to_y: 终点位置Y(对象左上角坐标).
nLoopCount: 动画循环次数, 0:无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_Release ¶ added in v1.3.310
动画_释放, 停止动画, 并释放引用, 当引用计数为0时自动销毁.
hAnimation: 动画序列或动画组句柄.
bEnd: 是否立即执行到终点.
func XAnima_ReleaseEx ¶ added in v1.3.310
动画_释放扩展, 释放与指定UI对象关联的所有动画, 返回释放动画数量.
hObjectUI: 指定UI对象句柄.
bEnd: 是否立即执行到终点.
func XAnima_Rotate ¶ added in v1.3.310
func XAnima_Rotate(hSequence int, duration uint32, angle float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_旋转, 旋转角度支持负数值, 因为负数可以控制反向旋转, 返回动画旋转项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
angle: 角度.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_RotateEx ¶ added in v1.3.310
func XAnima_RotateEx(hSequence int, duration uint32, from float32, to float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_旋转扩展, 指定起点和终点, 返回动画旋转项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
from: 起点角度.
to: 终点角度.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_Run ¶ added in v1.3.310
动画_运行, 并且增加引用计数.
hAnimation: 动画序列或动画组句柄.
hRedrawObjectUI: 当更新UI时重绘的UI层. UI对象句柄: 窗口句柄, 元素句柄, 形状句柄, SVG句柄.
func XAnima_Scale ¶ added in v1.3.310
func XAnima_Scale(hSequence int, duration uint32, scaleX float32, scaleY float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_缩放, 缩放对象, 默认以自身为中心缩放, 返回动画缩放项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
scaleX: X轴缩放比例.
scaleY: Y轴缩放比例.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_ScaleSize ¶ added in v1.3.310
func XAnima_ScaleSize(hSequence int, duration uint32, width float32, height float32, nLoopCount int32, ease_flag xcc.Ease_Flag_, bGoBack bool) int
动画_缩放大小, 修改UI对象大小, 默认向右延伸, 返回动画缩放项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
width: 宽度.
height: 高度.
nLoopCount: 动画循环次数, 0: 无限循环.
ease_flag: 缓动标识, Ease_Flag_.
bGoBack: 是否返回. 当启用后: 往返到起点, 起点->终点->起点.
func XAnima_SetCallBack ¶ added in v1.3.310
func XAnima_SetCallBack(hAnimationEx int, callback FunAnimation)
动画_置回调.
hAnimationEx: 动画序列或动画组句柄.
callback: 回调函数.
func XAnima_SetUserData ¶ added in v1.3.310
func XAnima_SetUserData(hAnimationEx, nUserData int)
动画_置用户数据.
hAnimationEx: 动画序列或动画组句柄.
nUserData: 用户数据.
func XAnima_Show ¶ added in v1.3.310
动画_显示, 显示或隐藏UI对象, 返回动画项句柄.
hSequence: 动画序列句柄.
duration: 持续时间.
bShow: 显示或隐藏.
func XBkM_AddBorder ¶
func XBkM_AddBorder(hBkInfoM int, nState xcc.CombinedState, color int, width, id int32)
背景_添加边框, 添加背景内容边框.
hBkInfoM: 背景管理器句柄.
nState: 组合状态.
color: ARGB 颜色.
width: 线宽.
id: 背景对象ID, 可忽略(填0).
func XBkM_AddFill ¶
func XBkM_AddFill(hBkInfoM int, nState xcc.CombinedState, color int, id int32)
背景_添加填充, 添加背景内容填充.
hBkInfoM: 背景管理器句柄.
nState: 组合状态.
color: ARGB 颜色.
id: 背景对象ID, 可忽略(填0).
func XBkM_AddImage ¶
func XBkM_AddImage(hBkInfoM int, nState xcc.CombinedState, hImage int, id int32)
背景_添加图片, 添加背景内容图片.
hBkInfoM: 背景管理器句柄.
nState: 组合状态.
hImage: 图片句柄.
id: 背景对象ID, 可忽略(填0).
func XBkM_DrawEx ¶
func XBkM_DrawEx(hBkInfoM int, nState xcc.CombinedState, hDraw int, pRect *RECT, nStateEx xcc.CombinedState) bool
背景_绘制扩展, 绘制背景内容, 设置条件.
hBkInfoM: 背景管理器句柄.
nState: 组合状态.
hDraw: 图形绘制句柄.
pRect: 区域坐标.
nStateEx: 当(nState)中包含(nStateEx)中的一个或多个状态时有效.
注解: 例如用来绘制列表项时, nState中包含项的状态(nStateEx)才会绘制, 避免列表项与元素背景叠加.
func XBkM_GetStateTextColor ¶ added in v1.3.330
func XBkM_GetStateTextColor(hBkInfoM int, nState xcc.CombinedState, color *int) bool
背景_取指定状态文本颜色.
hBkInfoM: 背景管理器句柄.
nState: 组合状态.
color: 接收返回的ARGB 颜色.
func XBkM_SetInfo ¶ added in v1.3.320
背景_取引用计数, 设置背景内容, 返回设置的背景对象数量.
hBkInfoM: 背景管理器句柄.
pText: 背景内容字符串.
func XBkObj_GetAlign ¶ added in v1.3.330
func XBkObj_GetAlign(hObj int) xcc.BkObject_Align_Flag_
背景对象_取对齐, 返回对齐标识: xcc.BkObject_Align_Flag_.
hObj: 背景对象句柄.
func XBkObj_GetTextAlign ¶ added in v1.3.330
func XBkObj_GetTextAlign(hObj int) xcc.TextFormatFlag_
背景对象_取文本对齐, 返回文本对齐方式: xcc.TextFormatFlag_.
hObj: 背景对象句柄.
func XBkObj_SetAlign ¶ added in v1.3.330
func XBkObj_SetAlign(hObj int, nFlags xcc.BkObject_Align_Flag_)
背景对象_置对齐.
hObj: 背景对象句柄.
nFlags: 对齐方式: xcc.BkObject_Align_Flag_.
func XBkObj_SetMargin ¶ added in v1.3.330
背景对象_置外间距, 外间距与对齐标识(BkObject_Align_Flag_)互相依赖.
hObj: 背景对象句柄.
left: 左边间距.
top: 顶部间距.
right: 右边间距.
bottom: 底部间距.
func XBkObj_SetRectRoundAngle ¶ added in v1.3.330
背景对象_置矩形圆角.
hObj: 背景对象句柄.
leftTop: 左上角.
leftBottom: 左下角.
rightTop: 右上角.
rightBottom: 右下角.
func XBkObj_SetTextAlign ¶ added in v1.3.330
func XBkObj_SetTextAlign(hObj int, nAlign xcc.TextFormatFlag_)
背景对象_置文本对齐.
hObj: 背景对象句柄.
nAlign: 文本对齐方式: xcc.TextFormatFlag_, xcc.TextAlignFlag_, xcc.TextTrimming_.
func XBtn_EnableAnimation ¶
按钮_启用动画, 开始或关闭图片动画的播放.
hEle: 元素句柄.
bEnable: 开始播放动画TRUE, 关闭播放动画FALSE.
bLoopPlay: 是否循环播放.
func XBtn_EnableHotkeyPrefix ¶ added in v1.3.390
按钮_启用热键前缀. 对当前文本内容处理, 将&符号后面的一个字符加上下划线.
hEle: 元素句柄.
bEnable: 是否启用.
func XBtn_GetState ¶
func XBtn_GetState(hEle int) xcc.Common_State3_
XBtn_GetState 按钮_取状态.
@param hEle 元素句柄. @return xcc.Common_State3_
func XBtn_GetStateEx ¶
func XBtn_GetStateEx(hEle int) xcc.Button_State_
XBtn_GetStateEx 按钮_取状态扩展.
@param hEle 元素句柄. @return xcc.Button_State_
func XBtn_GetTextAlign ¶
func XBtn_GetTextAlign(hEle int) xcc.TextFormatFlag_
按钮_取文本对齐方式, 返回: TextFormatFlag_ , TextAlignFlag_ , TextTrimming_.
hEle: 元素句柄.
func XBtn_SetIconAlign ¶
func XBtn_SetIconAlign(hEle int, align xcc.Button_Icon_Align_) int
按钮_置图标对齐.
hEle: 元素句柄.
align: 对齐方式, Button_Icon_Align_.
func XBtn_SetState ¶
func XBtn_SetState(hEle int, nState xcc.Common_State3_) int
XBtn_SetState 按钮_置状态.
@param hEle 元素句柄. @param nState 按钮状态: xcc.Common_State3_ @return int
func XBtn_SetTextAlign ¶
func XBtn_SetTextAlign(hEle int, nFlags xcc.TextFormatFlag_) int
按钮_置文本对齐.
hEle: 元素句柄.
nFlags: 对齐方式, TextFormatFlag_ , TextAlignFlag_ , TextTrimming_.
func XBtn_SetTypeEx ¶
func XBtn_SetTypeEx(hEle int, nType xcc.XC_OBJECT_TYPE_EX) int
按钮_置类型扩展, 设置按钮类型并自动修改样式和文本对齐方式.
hEle: 元素句柄.
nType: 按钮类型, Button_Type_ , element_type_ , xc_ex_error.
func XC_AddFileSearchPath ¶
func XC_AddFileSearchPath(pPath string)
炫彩_添加搜索路径, 添加文件搜索路径, 默认路径为exe目录和程序当前运行目录.
pPath: 文件夹.
func XC_AnsiToUnicode ¶ added in v1.3.360
炫彩_A2U, 返回写入接收缓冲区字符数量.
pIn: 指向待转换的Ansi字符串指针.
inLen: pIn字符数量.
pOut: 指向接收转换后的Unicode字符串缓冲区指针.
outLen: pOut缓冲区大小,字符wchar_t单位.
func XC_CallUT ¶ added in v1.3.360
func XC_CallUT(f func())
XC_CallUT 炫彩_调用界面线程, 调用UI线程, 设置回调函数, 在回调函数里操作UI.
@Description: 与 xc.XC_CallUiThread 的区别是: 本函数没有2000个回调上限的限制, 回调函数可以直接使用匿名函数. 回调函数没有参数也没有返回值. @param f 回调函数, 没有参数也没有返回值, 可以直接使用匿名函数.
func XC_CallUiThread ¶
XC_CallUiThread 炫彩_调用界面线程, 调用UI线程, 设置回调函数, 在回调函数里操作UI.
@Description: 回调函数尽量不要使用匿名函数, 使用匿名函数意味着你每次都在创建1个新的回调, 超过2000个时, 程序必将panic. 如果使用 xc.XC_CallUiThreadEx 和 xc.XC_CallUiThreader 则没有此限制. @param pCall 回调函数. @param data 传进回调函数的用户自定义数据. @return int
func XC_CallUiThreadEx ¶ added in v1.3.352
XC_CallUiThreadEx 炫彩_调用界面线程, 调用UI线程, 设置回调函数, 在回调函数里操作UI.
@Description: 与 xc.XC_CallUiThread 的区别是: 本函数没有2000个回调上限的限制, 回调函数可以直接使用匿名函数. @param f 回调函数. @param data 传进回调函数的用户自定义数据. @return int
func XC_CallUiThreader ¶ added in v1.3.352
func XC_CallUiThreader(u UiThreader, data int) int
XC_CallUiThreader 炫彩_调用界面线程, 调用UI线程, 设置回调函数, 在回调函数里操作UI.
@Description: 与 xc.XC_CallUiThread 的区别是: 本函数没有2000个回调上限的限制, 回调函数可以直接使用匿名函数. @param u xc.UiThreader. @param data 传进回调函数的用户自定义数据. @return int
func XC_DebugToFileInfo ¶
func XC_DebugToFileInfo(pInfo string)
XC_DebugToFileInfo 炫彩_输出调试信息到文件, 打印调试信息到文件xcgui_debug.txt.
@param pInfo 文本.
func XC_EnableAutoDPI ¶ added in v1.3.380
func XC_EnableAutoDPI(bEnabel bool)
炫彩_启用自动DPI. 当启用后, 创建窗口时自动检测DPI调整UI缩放, 处理DPI改变消息; 禁用后,当DPI改变,需要手动设置窗口DPI.
bEnabel: 是否启用.
func XC_EnableAutoExitApp ¶
func XC_EnableAutoExitApp(bEnabel bool)
炫彩_启用自动退出程序, 启动或禁用自动退出程序, 当检测到所有用户创建的窗口都关闭时, 自动退出程序; 可调用 XC_PostQuitMessage() 手动退出程序.
bEnabel: 是否启用.
func XC_EnableAutoRedrawUI ¶ added in v1.3.390
func XC_EnableAutoRedrawUI(bEnabel bool)
炫彩_启用自动重绘UI. 当修改UI后将自动调用重绘函数更新UI.
例如改变了按钮标题后, 将自动调用 xc.XEle_Redraw 更新UI, 默认不启用, 手动和自动各有优势.
bEnabel: 是否启用.
func XC_EnableDPI ¶ added in v1.3.381
炫彩_启用DPI.
为go程序启用DPI的几种方式:
- 调用此函数.
- 使用程序清单文件.
- 自行调用Windows DPI命令.
bEnabel: 是否启用.
func XC_EnableErrorMessageBox ¶
func XC_EnableErrorMessageBox(bEnabel bool)
炫彩_启用错误弹窗, 启用错误弹出, 通过该接口可以设置遇到严重错误时不弹出消息提示框.
bEnabel: 是否启用.
func XC_EnableGdiDrawText ¶
func XC_EnableGdiDrawText(bEnable bool)
炫彩_启用GDI绘制文本, 将影响到以下函数: XDraw_TextOut, XDraw_TextOutEx, XDraw_TextOutA.
bEnable: 是否启用.
func XC_GetD2dFactory ¶ added in v1.3.12
func XC_GetD2dFactory() int
XC_GetD2dFactory 炫彩_取D2D工厂, 开启D2D有效, 返回 ID2D1Factory* .
func XC_GetDWriteFactory ¶ added in v1.3.12
func XC_GetDWriteFactory() int
XC_GetDWriteFactory 炫彩_取DWrite工厂, 开启D2D有效, 返回 IDWriteFactory* .
func XC_GetHandleCount ¶ added in v1.3.390
func XC_GetHandleCount() int32
炫彩_取句柄总数. 获取当前所使用的句柄总数量, 返回当前所使用的句柄总数量.
func XC_GetObjectType ¶
func XC_GetObjectType(hXCGUI int) xcc.XC_OBJECT_TYPE
炫彩_取对象类型, 获取句柄类型, 返回: XC_OBJECT_TYPE.
hXCGUI: 炫彩对象句柄.
func XC_GetProcAddress ¶
炫彩_取动态库中函数地址, 系统API GetProcAddress, 返回函数地址.
hModule: 动态库模块句柄.
lpProcName: 函数名.
func XC_GetTextShowRect ¶
func XC_GetTextShowRect(pString string, length int, hFontX int, nTextAlign xcc.TextFormatFlag_, width int, pOutSize *SIZE)
XC_GetTextShowRect 炫彩_取文本显示矩形.
@param pString 字符串. @param length 字符串长度. @param hFontX 字体. @param nTextAlign 文本对齐: xcc.TextFormatFlag_. @param width 最大宽度. @param pOutSize 接收返回大小.
func XC_GetTextShowSizeEx ¶
func XC_GetTextShowSizeEx(pString string, length int, hFontX int, nTextAlign xcc.TextFormatFlag_, pOutSize *SIZE)
炫彩_取文本显示大小扩展.
pString: 字符串.
length: 字符串长度.
hFontX: 字体.
nTextAlign: 文本对齐方式, TextFormatFlag_, TextAlignFlag_, TextTrimming_.
pOutSize: 接收返回大小.
func XC_GetWicFactory ¶ added in v1.3.12
func XC_GetWicFactory() int
XC_GetWicFactory 炫彩_取WIC工厂, 开启D2D有效, 返回 IWICImagingFactory* .
func XC_InitFont ¶
func XC_InitFont(pFont *LOGFONTW, pName string, size int, bBold bool, bItalic bool, bUnderline bool, bStrikeOut bool)
炫彩_初始化字体, 初始化LOGFONTW结构体.
pFont: LOGFONTW结构体指针.
pName: 字体名称.
size: 字体大小.
bBold: 是否为粗体.
bItalic: 是否为斜体.
bUnderline: 是否有下划线.
bStrikeOut: 是否有删除线.
func XC_IsHXCGUI ¶
func XC_IsHXCGUI(hXCGUI int, nType xcc.XC_OBJECT_TYPE) bool
炫彩_判断句柄包含类型, 判断句柄是否拥有该类型.
hXCGUI: 炫彩句柄.
nType: 句柄类型, XC_OBJECT_TYPE, 以XC_开头的常量.
func XC_LoadDll ¶
炫彩_加载DLL, 返回DLL模块句柄. 加载指定DLL, 并且调用DLL中函数LoadDll(), DLL中导出函数格式: int WINAPI LoadDll().
pDllFileName: DLL文件名.
func XC_LoadLayout ¶
炫彩_加载布局文件, 返回窗口句柄或布局句柄或元素句柄.
pFileName: 布局文件名.
hParent: 父对象句柄, 窗口句柄或UI元素句柄.
hAttachWnd: 附加窗口句柄, 附加到指定的窗口, 可填0.
func XC_LoadLayoutEx ¶ added in v1.3.370
func XC_LoadLayoutEx(pFileName, pPrefixName string, hParent int, hParentWnd, hAttachWnd uintptr) int
炫彩_加载布局文件Ex, 返回窗口句柄或布局句柄或元素句柄.
pFileName: 布局文件名.
pPrefixName: 名称(name)前缀, 可选参数; 给当前布局文件中所有name属性增加前缀, 那么name属性值为: 前缀 + name.
hParent: 父对象句柄, 窗口句柄或UI元素句柄.
hParentWnd: 父窗口句柄HWND, 提供给第三方窗口使用.
hAttachWnd: 附加窗口句柄, 附加到指定的窗口, 可填0.
func XC_LoadLayoutFromStringW ¶ added in v1.3.340
炫彩_加载布局文件从字符串W, 加载布局文件从内存字符串, 返回窗口句柄或布局句柄或元素句柄.
pStringXML: 字符串.
hParent: 父对象句柄, 窗口句柄或UI元素句柄.
hAttachWnd: 附加窗口句柄, 附加到指定的窗口, 可填0.
func XC_LoadLayoutFromStringWEx ¶ added in v1.3.370
func XC_LoadLayoutFromStringWEx(pStringXML, pPrefixName string, hParent int, hParentWnd, hAttachWnd uintptr) int
炫彩_加载布局文件从字符串WEx, 加载布局文件从内存字符串, 返回窗口句柄或布局句柄或元素句柄.
pStringXML: 字符串.
pPrefixName: 名称(name)前缀, 可选参数; 给当前布局文件中所有name属性增加前缀, 那么name属性值为: 前缀 + name.
hParent: 父对象句柄, 窗口句柄或UI元素句柄.
hParentWnd: 父窗口句柄HWND, 提供给第三方窗口使用.
hAttachWnd: 附加窗口句柄, 附加到指定的窗口, 可填0.
func XC_LoadLayoutZip ¶
func XC_LoadLayoutZip(pZipFileName string, pFileName string, pPassword string, hParent int, hAttachWnd uintptr) int
炫彩_加载布局文件ZIP, 加载布局文件从zip压缩包中, 返回窗口句柄或布局句柄或元素句柄.
pZipFileName: zip文件名.
pFileName: 布局文件名.
pPassword: zip密码.
hParent: 父对象句柄, 窗口句柄或UI元素句柄.
hAttachWnd: 附加窗口句柄, 附加到指定的窗口, 可填0.
func XC_LoadLayoutZipEx ¶ added in v1.3.370
func XC_LoadLayoutZipEx(pZipFileName string, pFileName string, pPassword, pPrefixName string, hParent int, hParentWnd, hAttachWnd uintptr) int
炫彩_加载布局文件ZIPEx, 加载布局文件从zip压缩包中, 返回窗口句柄或布局句柄或元素句柄.
pZipFileName: zip文件名.
pFileName: 布局文件名.
pPassword: zip密码.
pPrefixName: 名称(name)前缀, 可选参数; 给当前布局文件中所有name属性增加前缀, 那么name属性值为: 前缀 + name.
hParent: 父对象句柄, 窗口句柄或UI元素句柄.
hParentWnd: 父窗口句柄HWND, 提供给第三方窗口使用.
hAttachWnd: 附加窗口句柄, 附加到指定的窗口, 可填0.
func XC_LoadLayoutZipMem ¶
func XC_LoadLayoutZipMem(data []byte, pFileName string, pPassword string, hParent int, hAttachWnd uintptr) int
炫彩_加载布局文件内存ZIP, 加载布局文件从zip压缩包中, 返回窗口句柄或布局句柄或元素句柄.
data: 布局文件数据.
pFileName: 布局文件名.
pPassword: zip密码.
hParent: 父对象句柄, 窗口句柄或UI元素句柄.
hAttachWnd: 附加窗口句柄, 附加到指定的窗口, 可填0.
func XC_LoadLayoutZipMemEx ¶ added in v1.3.370
func XC_LoadLayoutZipMemEx(data []byte, pFileName string, pPassword, pPrefixName string, hParent int, hParentWnd, hAttachWnd uintptr) int
炫彩_加载布局文件内存ZIPEx, 加载布局文件从zip压缩包中, 返回窗口句柄或布局句柄或元素句柄.
data: 布局文件数据.
pFileName: 布局文件名.
pPassword: zip密码.
pPrefixName: 名称(name)前缀, 可选参数; 给当前布局文件中所有name属性增加前缀, 那么name属性值为: 前缀 + name.
hParent: 父对象句柄, 窗口句柄或UI元素句柄.
hParentWnd: 父窗口句柄HWND, 提供给第三方窗口使用.
hAttachWnd: 附加窗口句柄, 附加到指定的窗口, 可填0.
func XC_LoadLayoutZipResEx ¶ added in v1.3.380
func XC_LoadLayoutZipResEx(id int32, pFileName string, pPassword, pPrefixName string, hParent int, hParentWnd, hAttachWnd, hModule uintptr) int
炫彩_加载布局文件资源ZIP扩展. 加载布局文件从RC资源zip压缩包中, 返回窗口句柄或元素句柄.
id: RC资源ID.
pFileName: 布局文件名.
pPassword: zip密码.
pPrefixName: 名称(name)前缀, 可选参数; 给当前布局文件中所有name属性增加前缀, 那么name属性值为: 前缀 + name.
hParent: 父对象句柄, 窗口句柄或UI元素句柄, 可填0.
hParentWnd: 父窗口句柄HWND, 提供给第三方窗口使用, 可填0.
hAttachWnd: 附加窗口句柄, 附加到指定的窗口, 可填0.
hModule: 模块句柄, 可填0.
func XC_LoadResourceFromStringW ¶ added in v1.3.340
炫彩_加载资源文件从字符串W.
pStringXML: 字符串.
pFileName: 资源文件名.
func XC_LoadResourceZip ¶
炫彩_加载资源文件ZIP.
pZipFileName: zip文件名.
pFileName: 资源文件名.
pPassword: zip压缩包密码.
func XC_LoadResourceZipRes ¶ added in v1.3.380
炫彩_加载资源文件资源ZIP. 加载资源文件从RC资源zip压缩包中.
id: RC资源ID.
pFileName: 资源文件名.
pPassword: zip压缩包密码.
hModule: 模块句柄, 可填0.
func XC_LoadStyleZipRes ¶ added in v1.3.380
炫彩_加载样式文件从资源ZIP. 从RC资源中的ZIP包中, 加载样式文件.
id: RC资源ID.
pFileName: 文件名.
pPassword: 密码.
hModule: 模块句柄, 可填0.
func XC_MessageBox ¶
func XC_MessageBox(pTitle, pText string, nFlags xcc.MessageBox_Flag_, hWndParent uintptr, XCStyle xcc.Window_Style_) xcc.MessageBox_Flag_
XC_MessageBox 炫彩_消息框.
@param pTitle 标题. @param pText 内容文本. @param nFlags 标识: xcc.MessageBox_Flag_. @param hWndParent 父窗口句柄(真实的窗口句柄). @param XCStyle xcc.Window_Style_. @return xcc.MessageBox_Flag_ , 返回: xcc.MessageBox_Flag_Ok: 点击确定按钮退出. xcc.MessageBox_Flag_Cancel: 点击取消按钮退出. xcc.MessageBox_Flag_Other: 其他方式退出.
func XC_PostQuitMessage ¶
func XC_PostQuitMessage(nExitCode int)
炫彩_PostQuitMessage, 发送WM_QUIT消息退出消息循环.
nExitCode: 退出码.
func XC_RegisterWindowClassName ¶
炫彩_注册窗口类名, 如果是在DLL中使用, 那么DLL卸载时需要注销窗口类名, 否则DLL卸载后, 类名所指向的窗口过程地址失效.
pClassName: 类名.
func XC_SetActivateTopWindow ¶
func XC_SetActivateTopWindow() bool
XC_SetActivateTopWindow 炫彩_激活窗口, 激活当前进程最上层窗口.
@return bool
func XC_SetD2dTextRenderingMode ¶ added in v1.3.12
func XC_SetD2dTextRenderingMode(mode xcc.XC_DWRITE_RENDERING_MODE_)
炫彩_置D2D文本渲染模式.
mode: 渲染模式, XC_DWRITE_RENDERING_MODE_ .
func XC_SetPaintFrequency ¶
func XC_SetPaintFrequency(nMilliseconds int)
炫彩_置绘制频率, 设置UI的最小重绘频率.
nMilliseconds: 重绘最小时间间隔, 单位毫秒.
func XC_SetTextRenderingHint ¶
func XC_SetTextRenderingHint(nType int)
炫彩_置文本渲染质量, 设置文本渲染质量.
nType: 参见GDI+ TextRenderingHint 定义.
func XC_SetWindowIcon ¶ added in v1.3.380
func XC_SetWindowIcon(hImage int)
炫彩_置窗口图标. 全局窗口图标, 所有未设置图标的窗口, 都将使用此默认图标.
hImage: 图标句柄.
func XC_Sys_ShellExecute ¶
func XC_Sys_ShellExecute(hwnd uintptr, lpOperation string, lpFile string, lpParameters string, lpDirectory string, nShowCmd xcc.SW_) uintptr
对指定文件执行操作. 如果函数成功,则返回大于 32 的值。如果函数失败,则返回指示失败原因的错误值.
hwnd: 用于显示 UI 或错误消息的父窗口的句柄。如果操作与窗口无关,则此值可以为0.
lpOperation: 填“open”则打开lpFlie文档. 其它操作详见: https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutew.
lpFile: 想用关联的程序打印或打开的一个程序名或文件名.
lpParameters: 如果lpFile是一个可执行文件,则这个字串包含了传递给执行程序的参数.
lpDirectory: 想使用的默认路径完整路径.
nShowCmd: 定义了如何显示启动程序的常数值: xcc.SW_.
func XC_UnicodeToAnsi ¶ added in v1.3.360
炫彩_U2A, 返回写入接收缓冲区字节数量.
pIn: 待转换的Unicode字符串.
inLen: pIn字符数量.
pOut: 指向接收转换后的Ansi字符串缓冲区指针.
outLen: pOut缓冲区大小, 字节单位.
func XComboBox_Create ¶
组合框_创建, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄.如果是窗口资源句柄将被添加到窗口.
func XComboBox_EnableDropHeightFixed ¶
组合框_启用下拉列表高度固定大小, 启用/关闭下拉列表高度固定大小.
hEle: 元素句柄.
bEnable: 是否启用.
func XComboBox_GetItemFloatEx ¶
组合框_取项浮点值扩展.
hEle: 元素句柄.
iItem: 项索引.
pName: 字段名.
pOutValue: 接收返回浮点值.
func XComboBox_GetState ¶
func XComboBox_GetState(hEle int) xcc.ComboBox_State_
组合框_取状态, 返回: ComboBox_State_.
hEle: 元素句柄.
func XComboBox_InsertItemImageEx ¶
组合框_插入项图片扩展, 返回项索引.
hEle: 元素句柄.
iItem: 项索引.
pName: 字段名.
hImage: 图片句柄.
func XComboBox_InsertItemTextEx ¶
组合框_插入项文本扩展, 返回项索引.
hEle: 元素句柄.
iItem: 项索引.
pName: 字段名.
pText: 文本.
func XComboBox_SetItemTemplateXMLFromZipRes ¶ added in v1.3.380
func XComboBox_SetItemTemplateXMLFromZipRes(hEle int, id int32, pFileName string, pPassword string, hModule uintptr) bool
组合框_置项模板从资源ZIP.
hEle: 元素句柄.
id: RC资源ID.
pFileName: 文件名.
pPassword: zip密码.
hModule: 模块句柄, 可填0.
func XDateTime_Create ¶
日期_创建, 创建日期时间元素, 返回元素句柄.
x: x坐标.
y: y坐标.
cx: 宽度.
cy: 高度.
hParent: 父为窗口句柄或元素句柄.
func XDateTime_EnableSplitSlash ¶
日期_启用分割栏为斜线, 切换分割栏为: 斜线或横线.
hEle: 元素句柄.
bSlash: TRUE: 斜线, FALSE: 横线.
func XDateTime_GetTime ¶
日期_取当前时间.
hEle: 元素句柄.
pnHour: 时.[OUT].
pnMinute: 分.[OUT].
pnSecond: 秒.[OUT].
func XDateTime_SetSelBkColor ¶
日期_置选择日期背景颜色, 设置被选择文字的背景颜色.
hEle: 元素句柄.
crSelectBk: 文字被选中背景色, ARGB 颜色.
func XDraw_CreateGDI ¶ added in v1.3.12
绘制_创建GDI, 创建图形绘制模块实例, 返回图形绘制模块实例句柄.
hWindow: 窗口句柄.
hdc: hdc句柄.
func XDraw_Dottedline ¶
绘制_虚线, 绘制水平或垂直虚线.
hDraw: 图形绘制句柄.
x1: 起点x坐标.
y1: 起点y坐标.
x2: 结束点x坐标.
y2: 结束点y坐标.
func XDraw_DottedlineF ¶ added in v1.3.12
绘制_虚线F, 绘制水平或垂直虚线.
hDraw: 图形绘制句柄.
x1: 起点x坐标.
y1: 起点y坐标.
x2: 结束点x坐标.
y2: 结束点y坐标.
func XDraw_DrawArc ¶ added in v0.0.5
绘制_圆弧.
hDraw: 图形绘制句柄.
x: 坐标.
y: 坐标.
nWidth: 宽度.
nHeight: 高度.
startAngle: 起始角度.
sweepAngle: 绘制角度, 从起始角度开始计算.
func XDraw_DrawArcF ¶ added in v1.3.12
绘制_圆弧F.
hDraw: 图形绘制句柄.
x: 坐标.
y: 坐标.
nWidth: 宽度.
nHeight: 高度.
startAngle: 起始角度.
sweepAngle: 绘制角度, 从起始角度开始计算.
func XDraw_DrawCurve ¶
绘制_曲线, D2D暂时留空.
hDraw: 图形绘制句柄.
points: 坐标点数组.
count: 数组大小.
tension: 大于或等于0.0F的值,指定曲线的张力, D2D 忽略此参数.
func XDraw_DrawCurveF ¶ added in v1.3.12
绘制_曲线F, D2D暂时留空.
hDraw: 图形绘制句柄.
points: 坐标点数组.
count: 数组大小.
tension: 大于或等于0.0F的值,指定曲线的张力, D2D 忽略此参数.
func XDraw_DrawRoundRect ¶
绘制_圆角矩形, 绘制圆角矩形边框.
hDraw: 图形绘制句柄.
pRect: 矩形坐标.
nWidth: 圆角宽度.
nHeight: 圆角高度.
func XDraw_DrawRoundRectEx ¶
func XDraw_DrawRoundRectEx(hDraw int, pRect *RECT, nLeftTop, nRightTop, nRightBottom, nLeftBottom int32)
绘制_圆角矩形扩展, 绘制圆角矩形边框.
hDraw: 图形绘制句柄.
pRect: 坐标.
nLeftTop: 圆角大小.
nRightTop: 圆角大小.
nRightBottom: 圆角大小.
nLeftBottom: 圆角大小.
func XDraw_DrawRoundRectExF ¶ added in v1.3.12
func XDraw_DrawRoundRectExF(hDraw int, pRect *RECT, nLeftTop, nRightTop, nRightBottom, nLeftBottom float32)
绘制_圆角矩形扩展F, 绘制圆角矩形边框.
hDraw: 图形绘制句柄.
pRect: 坐标.
nLeftTop: 圆角大小.
nRightTop: 圆角大小.
nRightBottom: 圆角大小.
nLeftBottom: 圆角大小.
func XDraw_DrawRoundRectF ¶ added in v1.3.12
绘制_圆角矩形F, 绘制圆角矩形边框.
hDraw: 图形绘制句柄.
pRect: 矩形坐标.
nWidth: 圆角宽度.
nHeight: 圆角高度.
func XDraw_DrawSvgEx ¶ added in v1.3.310
绘制_SVG扩展.
hDraw: 图形绘制句柄.
hSvg: SVG句柄.
x: x坐标.
y: y坐标.
nWidth: 宽度.
nHeight: 高度.
func XDraw_DrawSvgSize ¶ added in v1.3.310
绘制_SVG大小.
hDraw: 图形绘制句柄.
hSvg: SVG句柄.
nWidth: 宽度.
nHeight: 高度.
func XDraw_DrawTextF ¶ added in v1.3.12
绘制_文本指定矩形F, DrawText() 参见MSDN.
hDraw: 图形绘制句柄.
lpString: 字符串.
lpRect: 坐标.
func XDraw_DrawTextUnderline ¶
绘制_文本下划线.
hDraw: 图形绘制句柄.
lpString: 字符串.
lpRect: 坐标.
colorLine: 下划线颜色, ARGB 颜色.
func XDraw_DrawTextUnderlineF ¶ added in v1.3.12
绘制_文本下划线F.
hDraw: 图形绘制句柄.
lpString: 字符串.
lpRect: 坐标.
colorLine: 下划线颜色, ARGB 颜色.
func XDraw_EnableWndTransparent ¶
绘制_启用窗口透明判断, 当启用之后, 调用GDI+函数时, 如果参数alpha=255, 将自动修改为254, 应对GDI+的bug, 否则透明通道异常.
hDraw: 图形绘制句柄.
bTransparent: 是否启用.
func XDraw_FillRect ¶
绘制_填充矩形, 通过使用指定的刷子填充一个矩形, 此功能包括左侧和顶部的边界, 但不包括矩形的右边和底部边界.
hDraw: 图形绘制句柄.
pRect: 矩形区域.
func XDraw_FillRectColorF ¶ added in v1.3.12
绘制_填充矩形指定颜色F.
hDraw: 图形绘制句柄.
pRect: 矩形区域.
color: ARGB 颜色.
func XDraw_FillRectF ¶ added in v1.3.12
绘制_填充矩形F, 通过使用指定的刷子填充一个矩形, 此功能包括左侧和顶部的边界, 但不包括矩形的右边和底部边界.
hDraw: 图形绘制句柄.
pRect: 矩形区域.
func XDraw_FillRoundRectEx ¶
func XDraw_FillRoundRectEx(hDraw int, pRect *RECT, nLeftTop, nRightTop, nRightBottom, nLeftBottom int32)
绘制_填充圆角矩形扩展.
hDraw: 图形绘制句柄.
pRect: 坐标.
nLeftTop: 圆角大小.
nRightTop: 圆角大小.
nRightBottom: 圆角大小.
nLeftBottom: 圆角大小.
func XDraw_FillRoundRectExF ¶ added in v1.3.12
func XDraw_FillRoundRectExF(hDraw int, pRect *RECTF, nLeftTop, nRightTop, nRightBottom, nLeftBottom float32)
绘制_填充圆角矩形扩展F.
hDraw: 图形绘制句柄.
pRect: 坐标.
nLeftTop: 圆角大小.
nRightTop: 圆角大小.
nRightBottom: 圆角大小.
nLeftBottom: 圆角大小.
func XDraw_FillRoundRectF ¶ added in v1.3.12
绘制_填充圆角矩形F.
hDraw: 图形绘制句柄.
pRect: 矩形坐标.
nWidth: 圆角宽度.
nHeight: 圆角高度.
func XDraw_GDI_AlphaBlend ¶ added in v1.3.12
func XDraw_GDI_AlphaBlend(hDraw int, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest int32, hdcSrc uintptr, nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc, alpha int32) bool
绘制_带透明复制, AlphaBlend() 参见MSDN.
hDraw: XX.
nXOriginDest: XX.
nYOriginDest: XX.
nWidthDest: XX.
nHeightDest: XX.
hdcSrc: XX.
nXOriginSrc: XX.
nYOriginSrc: XX.
nWidthSrc: XX.
nHeightSrc: XX.
alpha: XX.
func XDraw_GDI_BitBlt ¶ added in v1.3.12
func XDraw_GDI_BitBlt(hDrawDest int, nXDest, nYDest, nWidth, nHeight int32, hdcSrc uintptr, nXSrc, nYSrc int32, dwRop uint32) bool
绘制_复制, BitBlt() 参见MSDN.
hDrawDest: XX.
nXDest: XX.
nYDest: XX.
nWidth: XX.
nHeight: XX.
hdcSrc: XX.
nXSrc: XX.
nYSrc: XX.
dwRop: XX.
func XDraw_GDI_BitBlt2 ¶ added in v1.3.12
func XDraw_GDI_BitBlt2(hDrawDest int, nXDest, nYDest, nWidth, nHeight int32, hDrawSrc uintptr, nXSrc, nYSrc int32, dwRop uint32) bool
绘制_复制2, BitBlt() 参见MSDN.
hDrawDest: XX.
nXDest: XX.
nYDest: XX.
nWidth: XX.
nHeight: XX.
hDrawSrc: XX.
nXSrc: XX.
nYSrc: XX.
dwRop: XX.
func XDraw_GDI_CreatePen ¶ added in v1.3.12
绘制_创建画笔, GDI创建一个逻辑笔, 指定的样式, 宽度和颜色, 随后的笔可以选择到设备上下文, 用于绘制线条和曲线.
hDraw: 图形绘制句柄.
fnPenStyle: 画笔样式, PS_SOLID:实线, PS_DASH:段线, PS_DOT:点线, PS_DASHDOT:段线_点线, PS_DASHDOTDOT:段线_点_点, PS_NULL:空, PS_INSIDEFRAME:实线_笔宽是向里扩展.
nWidth: 画笔宽度.
crColor: RGB 颜色.
func XDraw_GDI_CreatePolygonRgn ¶ added in v1.3.12
绘制_创建多边形区域, GDI创建一个多边形区域, 成功返回区域句柄, 失败返回NULL.
hDraw: 图形绘制句柄.
pPt: POINT数组.
cPoints: 数组大小.
fnPolyFillMode: 多边形填充模式, 指定用于确定在该地区的像素填充模式,这个参数可以是下列值之一.
ALTERNATE Selects alternate mode (fills area between odd-numbered and even-numbered polygon sides on each scan line).
WINDING Selects winding mode (fills any region with a nonzero winding value).
func XDraw_GDI_CreateRectRgn ¶ added in v1.3.12
绘制_创建矩形区域, GDI创建矩形区域, 成功返回区域句柄, 失败返回NULL.
hDraw: 图形绘制句柄.
nLeftRect: 左上角X坐标.
nTopRect: 左上角Y坐标.
nRightRect: 右下角X坐标.
nBottomRect: 右下角Y坐标.
func XDraw_GDI_CreateRoundRectRgn ¶ added in v1.3.12
func XDraw_GDI_CreateRoundRectRgn(hDraw int, nLeftRect, nTopRect, nRightRect, nBottomRect, nWidthEllipse, nHeightEllipse int32) int
绘制_创建圆角矩形区域, GDI创建一个圆角的矩形区域, 成功返回区域句柄, 失败返回NULL.
hDraw: 图形绘制句柄.
nLeftRect: X-坐标的左上角.
nTopRect: Y-坐标左上角坐标.
nRightRect: X-坐标右下角.
nBottomRect: Y-坐标右下角.
nWidthEllipse: 椭圆的宽度.
nHeightEllipse: 椭圆的高度.
func XDraw_GDI_CreateSolidBrush ¶ added in v1.3.12
绘制_创建实心画刷, GDI创建具有指定的纯色逻辑刷.
hDraw: 图形绘制句柄.
crColor: 画刷颜色, RGB 颜色.
func XDraw_GDI_DrawIconEx ¶ added in v1.3.12
func XDraw_GDI_DrawIconEx(hDraw int, xLeft, yTop int32, hIcon uintptr, cxWidth, cyWidth int32, istepIfAniCur uint32, hbrFlickerFreeDraw int, diFlags uint32) bool
绘制_图标, 绘制图标, DrawIconEx()参见MSDN.
hDraw: .
xLeft: .
yTop: .
hIcon: .
cxWidth: .
cyWidth: .
istepIfAniCur: .
hbrFlickerFreeDraw: .
diFlags: .
func XDraw_GDI_FillRgn ¶ added in v1.3.12
绘制_填充区域, 通过使用指定的画刷填充一个区域.
hDraw: 图形绘制句柄.
hrgn: 区域句柄.
hbr: 画刷句柄.
func XDraw_GDI_FrameRgn ¶ added in v1.3.12
绘制_边框区域, 绘制边框, 使用指定的画刷绘制指定的区域的边框. 如果函数成功, 返回非零值, 如果函数失败, 返回值是零.
hDraw: 图形绘制句柄.
hrgn: 区域句柄.
hbr: 画刷句柄.
nWidth: 边框宽度, 垂直边.
nHeight: 边框高度, 水平边.
func XDraw_GDI_LineTo ¶ added in v1.3.12
绘制_线终点, 函数绘制一条线从当前位置到, 但不包括指定点. 如果函数成功, 返回非零值.
hDraw: 图形绘制句柄.
nXEnd: X坐标, 线结束点.
nYEnd: Y坐标, 线结束点.
func XDraw_GDI_MoveToEx ¶ added in v1.3.12
绘制_移动到起点, 更新当前位置到指定点,并返回以前的位置. 如果函数成功, 返回非零值.
hDraw: 图形绘制句柄.
X: 坐标.
Y: 坐标.
pPoint: 接收以前的当前位置到一个POINT结构的指针, 如果这个参数是NULL指针, 没有返回原来的位置.
func XDraw_GDI_Polyline ¶ added in v1.3.12
绘制_折线, Polyline() 参见MSDN.
hDraw: 图形绘制句柄.
pArrayPt: 参见MSDN.
arrayPtSize: 参见MSDN.
func XDraw_GDI_Rectangle ¶ added in v1.3.12
绘制_矩形, 绘制矩形, 使用当前的画刷和画笔. 如果函数成功, 返回非零值, 如果函数失败, 返回值是零.
hDraw: 图形绘制句柄.
nLeftRect: 左上角X坐标.
nTopRect: 左上角Y坐标.
nRightRect: 右下角X坐标.
nBottomRect: 右下角Y坐标.
func XDraw_GDI_RestoreGDIOBJ ¶ added in v1.3.12
func XDraw_GDI_RestoreGDIOBJ(hDraw int)
绘制_还原状态, 还原状态, 释放用户绑定的GDI对象, 例如画刷, 画笔.
hDraw: 图形绘制句柄.
func XDraw_GDI_SelectClipRgn ¶ added in v1.3.12
绘制_选择裁剪区域, 选择一个区域作为当前裁剪区域, 注意: 该函数只对GDI有效.
hDraw: 图形绘制句柄.
hRgn: 区域句柄.
返回: 返回值指定地区的复杂性,可以是下列值之一.
NULLREGION Region is empty.
SIMPLEREGION Region is a single rectangle.
COMPLEXREGION Region is more than one rectangle.
ERROR An error occurred. (The previous clipping region is unaffected).
func XDraw_GDI_SetBkMode ¶ added in v1.3.12
绘制_置背景模式, SetBkMode() 参见MSDN.
hDraw: 图形绘制句柄.
bTransparent: 参见MSDN.
func XDraw_GDI_SetPixel ¶ added in v1.3.12
绘制_置像素颜色, 函数设置在指定的坐标到指定的颜色的像素. 如果函数成功返回RGB值, 如果失败返回-1.
hDraw: 图形绘制句柄.
X: 坐标.
Y: 坐标.
crColor: RGB颜色值.
func XDraw_GradientFill2 ¶
绘制_渐变填充2, 渐变填充, 从一种颜色过渡到另一种颜色.
hDraw: 图形绘制句柄.
pRect: 矩形坐标.
color1: 开始颜色, ARGB 颜色.
color2: 结束颜色, ARGB 颜色.
mode: 模式, GRADIENT_FILL_.
func XDraw_GradientFill2F ¶ added in v1.3.12
绘制_渐变填充2F, 渐变填充, 从一种颜色过渡到另一种颜色.
hDraw: 图形绘制句柄.
pRect: 矩形坐标.
color1: 开始颜色, ARGB 颜色.
color2: 结束颜色, ARGB 颜色.
mode: 模式, GRADIENT_FILL_.
func XDraw_GradientFill4 ¶
func XDraw_GradientFill4(hDraw int, pRect *RECT, color1 int, color2 int, color3 int, color4 int, mode xcc.GRADIENT_FILL_)
绘制_渐变填充4, 渐变填充,从一种颜色过渡到另一种颜色.
hDraw: 图形绘制句柄.
pRect: 矩形坐标.
color1: 开始颜色, ARGB 颜色.
color2: 结束颜色, ARGB 颜色.
color3: 开始颜色, ARGB 颜色.
color4: 结束颜色, ARGB 颜色.
mode: 模式, GRADIENT_FILL_.
func XDraw_GradientFill4F ¶ added in v1.3.12
func XDraw_GradientFill4F(hDraw int, pRect *RECTF, color1 int, color2 int, color3 int, color4 int, mode xcc.GRADIENT_FILL_)
绘制_渐变填充4F, 渐变填充,从一种颜色过渡到另一种颜色.
hDraw: 图形绘制句柄.
pRect: 矩形坐标.
color1: 开始颜色, ARGB 颜色.
color2: 结束颜色, ARGB 颜色.
color3: 开始颜色, ARGB 颜色.
color4: 结束颜色, ARGB 颜色.
mode: 模式, GRADIENT_FILL_.
func XDraw_ImageAdaptive ¶
绘制_图片自适应.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
pRect: 坐标.
bOnlyBorder: 是否只绘制边缘区域.
func XDraw_ImageAdaptiveF ¶ added in v1.3.12
绘制_图片自适应F.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
pRect: 坐标.
bOnlyBorder: 是否只绘制边缘区域.
func XDraw_ImageEx ¶ added in v1.3.12
绘制_图片扩展, 绘制图片.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
x: x坐标.
y: y坐标.
width: 宽度.
height: 高度.
func XDraw_ImageExF ¶ added in v1.3.12
绘制_图片扩展F, 绘制图片.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
x: x坐标.
y: y坐标.
width: 宽度.
height: 高度.
func XDraw_ImageMask ¶
绘制_图片遮盖, 绘制带遮盖的图片, D2D留空.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
hImageFrameMask: 图片句柄, 遮盖.
pRect: 坐标.
x: 目标X坐标.
y: 目标Y坐标.
func XDraw_ImageMaskEllipse ¶ added in v1.3.340
绘制_图片遮盖圆型, 使用圆形作为遮罩.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
pRect: 矩形坐标.
pRcMask: 遮罩坐标.
func XDraw_ImageMaskRect ¶ added in v1.3.340
func XDraw_ImageMaskRect(hDraw int, hImageFrame int, pRect *RECT, pRcMask *RECT, pRcRoundAngle *RECT)
绘制_图片遮盖矩形, 使用矩形作为遮罩.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
pRect: 矩形坐标.
pRcMask: 遮罩坐标.
pRcRoundAngle: 遮罩圆角.
func XDraw_ImageSuperEx ¶ added in v1.3.12
绘制_图片增强扩展.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
prcDest: 目标坐标.
prcSrc: 源坐标.
func XDraw_ImageSuperExF ¶ added in v1.3.12
绘制_图片增强扩展F.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
prcDest: 目标坐标.
prcSrc: 源坐标.
func XDraw_ImageSuperF ¶ added in v1.3.12
绘制_图片增强F.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
pRect: 坐标.
bClip: 是否裁剪区域.
func XDraw_ImageSuperMask ¶
func XDraw_ImageSuperMask(hDraw int, hImageFrame int, hImageFrameMask int, pRect *RECT, pRectMask *RECT, bClip bool)
绘制_图片增强遮盖, 绘制带遮盖的图片. D2D留空.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
hImageFrameMask: 图片句柄, 遮盖.
pRect: 坐标.
pRectMask: 坐标, 遮盖.
bClip: 是否裁剪区域.
func XDraw_ImageTile ¶ added in v1.3.12
绘制_图片平铺, 绘制图片.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
pRect: 坐标.
flag: 标识, 0:从左上角开始平铺, 1:从左下角开始平铺.
func XDraw_ImageTileF ¶ added in v1.3.12
绘制_图片平铺F, 绘制图片.
hDraw: 图形绘制句柄.
hImageFrame: 图片句柄.
pRect: 坐标.
flag: 标识, 0:从左上角开始平铺, 1:从左下角开始平铺.
func XDraw_SetD2dTextRenderingMode ¶ added in v1.3.12
func XDraw_SetD2dTextRenderingMode(hDraw int, mode xcc.XC_DWRITE_RENDERING_MODE_)
绘制_置D2D文本渲染模式.
hDraw: 图形绘制句柄.
mode 渲染模式 XC_DWRITE_RENDERING_MODE_.
func XDraw_SetTextAlign ¶
func XDraw_SetTextAlign(hDraw int, nFlags xcc.TextFormatFlag_)
绘制_置文本对齐, 设置文本对齐.
hDraw: 图形绘制句柄.
nFlags: 对齐标识, TextFormatFlag_, TextAlignFlag_, TextTrimming_.
func XDraw_TextOut ¶
绘制_文本, TextOut() 参见MSDN.
hDraw: 图形绘制句柄.
nXStart: XX.
nYStart: XX.
lpString: XX.
cbString: XX.
func XDraw_TextOutA ¶
绘制_文本A, TextOut() 参见MSDN.
hDraw: 图形绘制句柄.
nXStart: XX.
nYStart: XX.
lpString: XX.
func XDraw_TextOutAF ¶ added in v1.3.12
绘制_文本AF, TextOut() 参见MSDN.
hDraw: 图形绘制句柄.
nXStart: XX.
nYStart: XX.
lpString: XX.
func XDraw_TextOutEx ¶
绘制_文本扩展, TextOut() 参见MSDN.
hDraw: 图形绘制句柄.
nXStart: XX.
nYStart: XX.
lpString: XX.
func XDraw_TextOutExF ¶ added in v1.3.12
绘制_文本扩展F, TextOut() 参见MSDN.
hDraw: 图形绘制句柄.
nXStart: XX.
nYStart: XX.
lpString: XX.
func XDraw_TextOutF ¶ added in v1.3.12
绘制_文本F, TextOut() 参见MSDN.
hDraw: 图形绘制句柄.
nXStart: XX.
nYStart: XX.
lpString: XX.
cbString: XX.
func XEase_Back ¶
func XEase_Back(p float32, flag xcc.Ease_Type_) float32
缓动_Back, 回弹, 比较缓慢.
p: 位置, 0.0f - 1.0f.
flag: 缓动类型, Ease_Type_.
func XEase_Bounce ¶
func XEase_Bounce(p float32, flag xcc.Ease_Type_) float32
缓动_Bounce, 弹跳, 模拟小球落地弹跳.
p: 位置, 0.0f - 1.0f.
flag: 缓动类型, Ease_Type_.
func XEase_Circ ¶
func XEase_Circ(p float32, flag xcc.Ease_Type_) float32
缓动_Circ, 圆环, 好比绕过一个圆环.
p: 位置, 0.0f - 1.0f.
flag: 缓动类型, Ease_Type_.
func XEase_Cubic ¶
func XEase_Cubic(p float32, flag xcc.Ease_Type_) float32
缓动_Cubic, 三次方曲线, 圆弧.
p: 位置, 0.0f - 1.0f.
flag: 缓动类型, Ease_Type_.
func XEase_Elastic ¶
func XEase_Elastic(p float32, flag xcc.Ease_Type_) float32
缓动_Elastic, 强力回弹.
p: 位置, 0.0f - 1.0f.
flag: 缓动类型, Ease_Type_.
func XEase_Ex ¶ added in v1.3.310
func XEase_Ex(pos float32, flag xcc.Ease_Flag_) float32
缓动_扩展, 全部缓动类型.
pos: 位置, 0.0f - 1.0f.
flag: 缓动标识, Ease_Flag_.
func XEase_Expo ¶
func XEase_Expo(p float32, flag xcc.Ease_Type_) float32
缓动_Expo, 突击曲线, 突然一下.
p: 位置, 0.0f - 1.0f.
flag: 缓动类型, Ease_Type_.
func XEase_Quad ¶
func XEase_Quad(p float32, flag xcc.Ease_Type_) float32
缓动_Quad, 二次方曲线.
p: 位置, 0.0f - 1.0f.
flag: 缓动类型, Ease_Type_.
func XEase_Quart ¶
func XEase_Quart(p float32, flag xcc.Ease_Type_) float32
缓动_Quart, 四次方曲线.
p: 位置, 0.0f - 1.0f.
flag: 缓动类型, Ease_Type_.
func XEase_Quint ¶
func XEase_Quint(p float32, flag xcc.Ease_Type_) float32
缓动_Quint, 五次方曲线.
p: 位置, 0.0f - 1.0f.
flag: 缓动类型, Ease_Type_.
func XEase_Sine ¶
func XEase_Sine(p float32, flag xcc.Ease_Type_) float32
缓动_Sine, 正弦曲线, 在末端变化.
p: 位置, 0.0f - 1.0f.
flag: 缓动类型, Ease_Type_.
func XEdit_AddChatBegin ¶
编辑框_添加气泡开始, 当前行开始.
hEle: 元素句柄.
hImageAvatar: 头像.
hImageBubble: 气泡背景.
nFlag: 标志, Chat_Flag_.
func XEdit_AddData ¶
func XEdit_AddData(hEle int, pData *Edit_Data_Copy_, styleTable []uint16, nStyleCount int) int
编辑框_添加数据.
hEle: 元素句柄.
pData: 数据结构.
styleTable: 样式表.
nStyleCount: 样式数量.
func XEdit_AddStyleEx ¶
func XEdit_AddStyleEx(hEle int, fontName string, fontSize int, fontStyle xcc.FontStyle_, color int, bColor bool) int
编辑框_添加样式扩展, 返回样式索引.
hEle: 元素句柄.
fontName: 字体名称.
fontSize: 字体大小.
fontStyle: 字体样式, FontStyle_.
color: 颜色.
bColor: 是否使用颜色.
func XEdit_AddTextUser ¶ added in v1.3.340
XEdit_AddTextUser 编辑框_插入文本模拟用户操作, 自动刷新UI, 支持撤销/恢复.
@param hEle 元素句柄. @param pString 字符串. @return int
func XEdit_CreateEx ¶
编辑框_创建扩展, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
nType: 类型, Edit_Type_.
hParent: 父为窗口句柄或元素句柄.
func XEdit_Delete ¶
编辑框_删除, 删除指定范围内容.
hEle: 元素句柄.
iStartRow: 起始行索引.
iStartCol: 起始行列索引.
iEndRow: 结束行索引.
iEndCol: 结束行列索引.
func XEdit_GetChatFlags ¶ added in v1.3.380
func XEdit_GetChatFlags(hEle int, iRow int) xcc.Chat_Flag_
编辑框_取指定行气泡标识. 返回行标识: xcc.Chat_Flag_
hEle: 元素句柄.
iRow: 行索引.
func XEdit_GetSelectText ¶
编辑框_取选择文本, 不包括非文本内容, 返回接收文本内容实际长度.
hEle: 元素句柄.
pOut: 接收返回文本内容.
nOutLen: 接收内存大小. xc.XEdit_GetSelectTextLength()+1 .
func XEdit_GetSelectText_Temp ¶ added in v1.3.360
编辑框_取选择文本, 不包含非文本内容. 返回临时文本, 临时缓存区大小: xcc.Text_Buffer_Size .
hEle: 元素句柄.
func XEdit_GetStyleInfo ¶
func XEdit_GetStyleInfo(hEle int, iStyle int, info *Edit_Style_Info_) bool
编辑框_取样式信息.
hEle: 元素句柄.
iStyle: 样式索引.
info: 返回样式信息.
func XEdit_GetText ¶
编辑框_取文本, 不包含非文本内容, 返回实际接收文本长度.
hEle: 元素句柄.
pOut: 接收文本内存指针.
nOutlen: 内存大小. 例: xc.XEdit_GetLength()+1 .
func XEdit_GetTextRow ¶
编辑框_取文本行.
hEle: 元素句柄.
iRow: 行索引.
pOut: 接收文本内存指针.
nOutlen: 接收文本内存块长度. 例: xc.XEdit_GetLengthRow()+1 .
func XEdit_GetTextRow_Temp ¶ added in v1.3.360
编辑框_取文本行_临时, 获取指定行文本内容. 返回临时文本, 临时缓存区大小: xcc.Text_Buffer_Size .
hEle: 元素句柄.
iRow: 行索引.
func XEdit_GetText_Temp ¶ added in v1.3.360
编辑框_取文本_临时, 不包含非文本内容. 返回临时文本, 临时缓存区大小: xcc.Text_Buffer_Size .
hEle: 元素句柄.
func XEdit_InsertChatBegin ¶ added in v1.3.370
编辑框_插入气泡开始, 当前行开始.
hEle: 元素句柄.
hImageAvatar: 头像图片句柄.
hImageBubble: 气泡背景图片句柄.
nFlag: 聊天气泡对齐方式: xcc.Chat_Flag_ .
func XEdit_InsertTextEx ¶ added in v1.3.380
编辑框_插入文本扩展.
hEle: 元素句柄.
iRow: 行索引.
iCol: 列索引.
pString: 字符串.
iStyle: 样式.
func XEdit_ModifyStyle ¶ added in v1.3.340
编辑框_修改样式.
hEle: 元素句柄.
iStyle: 样式索引.
hFont: 字体句柄.
color: ARGB 颜色.
bColor: 是否使用颜色.
func XEdit_PosToRowCol ¶ added in v1.3.340
XEdit_PosToRowCol 编辑框_转换位置, 转换位置点到行列.
@param hEle 元素句柄. @param iPos 位置点. @param pInfo 行列. @return int
func XEdit_SetBackFont ¶ added in v1.3.340
编辑框_置后备字体, 置中文字体. 如果已设置, 当遇到中文字符时使用后备字体, 解决不支持中文的字体的问题
hEle: 元素句柄.
hFont: 字体.
func XEdit_SetCharSpaceSize ¶ added in v1.3.340
编辑框_置字符间距.
hEle: 元素句柄.
size: 英文字符间距大小.
sizeZh: 中文字符间距大小.
func XEdit_SetRowHeightEx ¶
编辑框_置指定行高度, 类型为 Edit_Type_Richedit 支持指定不同行高.
hEle: 元素句柄.
iRow: 行索引.
nHeight: 高度.
func XEdit_SetSelect ¶
编辑框_置选择.
hEle: 元素句柄.
iStartRow: 起始行索引.
iStartCol: 起始行列索引.
iEndRow: 结束行索引.
iEndCol: 结束行列索引.
func XEdit_SetTextAlign ¶
func XEdit_SetTextAlign(hEle int, align xcc.Edit_TextAlign_Flag_) int
编辑框_置文本对齐, 单行模式下有效.
hEle: 元素句柄.
align: 对齐方式, Edit_TextAlign_Flag_.
func XEditor_AddExcludeDefVarKeyword ¶
代码编辑框_添加排除定义变量关键字, 排除定义变量的关键字, 用于排除定义变量, 因为定义变量禁用自动匹配; 此关键字不加入自动匹配,仅用于排除定义变量.
hEle: 元素句柄.
pKeyword: 字符串.
func XEditor_GetColor ¶
func XEditor_GetColor(hEle int, pInfo *Editor_Color_) int
代码编辑框_取颜色信息.
hEle: 元素句柄.
pInfo: 颜色信息结构体指针.
func XEditor_SetAutoMatchMode ¶ added in v1.3.350
代码编辑框_置自动匹配结果显示模式.
hEle: 元素句柄.
mode: 0:中英文, 1:英文, 3:中文.
func XEditor_SetColor ¶
func XEditor_SetColor(hEle int, pInfo *Editor_Color_) int
代码编辑框_置颜色.
hEle: 元素句柄.
pInfo: 颜色信息结构体指针.
func XEle_AddBkFill ¶
func XEle_AddBkFill(hEle int, nState xcc.CombinedState, color int) int
元素_添加背景填充, 添加背景内容填充.
hEle: 元素句柄.
nState: 组合状态.
color: ARGB 颜色.
func XEle_AddBkImage ¶
func XEle_AddBkImage(hEle int, nState xcc.CombinedState, hImage int) int
元素_添加背景图片, 添加背景内容图片.
hEle: 元素句柄.
nState: 组合状态.
hImage: 图片句柄.
func XEle_AdjustLayoutEx ¶
func XEle_AdjustLayoutEx(hEle int, nFlags xcc.AdjustLayout_, nAdjustNo uint32) int
元素_调整布局扩展.
hEle: 元素句柄.
nFlags: 调整标识.
nAdjustNo: 调整布局流水号, 可填0.
func XEle_EnableCanvas ¶
元素_启用画布, 启用或禁用背景画布; 如果禁用那么将绘制在父的画布之上, 也就是说他没有自己的画布.
hEle: 元素句柄.
bEnable: 是否启用.
func XEle_EnableEvent_XE_MOUSEWHEEL ¶
元素_启用事件_XE_MOUSEWHEEL, 启用接收鼠标滚动事件, 如果禁用那么事件会传递给父元素.
hEle: 元素句柄.
bEnable: 是否启用.
func XEle_EnableMouseThrough ¶
元素_启用鼠标穿透. 启用鼠标穿透, 如果启用, 那么该元素不能接收到鼠标事件, 但是他的子元素不受影响, 任然可以接收鼠标事件.
hEle: 元素句柄.
bEnable: 是否启用.
func XEle_EnableTransparentChannel ¶
元素_启用透明通道, 启用或关闭元素透明通道, 如果启用, 将强制设置元素背景不透明, 默认为启用, 此功能是为了兼容GDI不支持透明通道问题.
hEle: 元素句柄.
bEnable: 启用或关闭.
func XEle_GetContentSize ¶
元素_取内容大小.
hEle: 元素句柄.
bHorizon: 水平或垂直, 布局属性交换依赖.
cx: 宽度.
cy: 高度.
pSize: 返回大小.
func XEle_GetStateFlags ¶
func XEle_GetStateFlags(hEle int) xcc.CombinedState
元素_取状态, 获取组合状态.
hEle: 元素句柄.
func XEle_GetWndClientRectDPI ¶ added in v1.3.380
元素_取窗口客户区坐标DPI. 基于DPI缩放后的坐标.
hEle: 元素句柄.
pRect: 接收返回坐标.
func XEle_IsEnable_XE_MOUSEWHEEL ¶
元素_判断启用_XE_MOUSEWHEEL, 判断是否启用鼠标滚动事件, 如果禁用那么事件会发送给他的父元素.
hEle: 元素句柄.
func XEle_PointClientToWndClientDPI ¶ added in v1.3.380
元素_取窗口客户区坐标DPI. 基于DPI缩放后的坐标.
hEle: 元素句柄.
pPt: 接收返回坐标点.
func XEle_RectClientToWndClientDPI ¶ added in v1.3.380
元素_客户区坐标到窗口客户区DPI. 基于DPI缩放后的坐标.
hEle: 元素句柄.
pRect: 接收返回坐标.
func XEle_RegEventC1Ex ¶ added in v1.3.380
元素_注册事件C1Ex, 注册事件C1方式, 省略1参数, 和非Ex版相比只是最后一个参数不同.
hEle: 元素句柄.
nEvent: 事件类型: xcc.XE_.
pFun: 事件函数指针, 使用 syscall.NewCallback() 生成.
func XEle_RegEventCEx ¶ added in v1.3.380
元素_注册事件CEx, 注册事件C方式, 省略2参数, 和非Ex版相比只是最后一个参数不同.
hEle: 元素句柄.
nEvent: 事件类型: xcc.XE_.
pFun: 事件函数指针, 使用 syscall.NewCallback() 生成.
func XEle_RemoveEventCEx ¶ added in v1.3.380
元素_移除事件CEx, 和非Ex版相比只是最后一个参数不同.
hEle: 元素句柄.
nEvent: 事件类型: xcc.XE_.
pFun: 事件函数指针, 使用 syscall.NewCallback() 生成.
func XEle_SetDragBorder ¶
func XEle_SetDragBorder(hEle int, nFlags xcc.Element_Position_) int
元素_置拖动边框.
hEle: 元素句柄.
nFlags: 边框位置组合, Element_Position_.
func XEle_SetDragBorderBindEle ¶
func XEle_SetDragBorderBindEle(hEle int, nFlags xcc.Element_Position_, hBindEle int, nSpace int) int
元素_置拖动边框绑定元素, 设置拖动边框绑定元素, 当拖动边框时, 自动调整绑定元素的大小.
hEle: 元素句柄.
nFlags: 边框位置标识, Element_Position_.
hBindEle: 绑定元素.
nSpace: 元素间隔大小.
func XEle_SetLockScroll ¶
元素_置锁定滚动, 设置锁定元素在滚动视图中跟随滚动, 如果设置TRUE将不跟随滚动.
hEle: 元素句柄.
bHorizon: 是否锁定水平滚动.
bVertical: 是否锁定垂直滚动.
func XEle_SetPosition ¶ added in v1.3.310
func XEle_SetPosition(hEle int, x, y int32, bRedraw bool, nFlags xcc.AdjustLayout_, nAdjustNo uint32) int
元素_移动, 如果坐标未改变返回0, 如果大小改变返回2(触发XE_SIZE), 否则返回1.
hEle: 元素句柄.
x: X坐标.
y: Y坐标.
bRedraw: 是否重绘.
nFlags: 调整布局标识位: xcc.AdjustLayout_.
nAdjustNo: 调整布局流水号, 可填0.
func XEle_SetPositionLogic ¶ added in v1.3.310
func XEle_SetPositionLogic(hEle int, x, y int32, bRedraw bool, nFlags xcc.AdjustLayout_, nAdjustNo uint32) int
元素_移动逻辑坐标, 移动元素坐标, 逻辑坐标, 包含滚动视图偏移. 如果坐标未改变返回0, 如果大小改变返回2(触发XE_SIZE), 否则返回1.
hEle: 元素句柄.
x: X坐标.
y: Y坐标.
bRedraw: 是否重绘.
nFlags: 调整布局标识位: xcc.AdjustLayout_.
nAdjustNo: 调整布局流水号, 可填0.
func XEle_SetRect ¶
func XEle_SetRect(hEle int, pRect *RECT, bRedraw bool, nFlags xcc.AdjustLayout_, nAdjustNo uint32) int
元素_置坐标, 如果返回0坐标没有改变, 如果大小改变返回2(触发XE_SIZE), 否则返回1(仅改变left,top,没有改变大小).
hEle: 元素句柄.
pRect: 坐标.
bRedraw: 是否重绘.
nFlags: 调整布局标识位: xcc.AdjustLayout_.
nAdjustNo: 调整布局流水号, 可填0.
func XEle_SetRectEx ¶
func XEle_SetRectEx(hEle int, x int, y int, cx int, cy int, bRedraw bool, nFlags xcc.AdjustLayout_, nAdjustNo uint32) int
元素_置坐标扩展, 如果坐标未改变返回0, 如果大小改变返回2(触发XE_SIZE), 否则返回1.
hEle: 元素句柄.
x: X坐标.
y: Y坐标.
cx: 宽度.
cy: 高度.
bRedraw: 是否重绘.
nFlags: 调整布局标识位: xcc.AdjustLayout_.
nAdjustNo: 调整布局流水号, 可填0.
func XEle_SetRectLogic ¶
func XEle_SetRectLogic(hEle int, pRect *RECT, bRedraw bool, nFlags xcc.AdjustLayout_, nAdjustNo uint32) int
元素_置逻辑坐标, 如果坐标未改变返回0, 如果大小改变返回2(触发XE_SIZE), 否则返回1.
hEle: 元素句柄.
pRect: 坐标.
bRedraw: 是否重绘.
nFlags: 调整布局标识位: xcc.AdjustLayout_ , 此参数将会传入XE_SIZE ,XE_ADJUSTLAYOUT 事件回调.
nAdjustNo: 调整布局流水号, 可填0.
func XEle_SetSize ¶ added in v1.3.310
func XEle_SetSize(hEle int, nWidth, nHeight int32, bRedraw bool, nFlags xcc.AdjustLayout_, nAdjustNo uint32) int
元素_置大小.
hEle: 元素句柄.
nWidth: 宽度.
nHeight: 高度.
bRedraw: 是否重绘.
nFlags: 调整布局标识位: xcc.AdjustLayout_.
nAdjustNo: 调整布局流水号, 可填0.
func XEle_SetToolTipEx ¶
func XEle_SetToolTipEx(hEle int, pText string, nTextAlign xcc.TextFormatFlag_) int
元素_置工具提示扩展, 设置工具提示内容.
hEle: 元素句柄.
pText: 工具提示内容.
nTextAlign: 文本对齐方式, TextFormatFlag_, TextAlignFlag_, TextTrimming_.
func XFont_Create ¶
XFont_Create 字体_创建, 创建炫彩字体. 当字体句柄与元素关联后, 会自动释放.
@param size 字体大小,单位(pt,磅). @return int 返回字体句柄.
func XFont_CreateEx ¶
func XFont_CreateEx(pName string, size int32, style xcc.FontStyle_) int
XFont_CreateEx 字体_创建扩展. 创建炫彩字体.
@param pName 字体名称. @param size 字体大小, 单位(pt,磅). @param style 字体样式, xcc.FontStyle_. @return int 返回字体句柄.
func XFont_CreateFromFile ¶
func XFont_CreateFromFile(pFontFile string, size int32, style xcc.FontStyle_) int
XFont_CreateFromFile 字体_创建从文件. 创建字体从文件.
@param pFontFile 字体文件名. @param size 字体大小, 单位(pt,磅). @param style 字体样式, xcc.FontStyle_. @return int 返回炫彩字体句柄.
func XFont_CreateFromFont ¶
XFont_CreateFromFont 字体_创建从Font. 创建炫彩字体从GDI+字体.
@param pFont GDI+字体指针. @return int 返回字体句柄.
func XFont_CreateFromHFONT ¶
XFont_CreateFromHFONT 字体_创建从HFONT. 创建炫彩字体从现有HFONT字体.
@param hFont 字体句柄. @return int 返回字体句柄.
func XFont_CreateFromLOGFONTW ¶ added in v1.3.390
XFont_CreateLOGFONTW 字体_创建从LOGFONT. 创建炫彩字体.
@param pFontInfo 字体信息. @return int 返回字体句柄.
func XFont_CreateFromMem ¶ added in v1.3.12
func XFont_CreateFromMem(data []byte, fontSize int32, style xcc.FontStyle_) int
XFont_CreateFromMem 字体_创建从内存. 创建炫彩字体从内存.
@param data 字体文件数据. @param fontSize 字体大小, 单位(pt,磅). @param style 字体样式, xcc.FontStyle_. @return int 返回字体句柄.
func XFont_CreateFromRes ¶ added in v1.3.12
func XFont_CreateFromRes(id int32, pType string, fontSize int32, style xcc.FontStyle_, hModule uintptr) int
XFont_CreateFromRes 字体_创建从资源. 创建字体从资源.
@param id xx. @param pType xx. @param fontSize 字体大小, 单位(pt,磅). @param style 字体样式, xcc.FontStyle_. @param hModule xx. @return int 返回炫彩字体句柄.
func XFont_CreateFromZip ¶ added in v1.3.350
func XFont_CreateFromZip(pZipFileName, pFileName, pPassword string, fontSize int32, style xcc.FontStyle_) int
XFont_CreateFromZip 字体_创建从ZIP.
@param pZipFileName zip文件名. @param pFileName 字体文件名. @param pPassword zip密码. @param fontSize 字体大小, 单位(pt,磅). @param style 字体样式: xcc.FontStyle_. @return int 返回炫彩字体句柄.
func XFont_CreateFromZipMem ¶ added in v1.3.350
func XFont_CreateFromZipMem(data []byte, pFileName, pPassword string, fontSize int32, style xcc.FontStyle_) int
XFont_CreateFromZipMem 字体_创建从内存ZIP.
@param data zip数据. @param pFileName 字体文件名. @param pPassword zip密码. @param fontSize 字体大小, 单位(pt,磅). @param style 字体样式: xcc.FontStyle_. @return int 返回炫彩字体句柄.
func XFont_Destroy ¶
func XFont_Destroy(hFontX int)
XFont_Destroy 字体_销毁. 强制销毁炫彩字体, 谨慎使用, 建议使用 XFont_Release() 释放.
@param hFontX 字体句柄.
func XFont_EnableAutoDestroy ¶
XFont_EnableAutoDestroy 字体_启用自动销毁. 是否自动销毁.
@param hFontX 字体句柄. @param bEnable 是否启用.
func XFont_GetFontInfo ¶
func XFont_GetFontInfo(hFontX int, pInfo *Font_Info_)
XFont_GetFontInfo 字体_取信息. 获取字体信息.
@param hFontX 字体句柄. @param pInfo 接收返回的字体信息.
func XFont_GetLOGFONTW ¶
XFont_GetLOGFONTW 字体_取LOGFONTW. 获取字体LOGFONTW.
@param hFontX 字体句柄. @param hdc hdc句柄. @param pOut 接收返回信息. @return bool
func XFont_GetUnderlineEdit ¶ added in v1.3.390
XFont_GetUnderlineEdit 字体_取下划线. 仅供edit字体使用, 因为edit不支持下划线字体, 所以需要单独设置.
@param hFontX 字体句柄. @return bUnderline 是否启用下划线. @return bStrikeout 是否启用删除线.
func XFont_Release ¶
func XFont_Release(hFontX int)
XFont_Release 字体_释放引用计数. 释放引用计数, 当引用计数为0时自动销毁.
@param hFontX 字体句柄.
func XFont_SetUnderlineEdit ¶ added in v1.3.390
XFont_SetUnderlineEdit 字体_置下划线. 仅供edit字体使用, 因为edit不支持下划线字体, 所以需要单独设置.
@param hFontX 字体句柄. @param bUnderline 是否启用下划线. @param bStrikeout 是否启用删除线.
func XFrameWnd_AddPane ¶
框架窗口_添加窗格, 添加窗格到框架窗口.
hWindow: 窗口句柄.
hPaneDest: 目标窗格.
hPaneNew: 当前窗格.
align: 对齐方式, Pane_Align_.
func XFrameWnd_Attach ¶ added in v0.0.5
框架窗口_附加窗口, 返回窗口资源句柄.
hWnd: 要附加的外部窗口句柄.
XCStyle: 炫彩窗口样式: Window_Style_.
func XFrameWnd_Create ¶
func XFrameWnd_Create(x, y, cx, cy int32, pTitle string, hWndParent uintptr, XCStyle xcc.Window_Style_) int
框架窗口_创建, 返回GUI库窗口资源句柄.
x: 窗口左上角x坐标.
y: 窗口左上角y坐标.
cx: 窗口宽度.
cy: 窗口高度.
pTitle: 窗口标题.
hWndParent: 父窗口真实句柄.
XCStyle: GUI库窗口样式: Window_Style_.
func XFrameWnd_CreateEx ¶
func XFrameWnd_CreateEx(dwExStyle int, dwStyle int, lpClassName string, x, y, cx, cy int32, pTitle string, hWndParent uintptr, XCStyle xcc.Window_Style_) int
框架窗口_创建扩展, 返回GUI库窗口资源句柄.
dwExStyle: 窗口扩展样式.
dwStyle: 窗口样式.
lpClassName: 窗口类名.
x: 窗口左上角x坐标.
y: 窗口左上角y坐标.
cx: 窗口宽度.
cy: 窗口高度.
pTitle: 窗口名.
hWndParent: 父窗口.
XCStyle: GUI库窗口样式: Window_Style_.
func XFrameWnd_GetDragFloatWndTopFlag ¶ added in v1.3.340
func XFrameWnd_GetDragFloatWndTopFlag(hWindow int) xcc.FrameWnd_Cell_Type_
框架窗口_取拖动浮动窗格停留位置标识, 返回 拖动窗格 所处框架窗口单元格标识: xcc.FrameWnd_Cell_Type_.
hWindow: 窗口句柄.
func XFrameWnd_GetViewRect ¶ added in v1.3.381
框架窗口_取主视图坐标. 获取框架窗口主视图区域坐标.
hWindow: 窗口句柄.
pRect: 返回坐标.
func XFrameWnd_LoadLayoutFile ¶
func XFrameWnd_LoadLayoutFile(hWindow int, aPaneList []int, nPaneCount int32, pFileName string) bool
框架窗口_加载布局信息文件, 加载布局信息文件.
hWindow: 窗口句柄.
aPaneList: 窗格句柄数组.
nPaneCount: 窗格数量.
pFileName: 文件名,如果文件名为空,将使用默认文件名frameWnd_layout.xml.
func XFrameWnd_SaveLayoutToFile ¶
框架窗口_保存布局到文件, 保存布局信息到文件.
hWindow: 窗口句柄.
pFileName: 文件名,如果文件名为空,将使用默认文件名frameWnd_layout.xml.
func XFrameWnd_SetLayoutMargin ¶ added in v1.3.390
框架窗口_置布局外间距. 设置框架窗口, 窗格区域布局的外间距.
hWindow: 窗口句柄.
left: 左边间隔.
top: 顶边间隔.
right: 右边间隔.
bottom: 底边间隔.
func XImage_Destroy ¶
func XImage_Destroy(hImage int)
图片_销毁, 强制销毁图片, 谨慎使用, 建议使用 XImage_Release() 释放.
hImage: 图片句柄.
func XImage_EnableAutoDestroy ¶
图片_启用自动销毁, 启用或关闭自动销毁, 当与UI元素关联时有效.
hImage: 图片句柄.
bEnable: 启用自动销毁TRUE.
func XImage_GetDrawType ¶
func XImage_GetDrawType(hImage int) xcc.Image_Draw_Type_
图片_取绘制类型, 获取图片绘制类型, 返回: xcc.Image_Draw_Type_.
hImage: 图片句柄.
func XImage_LoadFileAdaptive ¶
图片_加载从文件自适应, 加载图片从文件, 自适应图片.
pFileName: 图片文件.
leftSize: 坐标.
topSize: 坐标.
rightSize: 坐标.
bottomSize: 坐标.
func XImage_LoadFileRect ¶
图片_加载从文件指定区域, 加载图片, 指定区位置及大小.
pFileName: 图片文件.
x: 坐标.
y: 坐标.
cx: 宽度.
cy: 高度.
func XImage_LoadFromExtractIcon ¶
图片_加载文件图标, 加载文件图标, 从一个EXE文件或DLL文件或图标文件; 例如:*.exe文件的图标.
pFileName: 文件名.
func XImage_LoadMemoryAdaptive ¶
图片_加载从内存自适应, 加载流图片压缩包, 自适应图片(九宫格).
pBuffer: 图片数据.
leftSize: 坐标.
topSize: 坐标.
rightSize: 坐标.
bottomSize: 坐标.
func XImage_LoadMemoryRect ¶
图片_加载从内存指定区域, 加载流图片, 指定区位置及大小.
pBuffer: 图片数据.
x: 坐标.
y: 坐标.
cx: 宽度.
cy: 高度.
func XImage_LoadRes ¶
图片_加载从资源.
id: 资源ID.
pType: 资源类型.
bStretch: 是否拉伸图片.
hModule: 从指定模块加载, 例如:DLL, EXE; 如果为空, 从当前EXE加载.
func XImage_LoadResAdaptive ¶
func XImage_LoadResAdaptive(id int32, pType string, leftSize, topSize, rightSize, bottomSize int32, hModule uintptr) int
图片_加载从资源自适应, 加载图片从资源, 自适应图片.
id: 资源ID.
pType: 资源类型.
leftSize: 坐标.
topSize: 坐标.
rightSize: 坐标.
bottomSize: 坐标.
hModule: 从指定模块加载, 例如:DLL, EXE; 如果为空, 从当前EXE加载.
func XImage_LoadSvgStringUtf8 ¶ added in v1.3.310
图片_加载从SVG字符串UTF8, 更推荐使用 xc.XImage_LoadSvgStringW.
pString: 字符串.
func XImage_LoadZip ¶
图片_加载从ZIP, 加载图片从ZIP压缩包.
pZipFileName: ZIP压缩包文件名.
pFileName: 图片文件名.
pPassword: ZIP压缩包密码.
func XImage_LoadZipAdaptive ¶
func XImage_LoadZipAdaptive(pZipFileName string, pFileName string, pPassword string, x1, x2, y1, y2 int32) int
图片_加载从ZIP自适应, 加载图片从ZIP压缩包, 自适应图片.
pZipFileName: ZIP压缩包文件名.
pFileName: 图片文件名.
pPassword: ZIP压缩包密码.
x1: 坐标.
x2: 坐标.
y1: 坐标.
y2: 坐标.
func XImage_LoadZipRect ¶
func XImage_LoadZipRect(pZipFileName string, pFileName string, pPassword string, x, y, cx, cy int32) int
图片_加载从ZIP指定区域, 加载ZIP图片, 指定区位置及大小.
pZipFileName: ZIP文件.
pFileName: 图片名称.
pPassword: 密码.
x: 坐标.
y: 坐标.
cx: 宽度.
cy: 高度.
func XImage_LoadZipRes ¶ added in v1.3.380
图片_加载从资源ZIP, 返回图片句柄.
id: RC资源ID.
pFileName: 图片文件名.
pPassword: ZIP压缩包密码.
hModule: 模块句柄, 可填0.
func XImage_Release ¶
func XImage_Release(hImage int)
图片_释放引用计数, 释放引用计数, 当引用计数为0时, 自动销毁.
hImage: 图片句柄.
func XImage_SetDrawType ¶
func XImage_SetDrawType(hImage int, nType xcc.Image_Draw_Type_) bool
图片_置绘制类型, 设置图片绘制类型.
hImage: 图片句柄.
nType: 图片绘制类型, Image_Draw_Type_.
func XImage_SetDrawTypeAdaptive ¶
图片_置绘制类型自适应, 设置图片自适应(九宫格).
hImage: 图片句柄.
leftSize: 坐标.
topSize: 坐标.
rightSize: 坐标.
bottomSize: 坐标.
func XImage_SetScaleSize ¶ added in v1.3.350
图片_置缩放大小, 启用缩放属性后有效, 值大于0有效.
hImage: 图片句柄.
width: 宽度.
height: 高度.
func XImage_SetTranColorEx ¶
图片_置透明色扩展, 指定图片透明颜色及透明度.
hImage: 图片句柄.
color: ARGB 颜色.
tranColor: 透明色的透明度.
func XInitXCGUI ¶
XInitXCGUI 炫彩_初始化.
@Description 在调用本函数之前请先调用 xc.LoadXCGUI(). @param bD2D 是否启用D2D. @return bool
Example ¶
package main import ( "github.com/twgh/xcgui/xc" "github.com/twgh/xcgui/xcc" ) func main() { // 可自定义xcgui.dll的路径, 如无需自定义, 则删掉这句代码. /* err := xc.SetXcguiPath(`C:\Users\Administrator\Desktop\XCGUI.dll`) if err != nil { panic(err) }*/ xc.LoadXCGUI() xc.XInitXCGUI(true) hWindow := xc.XWnd_Create(0, 0, 500, 500, "", 0, xcc.Window_Style_Default) xc.XWnd_ShowWindow(hWindow, xcc.SW_SHOW) xc.XRunXCGUI() xc.XExitXCGUI() }
Output:
func XLayoutBox_SetAlignBaseline ¶
func XLayoutBox_SetAlignBaseline(hLayoutBox int, nAlign xcc.Layout_Align_Axis_) int
布局盒子_置对齐基线.
hLayoutBox: 窗口或布局元素或布局框架句柄.
nAlign: 对齐方式: xcc.Layout_Align_Axis_.
func XLayoutBox_SetAlignH ¶
func XLayoutBox_SetAlignH(hLayoutBox int, nAlign xcc.Layout_Align_) int
XLayoutBox_SetAlignH 布局盒子_置水平对齐.
@param hLayoutBox 窗口或布局元素或布局框架句柄. @param nAlign 对齐方式: xcc.Layout_Align_. @return int
func XLayoutBox_SetAlignV ¶
func XLayoutBox_SetAlignV(hLayoutBox int, nAlign xcc.Layout_Align_) int
XLayoutBox_SetAlignV 布局盒子_置垂直对齐.
@param hLayoutBox 窗口或布局元素或布局框架句柄. @param nAlign 对齐方式: xcc.Layout_Align_. @return int
func XLayout_Create ¶
布局_创建, 创建布局元素, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父为窗口句柄或元素句柄.
func XListBox_Create ¶
列表框_创建, 创建列表框元素, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XListBox_CreateEx ¶ added in v1.3.381
列表框_创建Ex. 创建列表框元素, 使用内置项模板, 自动创建数据适配器, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
col_extend_count: 列数量. 例如: 内置模板是1列, 如果数据有5列, 那么此参数填5.
func XListBox_GetItemHeight ¶ added in v1.3.390
列表框_取项高度.
hEle: 元素句柄.
iItem: 项索引.
pHeight: 高度.
pSelHeight: 选中时高度.
func XListBox_GetItemIndexFromHXCGUI ¶
列表框_取所在行索引, 获取当前对象所在模板实例, 属于列表中哪一个项(行). 成功返回项索引, 否则返回XC_ID_ERROR.
hEle: 元素句柄.
hXCGUI: 对象句柄, UI元素句柄或形状对象句柄.
func XListBox_GetItemInfo ¶
func XListBox_GetItemInfo(hEle int, iItem int32, pItem *ListBox_Item_Info_) bool
列表框_取项背景信息, 获取项信息.
hEle: 元素句柄.
iItem: 项索引.
pItem: 项信息.
func XListBox_GetSelectAll ¶
列表框_取全部选择, 获取所有选择项, 返回接收数量.
hEle: 元素句柄.
pArray: 数组缓冲区.
nArraySize: 数组大小.
func XListBox_GetTemplateObject ¶
列表框_取模板对象, 通过模板项ID, 获取实例化模板项ID对应的对象句柄, 成功返回对象句柄, 否则返回NULL.
hEle: 元素句柄.
iItem: 项索引.
nTempItemID: 模板项ID.
func XListBox_SetDragRectColor ¶ added in v1.3.350
列表框_置拖动矩形颜色.
hEle: 元素句柄.
color: ARGB 颜色值.
width: 线宽度.
func XListBox_SetDrawItemBkFlags ¶
func XListBox_SetDrawItemBkFlags(hEle int, nFlags xcc.List_DrawItemBk_Flag_)
列表框_置绘制项背景标志, 设置是否绘制指定状态下项的背景.
hEle: 元素句柄.
nFlags: 标志位, List_DrawItemBk_Flag_.
func XListBox_SetItemHeight ¶ added in v1.3.390
列表框_置项高度. 注意:为了提高性能, 默认使用列表框的全局项高度, 如果需要指定项单独高度, 需要关闭固定行高: xc.XListBox_EnableFixedRowHeight
hEle: 元素句柄.
iItem: 项索引.
nHeight: 项高度.
nSelHeight: 项选中时高度.
func XListBox_SetItemInfo ¶
func XListBox_SetItemInfo(hEle int, iItem int32, pItem *ListBox_Item_Info_) bool
列表框_置项信息.
hEle: 元素句柄.
iItem: 项索引.
pItem: 项信息.
func XListBox_SetItemTemplateXMLFromMem ¶ added in v1.3.380
列表框_置项模板从内存. 设置项模板文件.
hEle: 元素句柄.
data: 模板数据.
func XListBox_SetItemTemplateXMLFromZipRes ¶ added in v1.3.380
func XListBox_SetItemTemplateXMLFromZipRes(hEle int, id int32, pFileName string, pPassword string, hModule uintptr) bool
列表框_置项模板从资源ZIP. 设置项模板文件.
hEle: 元素句柄.
id: RC资源ID.
pFileName: 项模板文件名.
pPassword: zip密码.
hModule: 模块句柄, 可填0.
func XListBox_Sort ¶
列表框_排序.
hEle: 元素句柄.
iColumnAdapter: 需要排序的数据在数据适配器中所属列索引.
bAscending: 升序(TRUE)或降序(FALSE).
func XListView_Create ¶
列表视_创建, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XListView_CreateEx ¶ added in v1.3.381
列表视_创建Ex. 创建列表视图元素, 使用内置项模板, 自动创建数据适配器, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
col_extend_count: 列数量. 例如: 内置模板是1列, 如果数据有5列, 那么此参数填5.
func XListView_ExpandGroup ¶
列表视_展开组, 成功返回TRUE否则返回FALSE, 如果状态没有改变返回FALSE.
hEle: 元素句柄.
iGroup: 组索引.
bExpand: 是否展开.
func XListView_GetItemIDFromHXCGUI ¶
列表视_取对象所在项, 获取当前对象所在模板实例, 属于列表视中哪一个项.
hEle: 元素句柄.
hXCGUI: 对象句柄, UI元素句柄或形状对象句柄.
piGroup: 接收组索引.
piItem: 接收项索引.
func XListView_GetSelectAll ¶
func XListView_GetSelectAll(hEle int, pArray *[]ListView_Item_Id_, nArraySize int) int
列表视_取选择项全部, 获取选择的项ID, 返回接收项数量.
hEle: 元素句柄.
pArray: 数组.
nArraySize: 数组大小.
func XListView_GetTemplateObject ¶
列表视_取模板对象, 通过模板项ID, 获取实例化模板项ID对应的对象句柄.
hEle: 元素句柄.
iGroup: 组索引.
iItem: 项索引.
nTempItemID: 模板项ID.
func XListView_GetTemplateObjectGroup ¶
列表视_取模板对象组, 通过模板项ID, 获取实例化模板项ID对应的对象句柄.
hEle: 元素句柄.
iGroup: 组索引.
nTempItemID: 模板项ID.
func XListView_GetVisibleItemRange ¶
func XListView_GetVisibleItemRange(hEle int, piGroup1 *int32, piGroup2 *int32, piStartGroup *int32, piStartItem *int32, piEndGroup *int32, piEndItem *int32) int
列表视_取可视项范围, 获取当前可见项范围.
hEle: 元素句柄.
piGroup1: 可视开始组.
piGroup2: 可视结束组.
piStartGroup: 可视开始组.
piStartItem: 可视开始项.
piEndGroup: 可视结束组.
piEndItem: 可视结束项.
func XListView_Group_AddItemImageEx ¶
列表视_组添加项图片扩展, 返回组索引.
hEle: 元素句柄.
pName: 字段称.
hImage: 图片句柄.
iPos: 插入位置.
func XListView_Group_AddItemTextEx ¶
列表视_组添加项文本扩展, 返回组索引.
hEle: 元素句柄.
pName: 字段称.
pValue: 值.
iPos: 插入位置.
func XListView_Group_GetImage ¶ added in v1.3.340
列表视_组取图片, 返回图片句柄.
hEle: 元素句柄.
iGroup: 组索引.
iColumn: 列索引.
func XListView_Group_GetImageEx ¶ added in v1.3.340
列表视_组取图片扩展, 返回图片句柄.
hEle: 元素句柄.
iGroup: 组索引.
pName: 字段名称.
func XListView_Group_GetText ¶ added in v1.3.340
列表视_组取文本, 返回文本内容.
hEle: 元素句柄.
iGroup: 组索引.
iColumn: 列索引.
func XListView_Group_GetTextEx ¶ added in v1.3.340
列表视_组取文本扩展, 返回文本内容.
hEle: 元素句柄.
iGroup: 组索引.
pName: 字段名称.
func XListView_HitTest ¶
列表视_测试点击项, 检查坐标点所在项.
hEle: 元素句柄.
pPt: 坐标点.
pOutGroup: 接收组索引.
pOutItem: 接收项索引.
func XListView_HitTestOffset ¶
列表视_测试点击项扩展, 检查坐标点所在项, 自动添加滚动视图偏移量.
hEle: 元素句柄.
pPt: 坐标点.
pOutGroup: 接收做索引.
pOutItem: 接收项索引.
func XListView_Item_AddItemImage ¶
列表视_项添加图片, 返回项索引.
hEle: 元素句柄.
iGroup: 组索引.
hImage: 图片句柄.
iPos: 插入位置, -1添加到末尾.
func XListView_Item_AddItemImageEx ¶
列表视_项添加图片扩展, 返回项索引.
hEle: 元素句柄.
iGroup: 组索引.
pName: 字段名.
hImage: 图片句柄.
iPos: 插入位置, -1添加到末尾.
func XListView_Item_AddItemText ¶
列表视_项添加文本, 返回项索引.
hEle: 元素句柄.
iGroup: 组索引.
pValue: 值.
iPos: 插入位置, -1添加到末尾.
func XListView_Item_AddItemTextEx ¶
列表视_项添加文本扩展, 返回项索引.
hEle: 元素句柄.
iGroup: 组索引.
pName: 字段名.
pValue: 值.
iPos: 插入位置, -1添加到末尾.
func XListView_Item_GetImage ¶ added in v1.3.340
列表视_项取图片, 返回图片句柄.
hEle: 元素句柄.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
func XListView_Item_GetImageEx ¶
列表视_项获取图片扩展, 返回图片句柄.
hEle: 元素句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
func XListView_Item_GetText ¶ added in v1.3.340
列表视_项取文本, 返回文本内容.
hEle: 元素句柄.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
func XListView_Item_SetImage ¶
列表视_项置图片.
hEle: 元素句柄.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
hImage: 图片句柄.
func XListView_Item_SetImageEx ¶
列表视_项置图片扩展.
hEle: 元素句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 列名称.
hImage: 图片句柄.
func XListView_Item_SetText ¶
列表视_项置文本.
hEle: 元素句柄.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
pValue: 值.
func XListView_Item_SetTextEx ¶
列表视_项置文本扩展.
hEle: 元素句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 字段名.
pValue: 值.
func XListView_RefreshItem ¶
列表视_刷新指定项, 刷新指定项模板, 以便更新UI.
hEle: 元素句柄.
iGroup: 组索引.
iItem: 项索引, 如果为-1, 代表为组.
func XListView_SetDragRectColor ¶ added in v1.3.350
列表视_置拖动矩形颜色.
hEle: 元素句柄.
color: ARGB 颜色.
width: 线宽度.
func XListView_SetDrawItemBkFlags ¶
func XListView_SetDrawItemBkFlags(hEle int, nFlags xcc.List_DrawItemBk_Flag_) int
列表视_置项背景绘制标志, 置是否绘制指定状态下项的背景.
hEle: 元素句柄.
nFlags: 标志位: List_DrawItemBk_Flag_.
func XListView_SetItemTemplateXMLFromZipRes ¶ added in v1.3.380
func XListView_SetItemTemplateXMLFromZipRes(hEle int, id int32, pFileName string, pPassword string, hModule uintptr) bool
列表视_置项模板从资源ZIP.
hEle: 元素句柄.
id: RC资源ID.
pFileName: 文件名.
pPassword: zip密码.
hModule: 模块句柄, 可填0.
func XList_AddColumnImage ¶
列表_添加列图片.
hEle: 元素句柄.
nWidth: 列宽.
pName: 模板里绑定的name名. 在List内部存在有默认模板, name名是从name1到namen. 你可以理解为创建表头数据适配器后, 内部有一个Map来存储每一列的表头名(列名), 这个name名就是Map的Key, 这个函数就相当于给每一列的Key赋值, 然后List会根据这个name名从Map读取Value来显示表头到界面.
hImage: 图片句柄.
func XList_AddColumnImage2 ¶ added in v1.3.390
列表_添加列图片2, 返回列索引. 简化版本.
hEle: 元素句柄.
nWidth: 列宽度.
hImage: 图片句柄.
func XList_AddColumnText ¶
列表_添加列文本.
hEle: 元素句柄.
nWidth: 列宽.
pName: 模板里绑定的name名. 在List内部存在有默认模板, name名是从name1到namen. 你可以理解为创建表头数据适配器后, 内部有一个Map来存储每一列的表头名(列名), 这个name名就是Map的Key, 这个函数就相当于给每一列的Key赋值, 然后List会根据这个name名从Map读取Value来显示表头到界面.
pText: 文本.
func XList_AddColumnText2 ¶ added in v1.3.390
列表_添加列文本2, 返回列索引. 简化版本.
hEle: 元素句柄.
nWidth: 列宽度.
pText: 标题文本.
func XList_Create ¶
列表_创建, 创建列表元素, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XList_CreateAdapter ¶
列表_创建数据适配器, 创建数据适配器,根据绑定的项模板初始化数据适配器的列, 返回适配器句柄.
hEle: 元素句柄.
colExtend_count: 列延伸-预计列表总列数, 默认值0; 限制最大延伸范围, 避免超出范围, 增加不必要的字段.
func XList_CreateAdapters ¶ added in v1.3.390
列表_创建数据适配器2. 创建数据适配器,根据绑定的项模板初始化数据适配器的列(字段名); 数据适配器存储数据, UI对象根据绑定的字段名显示数据适配器中对应的数据; 此接口是简化接口, 合并了 xc.XList_CreateAdapter() 和 xc.XList_CreateAdapterHeader() 接口;
hEle: 元素句柄.
col_extend_count: 列延伸-预计列表总列数, 默认值0; 限制最大延伸范围, 避免超出范围, 增加不必要的字段. 例如默认模板是1列, 但是数据有5列,那么列延伸填5.
func XList_CreateEx ¶ added in v1.3.381
列表_创建Ex, 创建列表元素, 使用内置项模板, 自动创建数据适配器, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
col_extend_count: 列数量. 例如: 内置模板是1列, 如果数据有5列, 那么此参数填5.
func XList_GetHeaderColumnIndexFromHXCGUI ¶ added in v1.3.390
列表_取列表头对象所在列. 列表头, 获取当前对象所在模板实例, 属于列表头中哪一个列. 成功返回列索引, 否则返回 xcc.XC_ID_ERROR.
hEle: 元素句柄.
hXCGUI: 对象句柄.
func XList_GetHeaderItemIndexFromHXCGUI ¶
Deprecated
!这是旧版函数, 请使用 XList_GetHeaderColumnIndexFromHXCGUI
func XList_GetHeaderTemplateObject ¶
列表_取列表头模板对象, 列表头, 通过模板项ID, 获取实例化模板项ID对应的对象句柄.
hEle: 元素句柄.
iItem: 列表头项ID.
nTempItemID: 模板项ID.
func XList_GetRowHeight ¶ added in v1.3.390
列表_取行高度.
hEle: 元素句柄.
iRow: 行索引.
pHeight: 高度.
pSelHeight: 选中时高度.
func XList_GetRowHeightDefault ¶ added in v1.3.390
列表_取行默认高度.
hEle: 元素句柄.
pHeight: 高度.
pSelHeight: 选中时高度.
func XList_GetRowIndexFromHXCGUI ¶ added in v1.3.390
列表_取对象所在行. 获取当前对象所在模板实例, 属于列表中哪一行. 成功返回行索引, 否则返回 xcc.XC_ID_ERROR.
hEle: 元素句柄.
hXCGUI: 对象句柄, UI元素句柄或形状对象句柄.
func XList_GetTemplateObject ¶
列表_取项模板对象, 通过模板项ID, 获取实例化模板项ID对应的对象句柄.
hEle: 元素句柄.
iItem: 项索引.
iSubItem: 子项索引.
nTempItemID: 模板项itemID.
func XList_HitTestOffset ¶
列表_测试点击项扩展, 检查坐标点所在项, 自动添加滚动视图偏移量.
hEle: 元素句柄.
pPt: 坐标点.
piItem: 项索引.
piSubItem: 子项索引.
func XList_RefreshRow ¶ added in v1.3.390
列表_刷新指定行. 修改数据后, 刷新指定行模板, 以便更新数据到模板(如果当前行可见).
hEle: 元素句柄.
iRow: 行索引.
func XList_SetDragRectColor ¶ added in v1.3.350
列表_置拖动矩形颜色.
hEle: 元素句柄.
color: ARGB 颜色值.
width: 线宽度.
func XList_SetDrawItemBkFlags ¶
func XList_SetDrawItemBkFlags(hEle int, nFlags xcc.List_DrawItemBk_Flag_)
Deprecated
!这是旧版函数, 请使用 XList_SetDrawRowBkFlags
func XList_SetDrawRowBkFlags ¶ added in v1.3.390
func XList_SetDrawRowBkFlags(hEle int, nFlags xcc.List_DrawItemBk_Flag_)
列表_置行背景绘制标志. 设置是否绘制指定状态下行的背景.
hEle: 元素句柄.
nFlags: 标志位, xcc.List_DrawItemBk_Flag_.
func XList_SetItemTemplateXMLFromZipRes ¶ added in v1.3.380
func XList_SetItemTemplateXMLFromZipRes(hEle int, id int32, pFileName string, pPassword string, hModule uintptr) bool
列表_置项模板从资源ZIP. 从RC资源ZIP加载.
hEle: 元素句柄.
id: RC资源ID.
pFileName: 项模板文件名.
pPassword: zip密码.
hModule: 模块句柄, 可填0.
func XList_SetRowHeight ¶ added in v1.3.390
列表_置行高度.
hEle: 元素句柄.
iRow: 行索引.
nHeight: 高度.
nSelHeight: 选中时高度.
func XList_SetRowHeightDefault ¶ added in v1.3.390
列表_置行默认高度.
hEle: 元素句柄.
nHeight: 高度.
nSelHeight: 选中时高度.
func XList_SetSort ¶
列表_置排序, 设置排序属性.
hEle: 元素句柄.
iColumn: 列索引.
iColumnAdapter: 需要排序的数据在数据适配器中的列索引.
bEnable: 是否启用排序功能.
func XMenuBar_Create ¶
菜单条_创建, 创建菜单条元素; 如果指定了父为窗口, 默认调用XWnd_AddMenuBar()函数, 将菜单条添加到窗口非客户区. 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XMenu_AddItem ¶
菜单_添加项, 添加菜单项.
hMenu: 菜单句柄.
nID: 项ID.
pText: 文本内容.
nParentID: 父项ID.
nFlags: 标识, Menu_Item_Flag_.
func XMenu_AddItemIcon ¶
func XMenu_AddItemIcon(hMenu int, nID int32, pText string, nParentID int32, hIcon int, nFlags xcc.Menu_Item_Flag_)
菜单_添加项图标.
hMenu: 菜单句柄.
nID: 项ID.
pText: 文本内容.
nParentID: 父项ID.
hIcon: 菜单项图标句柄.
nFlags: 标识, Menu_Item_Flag_.
func XMenu_EnableDrawBackground ¶
菜单_启用用户绘制背景, 是否有用户绘制菜单背景, 如果启用XWM_MENU_DRAW_BACKGROUND和XE_MENU_DRAW_BACKGROUND事件有效.
hMenu: 菜单句柄.
bEnable: 是否启用.
func XMenu_EnableDrawItem ¶
菜单_启用用户绘制项, 是否有用户绘制菜单项, 如果启用XWM_MENU_DRAWITEM和XE_MENU_DRAWITEM事件有效.
hMenu: 菜单句柄.
bEnable: 是否启用.
func XMenu_InsertItem ¶
func XMenu_InsertItem(hMenu int, nID int32, pText string, nFlags xcc.Menu_Item_Flag_, insertID int32)
菜单_插入项.
hMenu: 菜单句柄.
nID: 项ID.
pText: 文本内容.
nFlags: 标识, Menu_Item_Flag_.
insertID: 插入位置ID.
func XMenu_InsertItemIcon ¶
func XMenu_InsertItemIcon(hMenu int, nID int32, pText string, hIcon int, nFlags xcc.Menu_Item_Flag_, insertID int32)
菜单_插入项图标.
hMenu: 菜单句柄.
nID: 项ID.
pText: 文本内容.
hIcon: 菜单项图标句柄.
nFlags: 标识, Menu_Item_Flag_.
insertID: 插入位置ID.
func XMenu_Popup ¶
func XMenu_Popup(hMenu int, hParentWnd uintptr, x, y int32, hParentEle int, nPosition xcc.Menu_Popup_Position_) bool
菜单_弹出.
hMenu: 菜单句柄.
hParentWnd: 父窗口真实句柄.
x: x坐标.
y: y坐标.
hParentEle: 父元素句柄, 如果该值不为NULL, hParentEle元素将接收菜单消息事件, 否则将由hParentWnd窗口接收菜单的消息事件.
nPosition: 弹出位置, Menu_Popup_Position_.
func XMenu_SetBorderSize ¶
菜单_置边框大小, 设置弹出菜单窗口边框大小.
hMenu: 菜单句柄.
nLeft: 边大小.
nTop: 边大小.
nRight: 边大小.
nBottom: 边大小.
func XMenu_SetItemFlags ¶
func XMenu_SetItemFlags(hMenu int, nID int32, uFlags xcc.Menu_Item_Flag_) bool
菜单_置项标志.
hMenu: 菜单句柄.
nID: 项ID.
uFlags: 标识, Menu_Item_Flag_.
func XMenu_SetItemWidth ¶ added in v1.3.330
菜单_置项宽度, 此宽度为文本显示区域宽度, 不包含侧边条和与文本间隔.
hMenu: 菜单句柄.
nID: 项ID.
nWidth: 指定文本区域宽度.
func XModalWnd_Attach ¶ added in v0.0.5
func XModalWnd_Attach(hWnd uintptr, XCStyle xcc.Window_Style_) int
模态窗口_附加窗口, 返回窗口资源句柄.
hWnd: 要附加的外部窗口句柄.
XCStyle: 炫彩窗口样式: Window_Style_.
func XModalWnd_Create ¶
func XModalWnd_Create(nWidth, nHeight int32, pTitle string, hWndParent uintptr, XCStyle xcc.Window_Style_) int
模态窗口_创建, 创建模态窗口; 当模态窗口关闭时, 会自动销毁模态窗口资源句柄.
nWidth: 宽度.
nHeight: 高度.
pTitle: 窗口标题内容.
hWndParent: 父窗口句柄.
XCStyle: 炫彩窗口样式: Window_Style_.
func XModalWnd_CreateEx ¶
func XModalWnd_CreateEx(dwExStyle int, dwStyle int, lpClassName string, x, y, cx, cy int32, pTitle string, hWndParent uintptr, XCStyle xcc.Window_Style_) int
模态窗口_创建扩展, 创建模态窗口, 增强功能.
dwExStyle: 窗口扩展样式.
dwStyle: 窗口样式.
lpClassName: 窗口类名.
x: 窗口左上角x坐标.
y: 窗口左上角y坐标.
cx: 窗口宽度.
cy: 窗口高度.
pTitle: 窗口名.
hWndParent: 父窗口.
XCStyle: GUI库窗口样式: Window_Style_.
func XModalWnd_DoModal ¶
func XModalWnd_DoModal(hWindow int) xcc.MessageBox_Flag_
模态窗口_启动, 启动显示模态窗口, 当窗口关闭时返回: MessageBox_Flag_Ok: 点击确定按钮退出, MessageBox_Flag_Cancel: 点击取消按钮退出, MessageBox_Flag_Other: 其他方式退出.
hWindow: 模态窗口句柄.
func XModalWnd_EndModal ¶
func XModalWnd_EndModal(hWindow int, nResult xcc.MessageBox_Flag_) int
模态窗口_结束, 结束模态窗口.
hWindow: 窗口句柄.
nResult: 用作XModalWnd_DoModal()的返回值. MessageBox_Flag_Ok: 点击确定按钮退出, MessageBox_Flag_Cancel: 点击取消按钮退出, MessageBox_Flag_Other: 其他方式退出.
func XMonthCal_Create ¶
月历_创建, 创建日期时间元素, 返回元素句柄.
x: x坐标.
y: y坐标.
cx: 宽度.
cy: 高度.
hParent: 父为窗口句柄或元素句柄.
func XMonthCal_SetTextColor ¶ added in v1.3.340
月历_置文本颜色.
hEle: 元素句柄.
nFlag: 1:周六, 周日文字颜色, 2:日期文字的颜色; 其它周文字颜色, 使用元素自身颜色.
color: ARGB 颜色值.
func XMsg_Create ¶ added in v1.3.12
func XMsg_Create(pTitle, pText string, nFlags xcc.MessageBox_Flag_, hWndParent uintptr, XCStyle xcc.Window_Style_) int
XMsg_Create 消息框_创建, 此窗口是一个模态窗口, 弹出窗口请调用 xc.XModalWnd_DoModal().
@param pTitle 标题. @param pText 内容文本. @param nFlags 标识: xcc.MessageBox_Flag_. @param hWndParent 父窗口句柄(真实的窗口句柄). @param XCStyle xcc.Window_Style_. @return int 返回消息框窗口句柄.
func XMsg_CreateEx ¶ added in v1.3.310
func XMsg_CreateEx(dwExStyle int, dwStyle int, lpClassName, pTitle, pText string, nFlags xcc.MessageBox_Flag_, hWndParent uintptr, XCStyle xcc.Window_Style_) int
XMsg_CreateEx 消息框_创建扩展, 此窗口是一个模态窗口, 弹出窗口请调用 xc.XModalWnd_DoModal().
@param dwExStyle 窗口扩展样式. @param dwStyle 窗口样式. @param lpClassName 窗口类名. @param pTitle 标题. @param pText 内容文本. @param nFlags 标识: xcc.MessageBox_Flag_ . @param hWndParent 父窗口句柄(真实的窗口句柄). @param XCStyle xcc.Window_Style_ . @return int 消息框窗口句柄.
func XNotifyMsg_Popup ¶ added in v1.3.310
func XNotifyMsg_Popup(position xcc.Position_Flag_, pTitle, pText string, hIcon int, skin xcc.NotifyMsg_Skin_) int
通知消息_弹出, 未实现, 预留接口.
position: 位置, Position_Flag_.
pTitle: 标题.
pText: 内容.
hIcon: 图标.
skin: 外观类型, NotifyMsg_Skin_.
func XNotifyMsg_PopupEx ¶ added in v1.3.310
func XNotifyMsg_PopupEx(position xcc.Position_Flag_, pTitle, pText string, hIcon int, skin xcc.NotifyMsg_Skin_, bBtnClose, bAutoClose bool, nWidth, nHeight int) int
通知消息_弹出扩展, 未实现, 预留接口.
position: 位置, Position_Flag_.
pTitle: 标题.
pText: 内容.
hIcon: 图标.
skin: 外观类型, NotifyMsg_Skin_.
bBtnClose: 是否启用关闭按钮.
bAutoClose: 是否自动关闭.
nWidth: 自定义宽度, -1(使用默认值).
nHeight: 自定义高度, -1(使用默认值).
func XNotifyMsg_SetBorderSize ¶ added in v1.3.310
通知消息_置边大小, 设置通知消息面板边大小.
hWindow: 通知消息所属窗口句柄, 如果未指定那么认为是桌面通知消息.
left: 左边.
top: 顶边.
right: 右边.
bottom: 底边.
func XNotifyMsg_SetCaptionHeight ¶ added in v1.3.310
通知消息_置标题高度.
hWindow: 通知消息所属窗口句柄, 如果未指定那么认为是桌面通知消息.
nHeight: 高度.
func XNotifyMsg_SetDuration ¶ added in v1.3.310
通知消息_置持续时间.
hWindow: 通知消息所属窗口句柄, 如果未指定那么认为是桌面通知消息.
duration: 持续时间.
func XNotifyMsg_SetParentMargin ¶ added in v1.3.310
通知消息_置父边距 设置通知消息与父对象的四边间隔.
hWindow: 通知消息所属窗口句柄, 如果未指定那么认为是桌面通知消息.
left: 左侧间隔, 未实现, 预留功能.
top: 顶部间隔.
right: 右侧间隔.
bottom: 底部间隔, 未实现, 预留功能.
func XNotifyMsg_SetSpace ¶ added in v1.3.310
通知消息_置间隔.
hWindow: 通知消息所属窗口句柄, 如果未指定那么认为是桌面通知消息.
nSpace: 间隔大小.
func XNotifyMsg_SetWidth ¶ added in v1.3.310
通知消息_置宽度, 设置默认宽度.
hWindow: 通知消息所属窗口句柄, 如果未指定那么认为是桌面通知消息.
nWidth: 宽度.
func XNotifyMsg_WindowPopup ¶ added in v1.3.310
func XNotifyMsg_WindowPopup(hWindow int, position xcc.Position_Flag_, pTitle, pText string, hIcon int, skin xcc.NotifyMsg_Skin_) int
通知消息_窗口中弹出, 使用基础元素作为面板, 弹出一个通知消息, 返回元素句柄, 通过此句柄可对其操作.
hWindow: 窗口句柄.
position: 位置, Position_Flag_.
pTitle: 标题.
pText: 内容.
hIcon: 图标.
skin: 外观类型, NotifyMsg_Skin_.
func XNotifyMsg_WindowPopupEx ¶ added in v1.3.310
func XNotifyMsg_WindowPopupEx(hWindow int, position xcc.Position_Flag_, pTitle, pText string, hIcon int, skin xcc.NotifyMsg_Skin_, bBtnClose, bAutoClose bool, nWidth, nHeight int) int
通知消息_窗口中弹出扩展, 使用基础元素作为面板, 弹出一个通知消息, 返回元素句柄, 通过此句柄可对其操作.
hWindow: 窗口句柄.
position: 位置, Position_Flag_.
pTitle: 标题.
pText: 内容.
hIcon: 图标.
skin: 外观类型, NotifyMsg_Skin_.
bBtnClose: 是否启用关闭按钮.
bAutoClose: 是否自动关闭.
nWidth: 自定义宽度, -1(使用默认值).
nHeight: 自定义高度, -1(使用默认值).
func XObj_GetType ¶ added in v0.0.4
func XObj_GetType(hXCGUI int) xcc.XC_OBJECT_TYPE
XObj_GetType 炫彩对象_取类型, 获取对象最终类型, 返回对象类型: XC_.
hXCGUI: 对象句柄.
func XObj_GetTypeBase ¶ added in v0.0.4
func XObj_GetTypeBase(hXCGUI int) xcc.XC_OBJECT_TYPE
XObj_GetTypeBase 炫彩对象_取基础类型, 获取对象的基础类型, 返回对象类型, 以下类型之一: XC_ERROR, XC_WINDOW, XC_ELE, XC_SHAPE, XC_ADAPTER.
hXCGUI: 对象句柄.
func XObj_GetTypeEx ¶ added in v0.0.4
func XObj_GetTypeEx(hXCGUI int) xcc.XC_OBJECT_TYPE_EX
XObj_GetTypeEx 炫彩对象_取类型扩展, 获取对象扩展类型, 返回对象扩展类型: button_type_ , element_type_ , xc_ex_error.
hXCGUI: 对象句柄.
func XObj_SetTypeEx ¶ added in v1.3.12
func XObj_SetTypeEx(hXCGUI int, nType xcc.XC_OBJECT_TYPE_EX) int
XObj_SetTypeEx 炫彩对象_置类型扩展, 如果是按钮, 请使用按钮的增强接口 XBtn_SetTypeEx().
hXCGUI: 对象句柄.
nType: 对象扩展类型: button_type_ , element_type_ , xc_ex_error.
func XPGrid_EnableExpandCurGroupOnly ¶ added in v1.3.390
PGrid_启用仅扩展当前组. TODO: 这个api未封装到类, 官方文档里尚未说明具体是干什么的.
hEle: 元素句柄.
bEnabel: 是否启用.
func XPane_GetState ¶
func XPane_GetState(hEle int) xcc.Pane_State_
窗格_取状态, 获取窗格停靠状态, 返回: Pane_State_.
hEle: 元素句柄.
func XPane_HidePane ¶
XPane_HidePane 窗格_隐藏.
@param hEle 元素句柄. @param bGroupActivate 当为窗格组成员时, 延迟处理窗格组成员激活的切换. @return int
func XPane_ShowPane ¶
XPane_ShowPane 窗格_显示.
@param hEle 元素句柄. @param bGroupActivate 如果是窗格组成员, 那么窗格组切换当前窗格为显示状态. @return int
func XProgBar_Create ¶
进度条_创建, 创建进度条元素, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄.如果是窗口资源句柄将被添加到窗口.
func XProgBar_EnableStretch ¶ added in v1.3.12
进度条_启用缩放, 缩放进度贴图为当前进度区域(当前进度所显示区域), 否则为整体100进度区域.
hEle: 元素句柄.
bStretch: 缩放.
func XRes_EnableDelayLoad ¶
func XRes_EnableDelayLoad(bEnable bool)
资源_启用延迟加载, 启用延迟加载; 图片文件, 列表项模板文件.
bEnable: 是否启用.
func XRes_SetLoadFileCallback ¶
func XRes_SetLoadFileCallback(pFun FunLoadFile)
资源_置文件加载回调, 设置文件加载回调函数.
pFun: 回调函数.
func XSBar_Create ¶
滚动条_创建, 创建滚动条元素, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XSView_Create ¶
滚动视_创建, 创建滚动视图元素, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XSView_SetLineSize ¶
滚动视_置滚动单位大小, 设置滚动单位大小, 如果内容改变返回TRUE否则返回FALSE.
hEle: 元素句柄.
nWidth: 宽度.
nHeight: 高度.
func XShapeGif_Create ¶
XShapeGif_Create 形状GIF_创建, 创建形状对象GIF, 成功返回形状对象GIF句柄, 否则返回NULL.
x: X坐标.
y: Y坐标.
cx: 宽度.
cy: 高度.
hParent: 父对象句柄.
func XShapeGroupBox_Create ¶
形状组框_创建, 创建组框形状对象, 返回句柄.
x: X坐标.
y: Y坐标.
cx: 宽度.
cy: 高度.
pName: 名称.
hParent: 父对象句柄.
func XShapeGroupBox_GetTextOffset ¶
形状组框_取文本偏移, 获取文本偏移量.
hShape: 形状对象句柄.
pOffsetX: X坐标偏移量.
pOffsetY: Y坐标偏移量.
func XShapeGroupBox_SetTextOffset ¶
形状组框_置文本偏移, 设置文本偏移量.
hShape: 形状对象句柄.
offsetX: 水平偏移.
offsetY: 垂直偏移.
func XShapePic_Create ¶
XShapePic_Create 形状图片_创建, 创建形状对象-图片, 成功返回图片对象句柄, 否则返回NULL.
x: x坐标.
y: y坐标.
cx: 宽度.
cy: 高度.
hParent: 父对象句柄.
func XShapeText_Create ¶
形状文本_创建, 创建形状对象文本.
x: X坐标.
y: Y坐标.
cx: 宽度.
cy: 高度.
pName: 文本内容.
hParent: 父对象句柄.
func XShapeText_SetTextAlign ¶
func XShapeText_SetTextAlign(hTextBlock int, align xcc.TextFormatFlag_) int
形状文本_置文本对齐.
hTextBlock: 形状对象文本句柄.
align: 文本对齐方式, TextFormatFlag_, TextAlignFlag_, TextTrimming_.
func XShape_GetContentSize ¶
形状_取内容大小 ,仅计算有效内容, 填充父, 权重依赖父级所以无法计算.
hShape: 形状对象句柄.
pSize: 接收返回内容大小值.
func XSliderBar_Create ¶
滑动条_创建, 创建滑动条元素, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XSvg_GetRotate ¶ added in v1.3.310
SVG_取旋转.
hSvg: SVG句柄.
pAngle: 返回角度.
pX: 返回 旋转中心点X.
pY: 返回 旋转中心点Y.
pbOffset: 返回TRUE: 旋转中心点相对于自身中心偏移, FALSE:使用绝对坐标.
func XSvg_GetUserStrokeColor ¶ added in v1.3.310
SVG_取用户笔触颜色.
hSvg: SVG句柄.
pColor: 返回颜色值, AGBR颜色.
pStrokeWidth: .
func XSvg_LoadRes ¶ added in v1.3.310
SVG_加载从资源, 返回SVG句柄.
id: 资源ID.
pType: 资源类型.在rc资源文件中.
hModule: 从指定模块加载.
func XSvg_LoadZip ¶ added in v1.3.310
SVG_加载从ZIP, 返回SVG句柄.
pZipFileName: zip文件名.
pFileName: svg文件名.
pPassword: zip密码.
func XSvg_LoadZipMem ¶ added in v1.3.350
SVG_加载从内存ZIP.
data: zip数据.
pFileName: svg文件名.
pPassword: zip密码.
func XSvg_LoadZipRes ¶ added in v1.3.380
SVG_加载从资源ZIP, 返回SVG句柄.
id: 资源ID.
pFileName: svg文件名.
pPassword: zip密码.
hModule: 模块句柄, 可填0.
func XSvg_SetRotate ¶ added in v1.3.310
SVG_置旋转.
hSvg: SVG句柄.
angle: 角度.
x: 旋转中心点X.
y: 旋转中心点Y.
bOffset: TRUE: 旋转中心点相对于自身中心偏移, FALSE:使用绝对坐标.
func XSvg_SetUserFillColor ¶ added in v1.3.310
SVG_置用户填充颜色, 用户颜色将覆盖默认样式.
hSvg: SVG句柄.
color: 颜色, AGBR颜色.
bEnable: 是否有效.
func XSvg_SetUserStrokeColor ¶ added in v1.3.310
SVG_置用户笔触颜色, 用户颜色将覆盖默认样式.
hSvg: SVG句柄.
color: 颜色, AGBR颜色.
strokeWidth: 笔触宽度.
bEnable: 是否有效.
func XTabBar_Create ¶
TAB条_创建, 创建tabBar元素, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XTabBar_GetindexByEle ¶
TAB条_取标签位置索引, 获取标签按钮位置索引, 成功返回索引值, 否则返回 XC_ID_ERROR.
hEle: 元素句柄.
hLabel: 标签按钮句柄.
func XTabBar_SetPadding ¶
TAB条_置边距, 设置内容与边框的间隔大小.
hEle: 元素句柄.
left: 左边间隔大小.
top: 上边间隔大小.
right: 右边间隔大小.
bottom: 下边间隔大小.
func XTable_SetItemBkColor ¶
表格_置项背景色.
hShape: 形状对象句柄.
iRow: 行索引.
iCol: 列索引.
color: 颜色.
bColor: 是否使用.
func XTable_SetItemLine ¶
func XTable_SetItemLine(hShape int, iRow1 int, iCol1 int, iRow2 int, iCol2 int, nFlag int, color int) int
表格_置项线.
hShape: 形状对象句柄.
iRow1: 行索引1.
iCol1: 列索引1.
iRow2: 行索引2.
iCol2: 列索引2.
nFlag: 标识, Table_Line_Flag_, 暂时没有, 填0.
color: 颜色.
func XTable_SetItemPadding ¶
func XTable_SetItemPadding(hShape int, leftSize int, topSize int, rightSize int, bottomSize int) int
表格_置项内填充.
hShape: 形状对象句柄.
leftSize: 内填充大小.
topSize: 内填充大小.
rightSize: 内填充大小.
bottomSize: 内填充大小.
func XTable_SetItemTextAlign ¶
表格_置项文本对齐.
hShape: 形状对象句柄.
iRow: 行索引.
iCol: 列索引.
nAlign: 对齐方式, TextFormatFlag_, TextAlignFlag_, TextTrimming_.
func XTable_SetItemTextColor ¶
表格_置项文本色.
hShape: 形状对象句柄.
iRow: 行索引.
iCol: 列索引.
color: 颜色.
bColor: 是否使用.
func XTemp_Create ¶
func XTemp_Create(nType xcc.ListItemTemp_Type_) int
模板_创建, 创建项模板, 返回模板句柄.
nType: 模板类型, xcc.ListItemTemp_Type_.
func XTemp_CreateNode ¶
func XTemp_CreateNode(nType xcc.XC_OBJECT_TYPE) int
模板_创建节点.
nType: 对象类型: xcc.XC_OBJECT_TYPE.
func XTemp_GetType ¶
func XTemp_GetType(hTemp int) xcc.ListItemTemp_Type_
模板_取类型, 获取列表项模板类型, 返回: xcc.ListItemTemp_Type_.
hTemp: 列表项模板句柄.
func XTemp_List_InsertNode ¶ added in v1.3.360
项模板_列表_插入节点.
hTemp: 列表项模板句柄.
index: 插入位置索引.
pNode: 节点指针.
func XTemp_List_MoveColumn ¶ added in v1.3.360
项模板_列表_移动列, 将指定列移动到目标位置.
hTemp: 列表项模板句柄.
iColSrc: 源列索引.
iColDest: 目标列索引.
func XTemp_Load ¶
func XTemp_Load(nType xcc.ListItemTemp_Type_, pFileName string) int
模板_加载从文件, 列表项模板文件载入, 返回模板句柄.
nType: 模板类型, xcc.ListItemTemp_Type_.
pFileName: 文件名.
func XTemp_LoadEx ¶
func XTemp_LoadEx(nType xcc.ListItemTemp_Type_, pFileName string, pOutTemp1 *int, pOutTemp2 *int) bool
模板_加载从文件扩展, 加载列表项模板从文件.
nType: 模板类型, xcc.ListItemTemp_Type_.
pFileName: 文件名.
pOutTemp1: 返回模板句柄1, 项模板.
pOutTemp2: 返回模板句柄2, 列表头模板或列表视组模板.
func XTemp_LoadFromMem ¶ added in v1.3.380
func XTemp_LoadFromMem(nType xcc.ListItemTemp_Type_, data []byte) int
项模板_加载从内存. 加载列表项模板文件从内存, 返回模板句柄.
nType: 模板类型, xcc.ListItemTemp_Type_.
data: 模板文件数据.
func XTemp_LoadFromMemEx ¶ added in v1.3.380
func XTemp_LoadFromMemEx(nType xcc.ListItemTemp_Type_, data []byte, pOutTemp1 *int, pOutTemp2 *int) bool
项模板_加载从内存扩展. 加载列表项模板文件从内存.
nType: 模板类型, xcc.ListItemTemp_Type_.
data: 模板文件数据.
pOutTemp1: 返回模板句柄1, 项模板.
pOutTemp2: 返回模板句柄2, 列表头模板或列表视组模板.
func XTemp_LoadFromString ¶
func XTemp_LoadFromString(nType xcc.ListItemTemp_Type_, pStringXML string) int
模板_加载从字符串, 加载列表项模板文件从内存字符串.
nType: 模板类型, xcc.ListItemTemp_Type_.
pStringXML: 字符串.
func XTemp_LoadFromStringEx ¶
func XTemp_LoadFromStringEx(nType xcc.ListItemTemp_Type_, pStringXML string, pOutTemp1 *int, pOutTemp2 *int) bool
模板_加载从字符串扩展, 加载列表项模板文件从内存字符串.
nType: 模板类型, xcc.ListItemTemp_Type_.
pStringXML: 字符串内容.
pOutTemp1: 返回模板句柄1, 项模板.
pOutTemp2: 返回模板句柄2, 列表头模板或列表视组模板.
func XTemp_LoadZip ¶
func XTemp_LoadZip(nType xcc.ListItemTemp_Type_, pZipFile string, pFileName string, pPassword string) int
模板_加载从ZIP, 加载列表项模板从zip压缩包中, 返回模板句柄.
nType: 模板类型, xcc.ListItemTemp_Type_.
pZipFile: zip文件.
pFileName: 文件名.
pPassword: zip密码.
func XTemp_LoadZipEx ¶
func XTemp_LoadZipEx(nType xcc.ListItemTemp_Type_, pZipFile string, pFileName string, pPassword string, pOutTemp1 *int, pOutTemp2 *int) bool
模板_加载从ZIP扩展, 加载列表项模板从zip压缩包中.
nType: 模板类型, xcc.ListItemTemp_Type_.
pZipFile: zip文件.
pFileName: 文件名.
pPassword: zip密码.
pOutTemp1: 返回模板句柄1, 项模板.
pOutTemp2: 返回模板句柄2, 列表头模板或列表视组模板.
func XTemp_LoadZipMem ¶
func XTemp_LoadZipMem(nType xcc.ListItemTemp_Type_, data []byte, pFileName string, pPassword string) int
模板_加载从内存ZIP, 加载列表项模板从内存zip压缩包中, 返回模板句柄.
nType: 模板类型, xcc.ListItemTemp_Type_.
data: 模板文件数据.
pFileName: 文件名.
pPassword: zip密码.
func XTemp_LoadZipMemEx ¶
func XTemp_LoadZipMemEx(nType xcc.ListItemTemp_Type_, data []byte, pFileName string, pPassword string, pOutTemp1 *int, pOutTemp2 *int) bool
模板_加载从内存ZIP扩展, 加载列表项模板从内存zip压缩包中.
nType: 模板类型, xcc.ListItemTemp_Type_.
data: 模板文件数据.
pFileName: 文件名.
pPassword: zip密码.
pOutTemp1: 返回模板句柄1, 项模板.
pOutTemp2: 返回模板句柄2, 列表头模板或列表视组模板.
func XTemp_LoadZipRes ¶ added in v1.3.380
func XTemp_LoadZipRes(nType xcc.ListItemTemp_Type_, id int32, pFileName string, pPassword string, hModule uintptr) int
项模板_加载从资源ZIP. 加载列表项模板文件从RC资源ZIP, 返回模板句柄.
nType: 模板类型, xcc.ListItemTemp_Type_.
id: RC资源ID.
pFileName: 模板文件名.
pPassword: zip密码.
hModule: 模块句柄, 可填0.
func XTemp_LoadZipResEx ¶ added in v1.3.380
func XTemp_LoadZipResEx(nType xcc.ListItemTemp_Type_, id int32, pFileName string, pPassword string, pOutTemp1 *int, pOutTemp2 *int, hModule uintptr) int
项模板_加载从资源ZIP扩展. 加载列表项模板文件从RC资源ZIP, 返回模板句柄.
nType: 模板类型, xcc.ListItemTemp_Type_.
id: RC资源ID.
pFileName: 模板文件名.
pPassword: zip密码.
pOutTemp1: 返回模板句柄1, 项模板.
pOutTemp2: 返回模板句柄2, 列表头模板或列表视组模板.
hModule: 模块句柄, 可填0.
func XTextLink_Create ¶
文本链接_创建, 创建静态文本链接元素, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
pName: 文本内容.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XTextLink_SetUnderlineColorLeave ¶
文本链接_置离开状态下划线颜色, 设置下划线颜色, 鼠标离开状态.
hEle: 元素句柄.
color: ARGB 颜色值.
func XTextLink_SetUnderlineColorStay ¶
文本链接_置停留状态下划线颜色, 置下划线颜色, 鼠标停留状态.
hEle: 元素句柄.
color: ARGB 颜色值.
func XToolBar_Create ¶
工具条_创建, 创建工具条元素, 返回元素句柄; 如果指定了父为窗口, 默认调用XWnd_AddToolBar()函数, 将工具条添加到窗口非客户区.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XToolBar_InsertEle ¶
工具条_插入元素, 插入元素到工具条, 返回插入位置索引.
hEle: 元素句柄.
hNewEle: 将要插入的元素.
index: 插入位置索引, (-1)插入末尾.
func XToolBar_InsertSeparator ¶
工具条_插入分割栏, 插入分隔符到工具条, 返回插入位置索引.
hEle: 元素句柄.
index: 插入位置索引, (-1)插入末尾.
color: ARGB 颜色.
func XTrayIcon_SetCallbackMessage ¶ added in v1.3.381
func XTrayIcon_SetCallbackMessage(user_message uint32)
托盘图标_置回调消息. 设置用户自定义的回调消息类型, 触发事件后, 系统会发送到此消息.
user_message: 用户自定义消息, 界面库默认定义消息为: xcc.XWM_TRAYICON.
func XTrayIcon_SetIcon ¶ added in v1.3.381
func XTrayIcon_SetIcon(hIcon uintptr)
托盘图标_置图标. 设置图标.
hIcon: 图标句柄.
func XTrayIcon_SetPopupBalloon ¶ added in v1.3.381
func XTrayIcon_SetPopupBalloon(pTitle, pText string, hBalloonIcon uintptr, flags xcc.TrayIcon_Flag_)
托盘图标_置弹出气泡. 设置弹出气泡信息.
pTitle: 弹出气泡标题.
pText: 弹出气泡内容.
hBalloonIcon: 气泡图标. 可填0.
flags: 标识, 可设置默认图标类型, 禁用声音等: xcc.TrayIcon_Flag_
func XTrayIcon_SetTips ¶ added in v1.3.381
func XTrayIcon_SetTips(pTips string)
托盘图标_置提示文本. 设置工具提示内容.
pTips: 提示文本内容, 长度不能超过127个字符.
func XTree_Create ¶
XTree_Create 列表树_创建, 创建树元素, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
func XTree_CreateEx ¶ added in v1.3.381
XTree_CreateEx 列表树_创建Ex, 创建树元素, 使用内置项模板, 自动创建数据适配器, 返回元素句柄.
x: 元素x坐标.
y: 元素y坐标.
cx: 宽度.
cy: 高度.
hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素.
col_extend_count: 列数量. 例如: 内置模板是1列, 如果数据有5列, 那么此参数填5.
func XTree_EnableConnectLine ¶
列表树_启用连接线, 启用或禁用显示项的连接线.
hEle: 元素句柄.
bEnable: 是否启用.
bSolid: 实线或虚线; TRUE: 实线, FALSE: 虚线.
func XTree_GetItemHeight ¶
列表树_取项高度.
hEle: 元素句柄.
nID: 项ID.
pHeight: 接收返回高度.
pSelHeight: 接收返回值, 当项选中时的高度.
func XTree_GetItemHeightDefault ¶
列表树_取项默认高度.
hEle: 元素句柄.
pHeight: 接收返回高度.
pSelHeight: 接收返回值, 当项选中时的高度.
func XTree_GetItemIDFromHXCGUI ¶
列表树_取对象所在项, 获取当前对象所在模板实例, 属于列表树中哪一个项. 成功返回项ID, 否则返回XC_ID_ERROR.
hEle: 元素句柄.
hXCGUI: 对象句柄.
func XTree_GetTemplateObject ¶
列表树_取模板对象, 通过模板项ID, 获取实例化模板项ID对应的对象句柄.
hEle: 元素句柄.
nID: 树项ID.
nTempItemID: 模板项ID.
func XTree_MoveItem ¶
列表树_移动项, 移动项的位置.
hEle: 元素句柄.
nMoveItem: 要移动的项ID.
nDestItem: 目标项ID, 参照位置.
nFlag: 0:目标前面, 1:目标后面, 2:目标子项首, 3:目标子项尾.
func XTree_SetDrawItemBkFlags ¶
func XTree_SetDrawItemBkFlags(hEle int, nFlags xcc.List_DrawItemBk_Flag_)
列表树_置项背景绘制标志, 设置是否绘制指定状态下项的背景.
hEle: 元素句柄.
nFlags: 标志位: xcc.List_DrawItemBk_Flag_.
func XTree_SetItemTemplateXMLFromZipRes ¶ added in v1.3.380
func XTree_SetItemTemplateXMLFromZipRes(hEle int, id int32, pFileName string, pPassword string, hModule uintptr) bool
列表树_置项模板从资源ZIP.
hEle: 元素句柄.
id: RC资源ID.
pFileName: 文件名.
pPassword: zip密码.
hModule: 模块句柄, 可填0.
func XTree_SetItemTemplateXMLSelFromString ¶
列表树_置选择项模板从字符串, 设置项模板文件, 项选中状态.
hEle: 元素句柄.
pStringXML: 字符串.
func XUI_EnableCSS ¶
XUI_EnableCSS 可视对象_启用CSS. 启用或禁用样式, 并且覆盖内嵌子元素属性, 例如: 滚动视图上的滚动条, 滚动条上的按钮.
@param hXCGUI 对象句柄. @param bEnable 是否启用.
func XUI_EnableCssEx ¶ added in v1.3.390
XUI_EnableCssEx 可视对象_启用CSS, 启用或禁用样式, 仅设置自身属性, 不包含内嵌子元素属性, 例如:滚动视图上的滚动条, 滚动条上的按钮
@param hXCGUI 对象句柄. @param bEnable 是否启用.
func XUI_GetStyle ¶
func XUI_GetStyle(hXCGUI int) xcc.XC_OBJECT_STYLE
XUI_GetStyle 可视对象_取样式, 获取UI对象样式
@param hXCGUI 对象句柄. @return xcc.XC_OBJECT_STYLE 返回: xcc.Button_Style_ , xcc.Element_Style_ , xcc.ListBox_Style_.
func XUI_SetCssName ¶
XUI_SetCssName 可视对象_置CSS名称, 设置CSS[套用样式]名称.
@param hXCGUI 对象句柄. @param pName 套用样式名称. @return int
func XUI_SetStyle ¶
func XUI_SetStyle(hXCGUI int, nStyle xcc.XC_OBJECT_STYLE) int
XUI_SetStyle 可视对象_置样式, 设置UI对象样式.
@param hXCGUI 对象句柄. @param nStyle xcc.XC_OBJECT_STYLE, 样式值: xcc.Button_Style_ , xcc.Element_Style_ , xcc.ListBox_Style_. @return int
func XWidget_LayoutItem_EnableSwap ¶
窗口组件_布局项_启用交换, 根据水平垂直布局变换, 交换属性(宽度,高度,最小宽度,最小高度).
hXCGUI: UI对象句柄.
bEnable: 是否启用.
func XWidget_LayoutItem_GetHeight ¶
func XWidget_LayoutItem_GetHeight(hXCGUI int, pType *xcc.Layout_Size_, pHeight *int32) int
窗口组件_布局项_取高度.
hXCGUI: UI对象句柄.
pType: 返回类型.
pHeight: 返回高度.
func XWidget_LayoutItem_GetWidth ¶
func XWidget_LayoutItem_GetWidth(hXCGUI int, pType *xcc.Layout_Size_, pWidth *int32) int
窗口组件_布局项_取宽度.
hXCGUI: UI对象句柄.
pType: 返回类型.
pWidth: 返回宽度.
func XWidget_LayoutItem_SetAlign ¶
func XWidget_LayoutItem_SetAlign(hXCGUI int, nAlign xcc.Layout_Align_Axis_) int
窗口组件_布局项_置对齐, 根据水平垂直轴变化对齐.
hXCGUI: UI对象句柄.
nAlign: 对齐方式: xcc.Layout_Align_Axis_.
func XWidget_LayoutItem_SetHeight ¶
func XWidget_LayoutItem_SetHeight(hXCGUI int, nType xcc.Layout_Size_, nHeight int32) int
窗口组件_布局项_置高度.
hXCGUI: UI对象句柄.
nType: 类型: xcc.Layout_Size_.
nHeight: 高度.
func XWidget_LayoutItem_SetMinSize ¶
窗口组件_布局项_置最小大小, 限制大小仅针对缩放有效(自动, 填充父, 比例, 百分比).
hXCGUI: UI对象句柄.
width: 最小宽度.
height: 最小高度.
func XWidget_LayoutItem_SetPosition ¶
窗口组件_布局项_置位置, 相对位置, 值大于等于0有效.
hXCGUI: UI对象句柄.
left: 左边距离.
top: 上边距离.
right: 右边距离.
bottom: 下边距离.
func XWidget_LayoutItem_SetWidth ¶
func XWidget_LayoutItem_SetWidth(hXCGUI int, nType xcc.Layout_Size_, nWidth int32) int
窗口组件_布局项_置宽度.
hXCGUI: UI对象句柄.
nType: 类型: xcc.Layout_Size_.
nWidth: 宽度.
func XWnd_AddBkBorder ¶ added in v1.3.310
窗口_添加背景边框.
hWindow: 窗口句柄.
nState: 组合状态.
color: ARGB 颜色.
width: 线宽.
func XWnd_AddBkFill ¶ added in v1.3.310
func XWnd_AddBkFill(hWindow int, nState xcc.Window_State_Flag_, color int) int
窗口_添加背景填充.
hWindow: 窗口句柄.
nState: 组合状态.
color: ARGB 颜色.
func XWnd_AddBkImage ¶ added in v1.3.310
func XWnd_AddBkImage(hWindow int, nState xcc.Window_State_Flag_, hImage int) int
窗口_添加背景图片.
hWindow: 窗口句柄.
nState: 组合状态.
hImage: 图片句柄.
func XWnd_AdjustLayoutEx ¶
func XWnd_AdjustLayoutEx(hWindow int, nFlags xcc.AdjustLayout_) int
窗口_调整布局扩展.
hWindow: 窗口句柄.
nFlags: 调整布局标识位: xcc.AdjustLayout_.
func XWnd_Attach ¶ added in v0.0.5
func XWnd_Attach(hWnd uintptr, XCStyle xcc.Window_Style_) int
窗口_附加窗口, 返回窗口资源句柄.
hWnd: 要附加的外部窗口句柄.
XCStyle: 炫彩窗口样式: Window_Style_.
func XWnd_ClientToScreen ¶ added in v1.3.380
窗口_客户区坐标点到屏幕坐标点. 封装的系统API: ClientToScreen, 内部做了DPI适配.
hWindow: 窗口句柄.
pPt: 接收返回坐标点.
func XWnd_Create ¶
func XWnd_Create(x, y, cx, cy int32, pTitle string, hWndParent uintptr, XCStyle xcc.Window_Style_) int
窗口_创建, 返回: GUI库窗口资源句柄.
x: 窗口左上角x坐标.
y: 窗口左上角y坐标.
cx: 窗口宽度.
cy: 窗口高度.
pTitle: 窗口标题.
hWndParent: 父窗口.
XCStyle: GUI库窗口样式, Window_Style_.
func XWnd_CreateEx ¶
func XWnd_CreateEx(dwExStyle int, dwStyle int, lpClassName string, x int, y int, cx int, cy int, pTitle string, hWndParent uintptr, XCStyle xcc.Window_Style_) int
窗口_创建扩展, 返回: GUI库窗口资源句柄.
dwExStyle: 窗口扩展样式.
dwStyle: 窗口样式.
lpClassName: 窗口类名.
x: 窗口左上角x坐标.
y: 窗口左上角y坐标.
cx: 窗口宽度.
cy: 窗口高度.
pTitle: 窗口名.
hWndParent: 父窗口.
XCStyle: GUI库窗口样式, Window_Style_.
func XWnd_GetButton ¶ added in v1.3.12
func XWnd_GetButton(hWindow int, nFlag xcc.Window_Style_) int
窗口_取控制按钮, 返回按钮句柄.
hWindow: 窗口句柄.
nFlag: xcc.Window_Style_ . 可用值: xcc.Window_Style_Btn_Min , xcc.Window_Style_Btn_Max , xcc.Window_Style_Btn_Close .
func XWnd_GetCaretInfo ¶ added in v1.3.12
窗口_取插入符信息, 获取插入符信息, 返回: 插入符元素句柄.
hWindow: 窗口句柄.
pX: 接收返回x坐标.
pY: 接收返回y坐标.
pWidth: 接收返回宽度.
pHeight: 接收返回高度.
func XWnd_GetCursorPos ¶ added in v1.3.380
窗口_取光标位置. 封装的系统API: GetCursorPos, 内部做了DPI适配.
hWindow: 窗口句柄.
pPt: 接收返回坐标点.
func XWnd_GetShadowInfo ¶
func XWnd_GetShadowInfo(hWindow int, pnSize, pnDepth, pnAngeleSize *int32, pbRightAngle *bool, pColor *int) int
窗口_取阴影信息.
hWindow: 窗口句柄.
pnSize: 阴影大小.
pnDepth: 阴影深度.
pnAngeleSize: 圆角阴影内收大小 .
pbRightAngle: 是否强制直角.
pColor: 阴影颜色.
func XWnd_GetTransparentType ¶
func XWnd_GetTransparentType(hWindow int) xcc.Window_Transparent_
窗口_取透明类型, 返回: xcc.Window_Transparent_.
hWindow: 窗口句柄.
func XWnd_RectToDPI ¶ added in v1.3.380
窗口_坐标转换DPI. 窗口客户区坐标转换到缩放后DPI坐标.
hWindow: 窗口句柄.
pRect: 接收返回坐标.
func XWnd_RedrawRect ¶
窗口_重绘指定区域.
hWindow: 窗口资源句柄.
pRect: 需要重绘的区域坐标.
bImmediate: TRUE立即重绘, FALSE放入消息队列延迟重绘.
func XWnd_RegEventC1Ex ¶ added in v1.3.380
窗口_注册事件C1Ex, 和非Ex版相比只是最后一个参数不同.
hWindow: 窗口句柄.
nEvent: 事件类型: xcc.WM_, xcc.XWM_.
pFun: 事件函数指针, 使用 syscall.NewCallback() 生成.
func XWnd_RegEventCEx ¶ added in v1.3.380
窗口_注册事件CEx, 和非Ex版相比只是最后一个参数不同.
hWindow: 窗口句柄.
nEvent: 事件类型: xcc.WM_, xcc.XWM_ .
pFun: 事件函数指针, 使用 syscall.NewCallback() 生成.
func XWnd_RemoveEventCEx ¶ added in v1.3.380
窗口_移除事件CEx, 和非Ex版相比只是最后一个参数不同.
hWindow: 窗口句柄.
nEvent: 事件类型: xcc.WM_, xcc.XWM_.
pFun: 事件函数指针, 使用 syscall.NewCallback() 生成.
func XWnd_ScreenToClient ¶ added in v1.3.380
窗口_屏幕坐标点到客户区坐标点. 封装的系统API: ScreenToClient(), 内部做了DPI适配.
hWindow: 窗口句柄.
pPt: 接收返回坐标点.
func XWnd_SetBorderSize ¶
窗口_置边大小.
hWindow: 窗口句柄.
left: 窗口左边大小.
top: 窗口上边大小.
right: 窗口右边大小.
bottom: 窗口底部大小.
func XWnd_SetCaptionMargin ¶ added in v1.3.320
窗口_置标题外间距, 设置标题内容(图标, 标题, 控制按钮)外间距.
hWindow: 窗口句柄.
left: 左边间距.
top: 上边间距.
right: 右边间距.
bottom: 下边间距.
func XWnd_SetCaretPos ¶
窗口_置插入符位置, 设置插入符位置.
hWindow: 窗口句柄.
x: x坐标.
y: y坐标.
width: 宽度.
height: 高度.
bUpdate: 是否立即更新UI.
func XWnd_SetDragBorderSize ¶
窗口_置拖动边框大小.
hWindow: 窗口句柄.
left: 窗口左边大小.
top: 窗口上边大小.
right: 窗口右边大小.
bottom: 窗口底边大小.
func XWnd_SetPadding ¶
窗口_置布局内填充大小.
hWindow: 窗口句柄.
left: 左边大小.
top: 上边大小.
right: 右边大小.
bottom: 下边大小.
func XWnd_SetShadowInfo ¶
func XWnd_SetShadowInfo(hWindow, nSize int, nDepth byte, nAngeleSize int, bRightAngle bool, color int) int
窗口_置阴影信息.
hWindow: 窗口句柄.
nSize: 阴影大小.
nDepth: 阴影深度, 0-255.
nAngeleSize: 圆角阴影内收大小.
bRightAngle: 是否强制直角.
color: 阴影颜色.
func XWnd_SetTransparentType ¶
func XWnd_SetTransparentType(hWindow int, nType xcc.Window_Transparent_) int
窗口_置透明类型.
hWindow: 窗口句柄.
nType: 窗口透明类型: xcc.Window_Transparent_.
func XWnd_SetWindowPos ¶ added in v1.3.380
func XWnd_SetWindowPos(hWindow int, hWndInsertAfter xcc.HWND_, x, y, cx, cy int32, uFlags xcc.SWP_) int
窗口_置窗口位置. 封装系统API SetWindowPos(), 内部做了DPI适配.
hWindow: 窗口句柄.
hWndInsertAfter: 在Z序中位于定位窗口之前的窗口句柄. 此参数必须是窗口HWND或以下值之一: xcc.HWND_.
x: X坐标.
y: Y坐标.
cx: 宽度.
cy: 高度.
uFlags: 窗口大小调整和定位标志. 可以是以下值的组合: xcc.SWP_.
Types ¶
type Edit_Data_Copy_ ¶
type Edit_Data_Copy_ struct { NCount int32 // 内容数量 NStyleCount int32 // 样式数量 PStyle *Edit_Data_Copy_Style_ // 样式数组 PData *uint32 // 内容数组 }
Edit 数据复制
type Edit_Data_Copy_Style_ ¶
type Edit_Data_Copy_Style_ struct { HFont_image_obj int // 字体,图片,UI对象句柄 Color int32 // 颜色 BColor bool // 是否使用颜色 }
Edit 数据复制-样式
type Edit_Style_Info_ ¶
type Edit_Style_Info_ struct { Type xcc.Edit_Style_Type_ // 样式类型: Edit_Style_Type_ NRef uint16 // 引用计数 HFont_image_obj int // 字体,图片,UI对象句柄 Color int32 // 颜色 BColor bool // 是否使用颜色 }
Edit 样式信息
type Editor_Color_ ¶
type Editor_Color_ struct { ClrMargin1 int32 // 背景色1, ARGB 颜色 ClrMargin2 int32 // 背景色2, ARGB 颜色 ClrMarginText int32 // 文本色, ARGB 颜色 ClrBreakpoint int32 // 断点色, ARGB 颜色 ClrBreakpointArrow int32 // 断点箭头色, ARGB 颜色 ClrRun int32 // 当前执行位置指示色, ARGB 颜色 ClrCurRow int32 // 突出显示当前行颜色, ARGB 颜色 ClrMatch int32 // 设置匹配文本背景色, ARGB 颜色 }
Editor 颜色信息
type Font_Info_ ¶
type Font_Info_ struct { NSize int32 // 字体大小, 单位(pt,磅). NStyle xcc.FontStyle_ // 字体样式: FontStyle_ Name [32]uint16 // 字体名称, 使用xc.Font_Info_Name()函数转换为string. }
Font_Info_ 字体信息
type FunAnimationItem ¶ added in v1.3.390
FunAnimationItem 动画项回调.
hAnimation: 动画项句柄.
flag: 当前进度(0.0f-1.0f).
type FunLoadFile ¶ added in v1.3.390
FunLoadFile 图片资源文件加载回调.
type LOGFONTW ¶
type LOGFONTW struct { LfHeight int32 // 高度 LfWidth int32 // 宽度 LfEscapement int32 // 指定角度 LfOrientation int32 // 字符基线 LfWeight int32 // 字体粗细 LfItalic byte // 是否斜体 LfUnderline byte // 是否下划线 LfStrikeOut byte // 是否删除线 LfCharSet byte // 字符集 LfOutPrecision byte // 输出精度 LfClipPrecision byte // 剪辑精度 LfQuality byte // 输出质量 LfPitchAndFamily byte // 字符间距 LfFaceName [32]uint16 // 字体名称, 使用xc.Font_Info_Name()函数转换为string. }
LOGFONTW 字体属性
type ListBox_Item_ ¶ added in v0.0.5
type ListBox_Item_ struct { Index int32 // 项索引 NUserData int // 用户绑定数据 NHeight int32 // 项默认高度 NSelHeight int32 // 项选中时高度 NState xcc.List_Item_State_ // 状态: List_Item_State_ RcItem RECT // 项坐标 HLayout int // 布局对象句柄 HTemp int // 列表项模板句柄 }
ListBox_Item_ 列表框项信息
type ListBox_Item_Info_ ¶
type ListBox_Item_Info_ struct { NUserData int // 用户绑定数据 NHeight int32 // 项高度, -1使用默认高度 NSelHeight int32 // 项选中时高度, -1使用默认高度 }
ListBox 列表框项信息2
type ListView_Item_ ¶ added in v0.0.5
type ListView_Item_ struct { IGroup int32 // 项所述组索引 -1没有组 IItem int32 // 项在数组中位置索引,如果此致为-1,那么为组 NUserData int // 用户绑定数据 NState xcc.List_Item_State_ // 状态: List_Item_State_ RcItem RECT // 整个区域,包含边框 HLayout int // 布局对象 HTemp int // 列表项模板 }
ListView 列表视项信息
type ListView_Item_Id_ ¶ added in v1.3.310
列表视项ID
type List_Header_Item_ ¶ added in v0.0.5
type List_Header_Item_ struct { Index int32 // 项索引 NUserData int // 用户绑定数据 BSort bool // 是否支持排序 NSortType int32 // 排序方式,0无效,1升序,2降序 IColumnAdapter int32 // 对应数据适配器中的列索引 NState xcc.Common_State3_ // 状态: Common_State3_ RcItem RECT // 项坐标 HLayout int // 布局对象句柄 HTemp int // 列表项模板句柄 }
List 列表头项信息
type List_Item_ ¶ added in v0.0.5
type List_Item_ struct { Index int32 // 项索引 ISubItem int32 // 子项索引 NUserData int // 用户数据 NState xcc.List_Item_State_ // 状态: List_Item_State_ RcItem RECT // 未使用 HLayout int // 布局对象句柄 HTemp int // 列表项模板句柄 }
List 列表项信息
type Menu_DrawBackground_ ¶ added in v0.0.5
type Menu_DrawBackground_ struct { HMenu int // 菜单句柄 HWindow int // 当前弹出菜单项的窗口句柄 NParentID int32 // 父项ID }
Menu_DrawBackground_ 菜单背景自绘结构
type Menu_DrawItem_ ¶ added in v0.0.5
type Menu_DrawItem_ struct { HMenu int // 菜单句柄 HWindow int // 当前弹出菜单项的窗口句柄 NID int32 // ID NState xcc.Menu_Item_Flag_ // 状态: Menu_Item_Flag_ NShortcutKeyWidth int32 // 右侧快捷键占位宽度 RcItem RECT // 坐标 HIcon int // 菜单项图标句柄 PText uintptr // 文本, 使用xc.UintPtrToString()函数转换到string }
Menu_DrawItem_ 菜单项自绘结构
type Menu_PopupWnd_ ¶ added in v0.0.5
Menu_PopupWnd_ 菜单-弹出窗口信息
type MonthCal_item_ ¶ added in v1.3.310
type MonthCal_item_ struct { NDay int32 // 日期 NType int32 // 1上月, 2当月, 3下月 NState xcc.CombinedState // 组合状态, MonthCal_State_Flag_ RcItem RECT // 项坐标 }
MonthCal_item_ 月历元素项数据
type PropertyGrid_item_ ¶ added in v1.3.310
type PropertyGrid_item_ struct { NType int32 // 类型 NID int32 // 项ID NDepth int32 // 深度 NUserData int // 用户数据 NNameColWidth int32 // 名称列宽度 RcItem RECT // 坐标 RcExpand RECT // 展开 BExpand bool // 是否展开 BShow bool // 是否可见 }
PGrid 属性网格项信息
type RECTF ¶ added in v1.3.12
func Rect2RectF ¶ added in v1.3.381
type Tree_Drag_Item_ ¶ added in v0.0.5
type Tree_Drag_Item_ struct { NDragItem int32 // 拖动项ID NDestItem int32 // 目标项ID NType int32 // 停放相对目标位置, 0:(上)停放到目标的上面, 1:(下)停放到目标的下面, 3:(中)停放到目标的的子项, }
Tree_Drag_Item_ 树UI元素拖动项
type Tree_Item_ ¶ added in v0.0.5
type Tree_Item_ struct { NID int32 // 项ID NDepth int32 // 深度 NHeight int32 // 项高度 NSelHeight int32 // 项选中状态高度 NUserData int // 用户数据 BExpand bool // 展开 NState xcc.Tree_Item_State_ // 状态: Tree_Item_State_ RcItem RECT // 坐标 HLayout int // 布局对象句柄 HTemp int // 列表项模板句柄 }
Tree 树项信息
type UiThreader ¶ added in v1.3.352
UiThreader 用于在UI线程操作UI.
Source Files ¶
- adapter.go
- adapterlistview.go
- adaptermap.go
- adaptertable.go
- adaptertree.go
- animation.go
- bkmanager.go
- bkobj.go
- button.go
- combobox.go
- common.go
- d2d.go
- datetime.go
- deprecated.go
- doc.go
- draw.go
- ease.go
- edit.go
- editor.go
- element.go
- font.go
- framewindow.go
- globalapi.go
- image.go
- layoutbox.go
- layoutele.go
- layoutframe.go
- list.go
- listbox.go
- listitemtemplate.go
- listview.go
- menu.go
- menubar.go
- modalwindow.go
- monthcal.go
- notify_msg.go
- objectbase.go
- pane.go
- progressbar.go
- resource.go
- scrollbar.go
- scrollview.go
- shape.go
- shapeellipse.go
- shapegif.go
- shapegroupbox.go
- shapeline.go
- shapepicture.go
- shaperect.go
- shapetext.go
- sliderbar.go
- svg.go
- tabbar.go
- table.go
- textlink.go
- toolbar.go
- tray.go
- tree.go
- ui.go
- uidesigner.go
- widget.go
- window.go
- xcex.go
- xcgui.go
- xcstruct.go