rtl

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

View Source
const (
	PathSeparator = "/"
)

Variables

View Source
var (
	// SysLocale
	//
	// 本地化相关
	//
	// localization.
	SysLocale types.TSysLocale
)

Functions

func Combine

func Combine(path, name string) string

Combine

路径合并

func CreateGUID

func CreateGUID() types.TGUID

CreateGUID

创建一个新的GUID

Create a new GUID.

func CurrentThreadId

func CurrentThreadId() uintptr

CurrentThreadId

返回当前线程iD

Return the current thread id.

func Exclude

func Exclude(r uint32, val ...uint8) uint32

Exclude Deprecated: use value.Exclude.

func ExtractFileExt

func ExtractFileExt(path string) string

ExtractFileExt

提取文件扩展名

func ExtractFileName

func ExtractFileName(path string) string

ExtractFileName

获取一个文件名

func ExtractFilePath

func ExtractFilePath(filename string) string

ExtractFilePath

提取文件名的路径,带“\”的

func FileExists

func FileExists(filename string) bool

FileExists

判断文件是否存在

func GUIDToString

func GUIDToString(guid types.TGUID) string

GUIDToString

将TGUID转为字符形式

Convert TGUID to character form.

func GetDC

func GetDC(hWnd HWND) HDC

func GetFileNameWithoutExt

func GetFileNameWithoutExt(path string) string

GetFileNameWithoutExt

获取一个无扩展的文件名

func GetLibResourceCount

func GetLibResourceCount() int32

GetLibResourceCount

获取Lib中资源字符数组总数

func GetLibResourceItem

func GetLibResourceItem(aIndex int32) types.TLibResource

GetLibResourceItem

从指定索引中获取字符资源项目

func GetLibResourceItems

func GetLibResourceItems() []types.TLibResource

GetLibResourceItems

获取资源字符串数组

func GetStringArrOf

func GetStringArrOf(p uintptr, index int) string

GetStringArrOf

从一个FreePascal字符串数组获取成员

func HiByte

func HiByte(W uint8) uint8

func HiWord

func HiWord(L uint32) uint16

func InSets

func InSets(r uint32, s uint32) bool

InSets Deprecated: use value.In.

func Include

func Include(r uint32, val ...uint8) uint32

Include Deprecated: use value.Include.

func InitGoDll

func InitGoDll(aMainThreadId uintptr)

InitGoDll

一般无用,主要用来在go生成的dll中使用liblcl。

func IsIconic

func IsIconic(hWnd HWND) bool

func IsWindow

func IsWindow(hWnd HWND) bool

func IsWindowVisible

func IsWindowVisible(hWnd HWND) bool

func IsZoomed

func IsZoomed(hWnd HWND) bool

func LibAbout

func LibAbout() string

LibAbout

liblcl的关于信息

func LibVersion

func LibVersion() uint32

LibVersion

获取库的版本,共8位,2位2位的,如:$01020100 表示 1.2.1.0

func LocaleIDFromName

func LocaleIDFromName(name string) int32

LocaleIDFromName 从名称获取一个语言的id

func MainInstance

func MainInstance() uintptr

func MainThreadId

func MainThreadId() uintptr

MainThreadId

返回主线程ID

Return the main thread id.

func MakeLParam

func MakeLParam(l, h uint16) LPARAM

func MakeLResult

func MakeLResult(l, h uint16) LRESULT

func MakeLong

func MakeLong(A, B uint16) int32

func MakeWParam

func MakeWParam(l, h uint16) WPARAM

func MakeWord

func MakeWord(A, B uint8) uint16

func ModifyLibResource

func ModifyLibResource(aPtr uintptr, aValue string)

ModifyLibResource

修改指定资源字符串

func Move

func Move(src, dest uintptr, llen int)

Move

FreePascal中的内存操作,不过这里传入的是指针

Memory operations in FreePascal, but pointers are passed here.

func PointToLParam

func PointToLParam(P TPoint) LPARAM

func PostMessage

func PostMessage(hWd HWND, msg uint32, wParam, lParam uintptr) bool

func ReleaseDC

func ReleaseDC(hWnd HWND, dc HDC) int

func RtlInit

func RtlInit()

初始化

func SendMessage

func SendMessage(hWd HWND, msg uint32, wParam, lParam uintptr) uintptr

func SetForegroundWindow

func SetForegroundWindow(hWnd HWND) bool

func SetPropertySecValue

func SetPropertySecValue(instance uintptr, propName, secPropName, value string)

SetPropertySecValue

设置对象二级属性值

Set the secondary attribute value of the object

func SetPropertyValue

func SetPropertyValue(instance uintptr, propName, value string)

SetPropertyValue

设置对象属性值

Set object property value

func ShiftStateToWord

func ShiftStateToWord(shift types.TShiftState) uint32

func ShortCutToText

func ShortCutToText(val types.TShortCut) string

ShortCutToText

将ShortCut类型转为字符串

Convert ShortCut type to string.

func StrLen

func StrLen(str uintptr) int

StrLen

FreePascal的字符串长度。

FreePascal string length.

func StringToGUID

func StringToGUID(str string) types.TGUID

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 TextToShortCut

func TextToShortCut(val string) types.TShortCut

TextToShortCut

将字符串转为ShortCut类型

Convert string to ShortCut type.

func WindowFromPoint

func WindowFromPoint(point TPoint) HWND

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL