types

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package types CEF & Go type mapping

Index

Constants

View Source
const (
	BdaTop = iota
	BdaTopRight
	BdaRight
	BdaBottomRight
	BdaBottom
	BdaBottomLeft
	BdaLeft
	BdaTopLeft
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnsiChar added in v2.1.0

type AnsiChar = Char

type BOOL added in v2.1.0

type BOOL = LongBool

type Boolean

type Boolean bool

func (Boolean) ToPtr

func (m Boolean) ToPtr() uintptr

type BroderDirectionAdjustment added in v2.3.8

type BroderDirectionAdjustment = uint8

BroderDirectionAdjustment 边框方向调整集合

type BroderDirectionAdjustments added in v2.3.8

type BroderDirectionAdjustments = TSet

BroderDirectionAdjustments SET

type COLORREF added in v2.1.0

type COLORREF = Cardinal

type Cardinal

type Cardinal = UInt32

type Char added in v2.1.0

type Char = byte

type DWORD

type DWORD = Cardinal

type Float32

type Float32 float32

func (Float32) ToPtr

func (m Float32) ToPtr() uintptr

type Float64

type Float64 float64

func (Float64) ToPtr

func (m Float64) ToPtr() uintptr

type HBITMAP added in v2.1.0

type HBITMAP = UIntptr

type HBRUSH added in v2.1.0

type HBRUSH = UIntptr

type HCURSOR added in v2.1.0

type HCURSOR = HICON

type HDC added in v2.1.0

type HDC = UIntptr

type HDWP added in v2.3.2

type HDWP uintptr

type HFONT added in v2.1.0

type HFONT = UIntptr

type HGDIOBJ added in v2.1.0

type HGDIOBJ = UIntptr

type HICON added in v2.1.0

type HICON = UIntptr

type HKEY added in v2.1.0

type HKEY = UIntptr

type HMENU added in v2.1.0

type HMENU = UIntptr

type HMONITOR added in v2.1.0

type HMONITOR = UIntptr

type HOOK added in v2.1.0

type HOOK = QWord

type HPALETTE added in v2.1.0

type HPALETTE = UIntptr

type HPEN added in v2.1.0

type HPEN = UIntptr

type HRESULT added in v2.1.0

type HRESULT = Int32

type HRGN added in v2.1.0

type HRGN struct {
	// contains filtered or unexported fields
}

func NewHRGN added in v2.1.0

func NewHRGN(instance uintptr) *HRGN

func (*HRGN) Free added in v2.1.0

func (m *HRGN) Free()

func (*HRGN) Instance added in v2.1.0

func (m *HRGN) Instance() uintptr

type HWND

type HWND = UIntptr

type ICONINFO added in v2.1.0

type ICONINFO struct {
	FIcon    BOOL
	XHotspot DWORD
	YHotspot DWORD
	HbmMask  HBITMAP
	HbmColor HBITMAP
}

type Int

type Int int

func (Int) ToPtr

func (m Int) ToPtr() uintptr

type Int16

type Int16 int16

func (Int16) ToPtr

func (m Int16) ToPtr() uintptr

type Int32

type Int32 int32

func (Int32) ToPtr

func (m Int32) ToPtr() uintptr

type Int64

type Int64 int64

func (Int64) ToPtr

func (m Int64) ToPtr() uintptr

type Int8

type Int8 int8

func (Int8) ToPtr

func (m Int8) ToPtr() uintptr

type Integer

type Integer = Int32

type LPARAM

type LPARAM = UIntptr

type LResult added in v2.1.0

type LResult = UIntptr

type LogFontA added in v2.1.0

type LogFontA struct {
	LfHeight         LongInt
	LfWidth          LongInt
	LfEscapement     LongInt // angle, in tenths of degrees of each line of text
	LfOrientation    LongInt // angle, in tenths of degrees of each character's base line
	LfWeight         LongInt
	LfItalic         byte
	LfUnderline      byte
	LfStrikeOut      byte
	LfCharSet        byte
	LfOutPrecision   byte
	LfClipPrecision  byte
	LfQuality        byte
	LfPitchAndFamily byte
	LfFaceName       []AnsiChar // len = 32
}

type LongBool

type LongBool = Boolean

type LongInt

type LongInt = Int32

type LongPtr added in v2.1.0

type LongPtr = UIntptr

type LongWord added in v2.1.0

type LongWord = UInt32

type NativeUInt

type NativeUInt = UInt32

type PChar

type PChar = String

type Paint added in v2.2.3

type Paint struct {
	Hdc         HDC
	FErase      BOOL
	RcPaint     TRect
	FRestore    BOOL
	FIncUpdate  BOOL
	RgbReserved [32]uint8
}

type Point

type Point struct {
	X int32
	Y int32
}

type Pointer added in v2.1.0

type Pointer = UIntptr

type PtrInt added in v2.1.0

type PtrInt = UIntptr

type PtrUInt added in v2.1.0

type PtrUInt = QWord

type QWord added in v2.1.0

type QWord = UIntptr

type Rect added in v2.1.0

type Rect struct {
	Left   int32
	Top    int32
	Right  int32
	Bottom int32
}

type Single

type Single = Float32

type Size added in v2.1.0

type Size struct {
	X int32
	Y int32
}

type Smallint added in v2.1.0

type Smallint = Int16

type String

type String string

func (String) ToPtr

func (m String) ToPtr() uintptr

type TCefColor

type TCefColor = UInt32

type TCefString

type TCefString = String

type TCefStringList added in v2.3.6

type TCefStringList = Pointer

type TCefWindowHandle added in v2.3.6

type TCefWindowHandle = HWND

type TColorRef added in v2.1.0

type TColorRef = COLORREF

type TCriticalSection added in v2.1.0

type TCriticalSection = PtrUInt

type TDWordFiller added in v2.2.3

type TDWordFiller struct {
	Filler [4]uint8
}

type TFarProc added in v2.1.0

type TFarProc = Pointer

type TFontSignature added in v2.1.0

type TFontSignature struct {
	FsUsb []DWORD // len = 4
	FsCsb []DWORD // len = 2
}

type TFontSignaturePtr added in v2.1.0

type TFontSignaturePtr struct {
	FsUsb uintptr // []DWORD // len = 4
	FsCsb uintptr // []DWORD // len = 2
}

type TGraphicsColor added in v2.1.0

type TGraphicsColor = Int32

type TGraphicsFillStyle added in v2.1.0

type TGraphicsFillStyle = Int32
const (
	FsSurface TGraphicsFillStyle = iota // fill till the color (it fills all except this color)
	FsBorder                            // fill this color (it fills only connected pixels of this color)
)

type THandle added in v2.1.0

type THandle = QWord

type TLogGradientStop added in v2.1.0

type TLogGradientStop struct {
	RadColorR   Word
	RadColorG   Word
	RadColorB   Word
	RadColorA   Word
	RadPosition float64 // must be in 0..1
}

non-winapi radial gradient log info

type TLogRadialGradient added in v2.1.0

type TLogRadialGradient struct {
	RadCenterX Integer
	RadCenterY Integer
	RadRadius  Integer
	RadFocalX  Integer
	RadFocalY  Integer
	RadStops   []TLogGradientStop
}

type TMove added in v2.2.3

type TMove struct {
	Msg Cardinal

	MoveType PtrInt // 0 = update, 1 = force RequestAlign, 128 = Source is Interface (Widget has moved)
	Dummy    LPARAM // needed for64 bit alignment
	Result   LResult
	// contains filtered or unexported fields
}

type TNewTextMetric added in v2.1.0

type TNewTextMetric struct {
	TmHeight           LongInt
	TmAscent           LongInt
	TmDescent          LongInt
	TmInternalLeading  LongInt
	TmExternalLeading  LongInt
	TmAveCharWidth     LongInt
	TmMaxCharWidth     LongInt
	TmWeight           LongInt
	TmOverhang         LongInt
	TmDigitizedAspectX LongInt
	TmDigitizedAspectY LongInt
	TmFirstChar        AnsiChar
	TmLastChar         AnsiChar
	TmDefaultChar      AnsiChar
	TmBreakChar        AnsiChar
	TmItalic           byte
	TmUnderlined       byte
	TmStruckOut        byte
	TmPitchAndFamily   byte
	TmCharSet          byte
	NtmFlags           DWORD
	NtmSizeEM          UINT
	NtmCellHeight      UINT
	NtmAvgWidth        UINT
}

type TNewTextMetricEx added in v2.1.0

type TNewTextMetricEx struct {
	Ntmentm           TNewTextMetric
	NtmeFontSignature TFontSignature
}

type TNewTextMetricExPtr added in v2.1.0

type TNewTextMetricExPtr struct {
	Ntmentm           uintptr //TNewTextMetric
	NtmeFontSignature uintptr //TFontSignature
}

type TPaint added in v2.2.3

type TPaint struct {
	Msg Cardinal

	DC          HDC
	PaintStruct Paint
	Result      LResult
	// contains filtered or unexported fields
}

type TRect added in v2.2.3

type TRect struct {
	Left   int32
	Top    int32
	Right  int32
	Bottom int32
}

type TSet added in v2.3.8

type TSet = lcltypes.TSet

TSet 定义和 LCL TSet 一样,方便使用

func NewSet added in v2.3.8

func NewSet(opts ...uint8) TSet

NewSet

新建TSet,初始值为0,然后添加元素

type TSize added in v2.2.3

type TSize struct {
	Msg          Cardinal
	MsgFiller    TDWordFiller
	SizeType     PtrInt // see LCLType.pp (e.g. Size_Restored)
	Width        Word
	Height       Word
	LParamfiller TDWordFiller
	Result       LResult
}

type TWindowPosChanged added in v2.2.3

type TWindowPosChanged struct {
	Msg Cardinal

	Unused    WPARAM
	WindowPos WindowPos
	Result    LPARAM
	// contains filtered or unexported fields
}

type TagBitmapInfo added in v2.1.0

type TagBitmapInfo struct {
	BmiHeader TagBitmapInfoHeader
	BmiColors []TagRGBQuad
}

type TagBitmapInfoHeader added in v2.1.0

type TagBitmapInfoHeader struct {
	BiSize          DWORD
	BiWidth         LongInt
	BiHeight        LongInt
	BiPlanes        Word
	BiBitCount      Word
	BiCompression   DWORD
	BiSizeImage     DWORD
	BiXPelsPerMeter LongInt
	BiYPelsPerMeter LongInt
	BiClrUsed       DWORD
	BiClrImportant  DWORD
}

type TagEnumLogFontA added in v2.1.0

type TagEnumLogFontA struct {
	ElfLogFont  *LogFontA
	ElfFullName []AnsiChar // len = 64
	ElfStyle    []AnsiChar // len = 32
}

type TagEnumLogFontAPtr added in v2.1.0

type TagEnumLogFontAPtr struct {
	ElfLogFont  uintptr //*LogFontA
	LfFaceName  uintptr //string // len = 32
	ElfFullName uintptr //string // len = 64
	ElfStyle    uintptr //string // len = 32
}

type TagEnumLogFontExA added in v2.1.0

type TagEnumLogFontExA struct {
	ElfLogFont  *LogFontA
	ElfFullName []AnsiChar // len = 64
	ElfStyle    []AnsiChar // len = 32
	ElfScript   []AnsiChar // len = 32
}

type TagEnumLogFontExAPtr added in v2.1.0

type TagEnumLogFontExAPtr struct {
	ElfLogFont  uintptr //*LogFontA
	LfFaceName  uintptr //[]AnsiChar // len = 32
	ElfFullName uintptr //[]AnsiChar // len = 64
	ElfStyle    uintptr //[]AnsiChar // len = 32
	ElfScript   uintptr //[]AnsiChar // len = 32
}

type TagLogBrush added in v2.1.0

type TagLogBrush struct {
	LbStyle LongWord
	LbColor TColorRef
	LbHatch PtrUInt
}

type TagLogPalette added in v2.1.0

type TagLogPalette struct {
	// contains filtered or unexported fields
}

type TagLogPen added in v2.1.0

type TagLogPen struct {
	LopnStyle LongWord
	LopnWidth Point
	LopnColor TColorRef
}

type TagMonitorInfo added in v2.1.0

type TagMonitorInfo struct {
	CbSize    DWORD
	RcMonitor Rect
	RcWork    Rect
	DwFlags   DWORD
}

type TagPaintStruct added in v2.1.0

type TagPaintStruct struct {
	Hdc        HDC
	FErase     BOOL
	RcPaint    Rect
	FRestore   BOOL
	FIncUpdate BOOL
}

type TagPaletteEntry added in v2.1.0

type TagPaletteEntry struct {
	PeRed   byte
	PeGreen byte
	PeBlue  byte
	PeFlags byte
}

type TagRGBQuad added in v2.1.0

type TagRGBQuad struct {
	RgbBlue     byte
	RgbGreen    byte
	RgbRed      byte
	RgbReserved byte
}

type TagScrollInfo added in v2.1.0

type TagScrollInfo struct {
	CbSize    UINT
	FMask     UINT
	NMin      Integer
	NMax      Integer
	NPage     UInt
	NPos      Integer
	NTrackPos Integer
}

type TagTextMetricA added in v2.1.0

type TagTextMetricA struct {
	TmHeight           LongInt
	TmAscent           LongInt
	TmDescent          LongInt
	TmInternalLeading  LongInt
	TmExternalLeading  LongInt
	TmAveCharWidth     LongInt
	TmMaxCharWidth     LongInt
	TmWeight           LongInt
	TmOverhang         LongInt
	TmDigitizedAspectX LongInt
	TmDigitizedAspectY LongInt
	TmFirstChar        AnsiChar
	TmLastChar         AnsiChar
	TmDefaultChar      AnsiChar
	TmBreakChar        AnsiChar
	TmItalic           byte
	TmUnderlined       byte
	TmStruckOut        byte
	TmPitchAndFamily   byte
	TmCharSet          byte
}

type TagTriVertex added in v2.1.0

type TagTriVertex struct {
	X     LongInt
	Y     LongInt
	Red   Word
	Green Word
	Blue  Word
	Alpha Word
}

type UINT added in v2.1.0

type UINT = LongWord

type UInt

type UInt uint

func (UInt) ToPtr

func (m UInt) ToPtr() uintptr

type UInt16

type UInt16 uint16

func (UInt16) ToPtr

func (m UInt16) ToPtr() uintptr

type UInt32

type UInt32 uint32

func (UInt32) ToPtr

func (m UInt32) ToPtr() uintptr

type UInt64

type UInt64 uint64

func (UInt64) ToPtr

func (m UInt64) ToPtr() uintptr

type UInt8

type UInt8 uint8

func (UInt8) ToPtr

func (m UInt8) ToPtr() uintptr

type UIntptr

type UIntptr uintptr

func (UIntptr) SetValue added in v2.3.6

func (m UIntptr) SetValue(value interface{})

SetValue

给指针设置值, 仅基础类型, 字符串需直接赋值

func (UIntptr) ToPtr

func (m UIntptr) ToPtr() uintptr

type ULONG_PTR added in v2.1.0

type ULONG_PTR = QWord

type WPARAM

type WPARAM = UIntptr

type WindowPos added in v2.2.3

type WindowPos struct {
	Hwnd            THandle
	HwndInsertAfter THandle
	X               Integer
	Y               Integer
	Cx              Integer
	Cy              Integer
	Flags           Cardinal
}

type Word added in v2.1.0

type Word = UInt16

Jump to

Keyboard shortcuts

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