rtl

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 5 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func CreateGUID added in v1.1.23

func CreateGUID() types.TGUID

CreateGUID 创建一个新的GUID

func Exclude

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

Exclude Delphi集合减法,val...中存储为位的索引,下标为0

func ExtractFilePath

func ExtractFilePath(filename string) string

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

func FileExists

func FileExists(filename string) bool

FileExists 判断文件是否存在

func GUIDToString added in v1.1.23

func GUIDToString(guid types.TGUID) string

GUIDToString 将GUID转为字符形式

func GetGDKWindowXID added in v1.2.4

func GetGDKWindowXID(handle types.HWND) types.TXID

Linux下liblcl使用GTK2用

func GetLibResouceCount added in v1.1.23

func GetLibResouceCount() int32

LibResouces

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 GetStringArrOf

func GetStringArrOf(p uintptr, index int) string

GetStringArrOf 从一个Delphi/Lazarus字符串数组获取成员

func InSets

func InSets(r uint32, s uint32) bool

InSets Delphi集合类型的判断,类型,然后后面是第几位,下标为0

func Include

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

Include Delphi集合加法,val...中存储为位的索引,下标为0

func IsNil added in v1.2.1

func IsNil(val interface{}) bool

IsNil 判断一个接口是否为空 interface{}数据类型定义为 typedef struct { void *type; void *value; } GoInterface; 当type与value值都为nil时则为空。

func LcLLoaded

func LcLLoaded() bool

LcLLoaded 是否加载的为lcl库,true表是是,false表示不是

func LibStringEncoding added in v1.2.2

func LibStringEncoding() types.TStringEncoding

库的信息 获取当前库使用的字符串编码

func LibVersion added in v1.2.2

func LibVersion() uint32

// 共8位,2位2位的,如:$01020100 表示 1.2.1.0

func LocaleIDFromName added in v1.2.1

func LocaleIDFromName(name string) int32

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

func MainInstance

func MainInstance() uintptr

MainInstance EXE自身的实例

func ModifyLibResouce added in v1.1.23

func ModifyLibResouce(aPtr uintptr, aValue string)

func Move

func Move(src, dest uintptr, llen int)

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

func SetPropertySecValue added in v1.1.21

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

SetPropertySecValue 设置对象二级属性

func SetPropertyValue added in v1.1.21

func SetPropertyValue(instance uintptr, propName, value string)

SetProperty SetPropertyValue 设置对象属性

func ShortCutToText

func ShortCutToText(val types.TShortCut) string

ShortCutToText 将ShortCut类型转为字符串

func StrLen

func StrLen(str uintptr) int

StrLen String长度,一般用于对delphi或者lazarus的字符长检测

func StringToGUID added in v1.1.23

func StringToGUID(str string) types.TGUID

StringToGUID 将字符形式的GUID转为TGUID结构

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类型

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