Documentation ¶
Index ¶
- Constants
- Variables
- func Combine(path, name string) string
- func CreateGUID() types.TGUID
- func CurrentThreadId() uintptr
- func Exclude(r uint32, val ...uint8) uint32
- 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 GetLibResouceCount() int32
- func GetLibResouceItem(aIndex int32) types.TLibResouce
- func GetLibResouceItems() []types.TLibResouce
- func GetStringArrOf(p uintptr, index int) string
- func HiByte(W uint8) uint8
- func HiWord(L uint32) uint16
- func InSets(r uint32, s uint32) bool
- func Include(r uint32, val ...uint8) uint32
- func InitGoDll(aMainThreadId uintptr)
- func IsIconic(hWnd HWND) bool
- func IsNil(val interface{}) bool
- func IsWindow(hWnd HWND) bool
- func IsWindowVisible(hWnd HWND) bool
- func IsZoomed(hWnd HWND) bool
- func LcLLoaded() bool
- func LibAbout() string
- func LibStringEncoding() types.TStringEncoding
- 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 ModifyLibResouce(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 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 ( // CN: 本地化相关 // EN: localization. SysLocale types.TSysLocale )
Functions ¶
func CreateGUID ¶ added in v1.1.23
CN: 创建一个新的GUID EN: Create a new GUID.
func CurrentThreadId ¶
func CurrentThreadId() uintptr
CN: 返回当前线程iD EN: Return the current thread id.
func GUIDToString ¶ added in v1.1.23
CN: 将TGUID转为字符形式 EN: Convert TGUID to character form.
func GetFileNameWithoutExt ¶ added in v1.2.8
获取一个无扩展的文件名
func GetLibResouceItem ¶ added in v1.1.23
func GetLibResouceItem(aIndex int32) types.TLibResouce
func GetLibResouceItems ¶ added in v1.1.23
func GetLibResouceItems() []types.TLibResouce
func IsWindowVisible ¶ added in v1.2.10
func IsWindowVisible(hWnd HWND) bool
func LibStringEncoding ¶ added in v1.2.2
func LibStringEncoding() types.TStringEncoding
库的信息 获取当前库使用的字符串编码
func LocaleIDFromName ¶ added in v1.2.1
LocaleIDFromName 从名称获取一个语言的id
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 ModifyLibResouce ¶ added in v1.1.23
func Move ¶
CN: Delphi/Lazarus中的内存操作,不过这里传入的是指针 EN: Memory operations in Delphi/Lazarus, but pointers are passed here.
func PointToLParam ¶
func PointToLParam(P TPoint) LPARAM
func PostMessage ¶ added in v1.2.10
func SendMessage ¶ added in v1.2.10
func SetForegroundWindow ¶ added in v1.2.10
func SetForegroundWindow(hWnd HWND) bool
func SetPropertySecValue ¶ added in v1.1.21
CN: 设置对象二级属性值 EN: Set the secondary attribute value of the object
func SetPropertyValue ¶ added in v1.1.21
CN: 设置对象属性值 EN: Set object property value
func ShiftStateToWord ¶ added in v1.2.8
func ShiftStateToWord(shift types.TShiftState) uint32
func StringToGUID ¶ added in v1.1.23
CN: 将字符形式的GUID转为TGUID结构 EN: 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 ¶ added in v1.2.10
func WindowFromPoint(point TPoint) HWND
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.