Documentation ¶
Index ¶
- Constants
- Variables
- func Combine(path, name string) string
- func CreateGUID() types.TGUID
- func CurrentThreadId() uintptr
- func ExtractFileExt(path string) string
- func ExtractFileName(path string) string
- func ExtractFilePath(filename string) string
- func FileExists(filename string) bool
- func GUIDToString(guid types.TGUID) string
- func GetDC(hWnd HWND) HDC
- func GetFileNameWithoutExt(path string) string
- func GetLibResourceCount() int32
- func GetLibResourceItem(aIndex int32) types.TLibResource
- func GetLibResourceItems() []types.TLibResource
- func GetStringArrOf(p uintptr, index int) string
- func HiByte(W uint8) uint8
- func HiWord(L uint32) uint16
- func InitGoDll(aMainThreadId uintptr)
- func IsIconic(hWnd HWND) bool
- func IsWindow(hWnd HWND) bool
- func IsWindowVisible(hWnd HWND) bool
- func IsZoomed(hWnd HWND) bool
- func LibAbout() string
- func LibVersion() uint32
- func LocaleIDFromName(name string) int32
- func MainInstance() uintptr
- func MainThreadId() uintptr
- func MakeLParam(l, h uint16) LPARAM
- func MakeLResult(l, h uint16) LRESULT
- func MakeLong(A, B uint16) int32
- func MakeWParam(l, h uint16) WPARAM
- func MakeWord(A, B uint8) uint16
- func ModifyLibResource(aPtr uintptr, aValue string)
- func Move(src, dest uintptr, llen int)
- func PointToLParam(P TPoint) LPARAM
- func PostMessage(hWd HWND, msg uint32, wParam, lParam uintptr) bool
- func ReleaseDC(hWnd HWND, dc HDC) int
- func RtlInit()
- func SendMessage(hWd HWND, msg uint32, wParam, lParam uintptr) uintptr
- func SetForegroundWindow(hWnd HWND) bool
- func SetPropertySecValue(instance uintptr, propName, secPropName, value string)
- func SetPropertyValue(instance uintptr, propName, value string)
- func ShiftStateToWord(shift types.TShiftState) uint32
- func ShortCutToText(val types.TShortCut) string
- func StrLen(str uintptr) int
- func StringToGUID(str string) types.TGUID
- func SysOpen(filename string)
- func TextToShortCut(val string) types.TShortCut
- func WindowFromPoint(point TPoint) HWND
Constants ¶
View Source
const (
PathSeparator = "/"
)
Variables ¶
View Source
var ( // SysLocale // // 本地化相关 // // localization. SysLocale types.TSysLocale )
Functions ¶
func CurrentThreadId ¶
func CurrentThreadId() uintptr
CurrentThreadId
返回当前线程iD
Return the current thread id.
func GetLibResourceItem ¶
func GetLibResourceItem(aIndex int32) types.TLibResource
GetLibResourceItem
从指定索引中获取字符资源项目
func GetLibResourceItems ¶
func GetLibResourceItems() []types.TLibResource
GetLibResourceItems
获取资源字符串数组
func IsWindowVisible ¶
func IsWindowVisible(hWnd HWND) bool
func MainInstance ¶
func MainInstance() uintptr
func MakeLParam ¶
func MakeLParam(l, h uint16) LPARAM
func MakeLResult ¶
func MakeLResult(l, h uint16) LRESULT
func MakeWParam ¶
func MakeWParam(l, h uint16) WPARAM
func Move ¶
Move
FreePascal中的内存操作,不过这里传入的是指针 ¶
Memory operations in FreePascal, but pointers are passed here.
func PointToLParam ¶
func PointToLParam(P TPoint) LPARAM
func PostMessage ¶
func SendMessage ¶
func SetForegroundWindow ¶
func SetForegroundWindow(hWnd HWND) bool
func SetPropertySecValue ¶
SetPropertySecValue
设置对象二级属性值
Set the secondary attribute value of the object
func ShiftStateToWord ¶
func ShiftStateToWord(shift types.TShiftState) uint32
func StringToGUID ¶
StringToGUID
将字符形式的GUID转为TGUID结构
Convert GUID in character form to TGUID structure.
func SysOpen ¶
func SysOpen(filename string)
SysOpen 打开,windows下调用ShellExecute
// windows rtl.SysOpen("http://www.xxx.com") rtl.SysOpen("c:\") rtl.SysOpen("c:\xxx.exe") // linux or macOS rtl.SysOpen("https://wwww.xxx.com") rtl.SysOpen("file:///xxx.png");
func WindowFromPoint ¶
func WindowFromPoint(point TPoint) HWND
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.