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 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 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 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 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 ( // 本地化相关 // // localization. SysLocale types.TSysLocale )
Functions ¶
func GetFileNameWithoutExt ¶ added in v1.2.8
获取一个无扩展的文件名
func GetLibResourceItem ¶
func GetLibResourceItem(aIndex int32) types.TLibResource
func GetLibResourceItems ¶
func GetLibResourceItems() []types.TLibResource
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 ModifyLibResource ¶
func Move ¶
Delphi/Lazarus中的内存操作,不过这里传入的是指针
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
设置对象二级属性值
Set the secondary attribute value of the object
func ShiftStateToWord ¶ added in v1.2.8
func ShiftStateToWord(shift types.TShiftState) uint32
func StringToGUID ¶ added in v1.1.23
将字符形式的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 ¶ 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.