types

package
v2.0.10+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdOK       = 1
	IdCancel   = 2
	IdAbort    = 3
	IdRetry    = 4
	IdIgnore   = 5
	IdYes      = 6
	IdNo       = 7
	IdClose    = 8
	IdHelp     = 9
	IdTryAgain = 10
	IdContinue = 11
	MrNone     = 0
	MrOk       = IdOK
	MrCancel   = IdCancel
	MrAbort    = IdAbort
	MrRetry    = IdRetry
	MrIgnore   = IdIgnore
	MrYes      = IdYes
	MrNo       = IdNo
	MrClose    = IdClose
	MrHelp     = IdHelp
	MrTryAgain = IdTryAgain
	MrContinue = IdContinue
	MrAll      = MrContinue + 1
	MrNoToAll  = MrAll + 1
	MrYesToAll = MrNoToAll + 1
)

MessageBox or MessageDlg 返回值

View Source
const (
	CF_BITMAP          = 2
	CF_DIB             = 8
	CF_PALETTE         = 9
	CF_ENHMETAFILE     = 14
	CF_METAFILEPICT    = 3
	CF_OEMTEXT         = 7
	CF_TEXT            = 1
	CF_UNICODETEXT     = 13
	CF_DIF             = 5
	CF_DSPBITMAP       = 130
	CF_DSPENHMETAFILE  = 142
	CF_DSPMETAFILEPICT = 131
	CF_DSPTEXT         = 129
	CF_GDIOBJFIRST     = 768
	CF_GDIOBJLAST      = 1023
	CF_HDROP           = 15
	CF_LOCALE          = 16
	CF_OWNERDISPLAY    = 128
	CF_PENDATA         = 10
	CF_PRIVATEFIRST    = 512
	CF_PRIVATELAST     = 767
	CF_RIFF            = 11
	CF_SYLK            = 4
	CF_WAVE            = 12
	CF_TIFF            = 6

	// custom
	CF_PICTURE   = 700
	CF_HTML      = 701
	CF_COMPONENT = 702
)

Predefined Clipboard Formats

View Source
const (
	CrHigh = TCursor(0)

	CrDefault   = TCursor(0)
	CrNone      = TCursor(-1)
	CrArrow     = TCursor(-2)
	CrCross     = TCursor(-3)
	CrIBeam     = TCursor(-4)
	CrSize      = TCursor(-22)
	CrSizeNESW  = TCursor(-6) // diagonal north east - south west
	CrSizeNS    = TCursor(-7)
	CrSizeNWSE  = TCursor(-8)
	CrSizeWE    = TCursor(-9)
	CrSizeNW    = TCursor(-23)
	CrSizeN     = TCursor(-24)
	CrSizeNE    = TCursor(-25)
	CrSizeW     = TCursor(-26)
	CrSizeE     = TCursor(-27)
	CrSizeSW    = TCursor(-28)
	CrSizeS     = TCursor(-29)
	CrSizeSE    = TCursor(-30)
	CrUpArrow   = TCursor(-10)
	CrHourGlass = TCursor(-11)
	CrDrag      = TCursor(-12)
	CrNoDrop    = TCursor(-13)
	CrHSplit    = TCursor(-14)
	CrVSplit    = TCursor(-15)
	CrMultiDrag = TCursor(-16)
	CrSQLWait   = TCursor(-17)
	CrNo        = TCursor(-18)
	CrAppStart  = TCursor(-19)
	CrHelp      = TCursor(-20)
	CrHandPoint = TCursor(-21)
	CrSizeAll   = TCursor(-22)
	CrLow       = TCursor(-30)
)

光标定义

View Source
const (
	AlNone = iota + 0
	AlTop
	AlBottom
	AlLeft
	AlRight
	AlClient
	AlCustom
)
View Source
const (
	BsNone = iota + 0
	BsSingle
	BsSizeable
	BsDialog
	BsToolWindow
	BsSizeToolWin
)
View Source
const (
	FsNormal = iota + 0
	FsMDIChild
	FsMDIForm
	FsStayOnTop
	FsSplash
	FsSystemStayOnTop
)
View Source
const (
	PoDesigned        = iota + 0 // use bounds from the designer (read from stream)
	PoDefault                    // LCL decision (normally window manager decides)
	PoDefaultPosOnly             // designed size and LCL position
	PoDefaultSizeOnly            // designed position and LCL size
	PoScreenCenter               // center form on screen (depends on DefaultMonitor)
	PoDesktopCenter              // center form on desktop (total of all screens)
	PoMainFormCenter             // center form on main form (depends on DefaultMonitor)
	PoOwnerFormCenter            // center form on owner form (depends on DefaultMonitor)
	PoWorkAreaCenter             // center form on working area (depends on DefaultMonitor)
)
View Source
const (
	SoBeginning = iota + 0
	SoCurrent
	SoEnd
)
View Source
const (
	PfDevice = iota + 0
	Pf1bit
	Pf4bit
	Pf8bit
	Pf15bit
	Pf16bit
	Pf24bit
	Pf32bit
	PfCustom
)
View Source
const (
	TaLeftJustify = iota + 0
	TaRightJustify
	TaCenter
)
View Source
const (
	BdLeftToRight = iota + 0
	BdRightToLeft
	BdRightToLeftNoAlign
	BdRightToLeftReadingOnly
)
View Source
const (
	TaAlignTop = iota + 0
	TaAlignBottom
	TaVerticalCenter
)
View Source
const (
	CsDropDown                  = iota + 0 // like an TEdit plus a button to drop down the list, default
	CsSimple                               // like an TEdit plus a TListBox
	CsDropDownList                         // like TLabel plus a button to drop down the list
	CsOwnerDrawFixed                       // like csDropDownList, but custom drawn
	CsOwnerDrawVariable                    // like csDropDownList, but custom drawn and with each item can have another height
	CsOwnerDrawEditableFixed               // like csOwnerDrawFixed, but with TEdit
	CsOwnerDrawEditableVariable            // like csOwnerDrawVariable, but with TEdit
)
View Source
const (
	WsNormal = iota + 0
	WsMinimized
	WsMaximized
	WsFullScreen
)
View Source
const (
	TlTop = iota + 0
	TlCenter
	TlBottom
)
View Source
const (
	EpNone = iota + 0
	EpPathEllipsis
	EpEndEllipsis
	EpWordEllipsis
)
View Source
const (
	LbStandard = iota + 0
	LbOwnerDrawFixed
	LbOwnerDrawVariable
	LbVirtual
)
View Source
const (
	PaLeft = iota + 0
	PaRight
	PaCenter
)
View Source
const (
	TbRightButton = iota + 0
	TbLeftButton
)
View Source
const (
	PbHorizontal = iota + 0
	PbVertical
	PbRightToLeft
	PbTopDown
)
View Source
const (
	PbstNormal = iota + 0
	PbstMarquee
)
View Source
const (
	PbsNormal = iota + 0
	PbsError
	PbsPaused
)
View Source
const (
	BlGlyphLeft = iota + 0
	BlGlyphRight
	BlGlyphTop
	BlGlyphBottom
)
View Source
const (
	BsUp        = iota + 0 // button is up
	BsDisabled             // button disabled (grayed)
	BsDown                 // button is down
	BsExclusive            // button is the only down in his group
	BsHot                  // button is under mouse
)
View Source
const (
	BsAutoDetect = iota + 0
	BsWin31
	BsNew
)
View Source
const (
	FsBold = iota + 0
	FsItalic
	FsUnderline
	FsStrikeOut
)
View Source
const (
	SsNone = iota + 0
	SsHorizontal
	SsVertical
	SsBoth
	SsAutoHorizontal
	SsAutoVertical
	SsAutoBoth
)
View Source
const (
	StNone = iota + 0
	StData
	StText
	StBoth
)
View Source
const (
	ArAlignBottom = iota + 0
	ArAlignLeft
	ArAlignRight
	ArAlignTop
	ArDefault
	ArSnapToGrid
)
View Source
const (
	VsIcon = iota + 0
	VsSmallIcon
	VsList
	VsReport
)
View Source
const (
	IsNone = iota + 0
	IsCut
	IsDropHilited
	IsFocused
	IsSelected
	IsActivating
)
View Source
const (
	CtText = iota + 0
	CtImage
	CtState
)
View Source
const (
	IfData = iota + 0
	IfPartialString
	IfExactString
	IfNearest
)
View Source
const (
	SdLeft = iota + 0
	SdRight
	SdAbove
	SdBelow
	SdAll
)
View Source
const (
	HtHandPoint = iota + 0
	HtUnderlineCold
	HtUnderlineHot
)
View Source
const (
	IrText = iota + 0
	IrImage
	IrParam
	IrState
	IrIndent
)
View Source
const (
	BsSolid = iota + 0
	BsClear
	BsHorizontal
	BsVertical
	BsFDiagonal
	BsBDiagonal
	BsCross
	BsDiagCross
	BsImage
	BsPattern
)
View Source
const (
	PsSolid = iota + 0
	PsDash
	PsDot
	PsDashDot
	PsDashDotDot
	PsinsideFrame
	PsPattern
	PsClear
)
View Source
const (
	BtNext = iota + 0
	BtPrev
)
View Source
const (
	TpTop = iota + 0
	TpBottom
	TpLeft
	TpRight
)
View Source
const (
	TsTabs = iota + 0
	TsButtons
	TsFlatButtons
)
View Source
const (
	FpDefault = iota + 0
	FpVariable
	FpFixed
)
View Source
const (
	PmBlack = iota + 0
	PmWhite
	PmNop
	PmNot
	PmCopy
	PmNotCopy
	PmMergePenNot
	PmMaskPenNot
	PmMergeNotPen
	PmMaskNotPen
	PmMerge
	PmNotMerge
	PmMask
	PmNotMask
	PmXor
	PmNotXor
)
View Source
const (
	TrHorizontal = iota + 0
	TrVertical
)
View Source
const (
	UdHorizontal = iota + 0
	UdVertical
)
View Source
const (
	FqDefault = iota + 0
	FqDraft
	FqProof
	FqNonAntialiased
	FqAntialiased
	FqClearType
	FqClearTypeNatural
)
View Source
const (
	CaNone = iota + 0
	CaHide
	CaFree
	CaMinimize
)
View Source
const (
	BfNone = iota + 0
	BfInfo
	BfWarning
	BfError
)
View Source
const (
	MtWarning = iota + 0
	MtError
	MtInformation
	MtConfirmation
	MtCustom
)
View Source
const (
	MbYes = iota + 0
	MbNo
	MbOK
	MbCancel
	MbAbort
	MbRetry
	MbIgnore
	MbAll
	MbNoToAll
	MbYesToAll
	MbHelp
	MbClose
)
View Source
const (
	SltURL = iota + 0
	SltID
)
View Source
const (
	PsText = iota + 0
	PsOwnerDraw
)
View Source
const (
	JpBestQuality = iota + 0
	JpBestSpeed
)
View Source
const (
	NsCut           = iota + 0 // = Node.Cut
	NsDropHilite               // = Node.DropTarget
	NsFocused                  // = Node.Focused
	NsSelected                 // = Node.Selected
	NsMultiSelected            // = Node.MultiSelected
	NsExpanded                 // = Node.Expanded
	NsHasChildren              // = Node.HasChildren
	NsDeleting                 // = Node.Deleting, set on Destroy
	NsVisible                  // = Node.Visible
	NsBound                    // bound to a tree, e.g. has Parent or is top lvl node
)
View Source
const (
	NaAdd           = iota + 0 // add as last sibling of Destination
	NaAddFirst                 // add as first sibling of Destination
	NaAddChild                 // add as last child of Destination
	NaAddChildFirst            // add as first child of Destination
	NaInsert                   // insert in front of Destination
	NaInsertBehind             // insert behind Destination
)
View Source
const (
	TaAddFirst = iota + 0
	TaAdd
	TaInsert
)
View Source
const (
	MsControlSelect = iota + 0
	MsShiftSelect
	MsVisibleOnly
	MsSiblingOnly
)
View Source
const (
	AsNormal = iota + 0
	AsSuspended
	AsSuspendedEnabled
)
View Source
const (
	GdHorizontal = iota + 0
	GdVertical
)
View Source
const (
	DSFocus = iota + 0
	DSSelected
	DSNormal
	DSTransparent
)
View Source
const (
	ItImage = iota + 0
	ItMask
)
View Source
const (
	RtBitmap = iota + 0
	RtCursor
	RtIcon
)
View Source
const (
	LrDefaultColor = iota + 0
	LrDefaultSize
	LrFromFile
	LrMap3DColors
	LrTransparent
	LrMonoChrome
)
View Source
const (
	CdDefault = iota + 0
	CdDeviceDependent
	Cd4Bit
	Cd8Bit
	Cd16Bit
	Cd24Bit
	Cd32Bit
)
View Source
const (
	CbUnchecked = iota + 0
	CbChecked
	CbGrayed
)
View Source
const (
	TbsButton     = iota + 0 // button (can be clicked)
	TbsCheck                 // check item (click to toggle state, can be grouped)
	TbsDropDown              // button with dropdown button to show a popup menu
	TbsSeparator             // space holder
	TbsDivider               // space holder with line
	TbsButtonDrop            // button with arrow (not separated from each other)
)
View Source
const (
	GdoHotTrack = iota + 0
	GdoGradient
)
View Source
const (
	CdFullOpen = iota + 0
	CdPreventFullOpen
	CdShowHelp
	CdSolidColor
	CdAnyColor
)
View Source
const (
	BiSystemMenu = iota + 0
	BiMinimize
	BiMaximize
	BiHelp
)
View Source
const (
	FdAnsiOnly = iota + 0
	FdTrueTypeOnly
	FdEffects
	FdFixedPitchOnly
	FdForceFontExist
	FdNoFaceSel
	FdNoOEMFonts
	FdNoSimulations
	FdNoSizeSel
	FdNoStyleSel
	FdNoVectorFonts
	FdShowHelp
	FdWysiwyg
	FdLimitSize
	FdScalableOnly
	FdApplyButton
)
View Source
const (
	OfReadOnly        = iota + 0
	OfOverwritePrompt // if selected file exists shows a message, that file
	// will be overwritten
	OfHideReadOnly // hide read only file
	OfNoChangeDir  // do not change current directory
	OfShowHelp     // show a help button
	OfNoValidate
	OfAllowMultiSelect // allow multiselection
	OfExtensionDifferent
	OfPathMustExist // shows an error message if selected path does not exist
	OfFileMustExist // shows an error message if selected file does not exist
	OfCreatePrompt
	OfShareAware
	OfNoReadOnlyReturn // do not return filenames that are readonly
	OfNoTestFileCreate
	OfNoNetworkButton
	OfNoLongNames
	OfOldStyleDialog
	OfNoDereferenceLinks // do not resolve links while dialog is shown (only on Windows, see OFN_NODEREFERENCELINKS)
	OfNoResolveLinks     // do not resolve links after Execute
	OfEnableIncludeNotify
	OfEnableSizing    // dialog can be resized, e.g. via the mouse
	OfDontAddToRecent // do not add the path to the history list
	OfForceShowHidden // show hidden files
	OfViewDetail      // details are OS and interface dependent
	OfAutoPreview     // details are OS and interface dependent
)
View Source
const (
	PrAllPages = iota + 0
	PrSelection
	PrPageNums
	PrCurrentPage
)
View Source
const (
	PoPrintToFile = iota + 0
	PoPageNums
	PoSelection
	PoWarning
	PoHelp
	PoDisablePrintToFile
	PoBeforeBeginDoc
)
View Source
const (
	PsoDefaultMinMargins = iota + 0
	PsoDisableMargins
	PsoDisableOrientation
	PsoDisablePagePainting
	PsoDisablePaper
	PsoDisablePrinter
	PsoMargins
	PsoMinMargins
	PsoShowHelp
	PsoWarning
	PsoNoNetworkButton
)
View Source
const (
	PkDotMatrix = iota + 0
	PkHPPCL
)
View Source
const (
	PtEnvelope = iota + 0
	PtPaper
)
View Source
const (
	PmDefault = iota + 0
	PmMillimeters
	PmInches
)
View Source
const (
	SoStrictDelimiter = iota + 0
	SoWriteBOM
	SoTrailingLineBreak
	SoUseLocale
)
View Source
const (
	SsShift = iota + 0
	SsAlt
	SsCtrl
	SsLeft
	SsRight
	SsMiddle
	SsDouble
	// Extra additions
	SsMeta
	SsSuper
	SsHyper
	SsAltGr
	SsCaps
	SsNum
	SsScroll
	SsTriple
	SsQuad
	SsExtra1
	SsExtra2
)
View Source
const (
	MbLeft = iota + 0
	MbRight
	MbMiddle
)
View Source
const (
	FsSurface = iota + 0
	FsBorder
)
View Source
const (
	FmAlternate = iota + 0
	FmWinding
)
View Source
const (
	CsHandleValid = iota + 0
	CsFontValid
	CsPenValid
	CsBrushValid
	CsRegionValid
)
View Source
const (
	CoLeftToRight = iota + 0
	CoRightToLeft
)
View Source
const (
	TfBottom = iota + 0
	TfCalcRect
	TfCenter
	TfEditControl
	TfEndEllipsis
	TfPathEllipsis
	TfExpandTabs
	TfExternalLeading
	TfLeft
	TfModifyString
	TfNoClip
	TfNoPrefix
	TfRight
	TfRtlReading
	TfSingleLine
	TfTop
	TfVerticalCenter
	TfWordBreak
	TfHidePrefix
	TfNoFullWidthCharBreak
	TfPrefixOnly
	TfTabStop
	TfWordEllipsis
	TfComposited
)
View Source
const (
	BvNone = iota + 0
	BvLowered
	BvRaised
	BvSpace
)
View Source
const (
	BeLeft = iota + 0
	BeTop
	BeRight
	BeBottom
)
View Source
const (
	BkNone = iota + 0
	BkTile
	BkSoft
	BkFlat
)
View Source
const (
	TmBottomRight = iota + 0
	TmTopLeft
	TmBoth
)
View Source
const (
	TsNone = iota + 0
	TsAuto
	TsManual
)
View Source
const (
	PtNone = iota + 0
	PtTop
	PtLeft
	PtBottom
	PtRight
)
View Source
const (
	DtkDate = iota + 0
	DtkTime
	DtkDateTime
)
View Source
const (
	DmComboBox = iota + 0
	DmUpDown
	DmNone
)
View Source
const (
	DfShort = iota + 0
	DfLong
)
View Source
const (
	DtaLeft = iota + 0
	DtaRight
	DtaDefault
)
View Source
const (
	DowMonday = iota + 0
	DowTuesday
	DowWednesday
	DowThursday
	DowFriday
	DowSaturday
	DowSunday
	DowLocaleDefault
)
View Source
const (
	StWholeWord = iota + 0
	StMatchCase
)
View Source
const (
	NsNone = iota + 0
	NsBullte
)
View Source
const (
	AtSelected = iota + 0
	AtDefaultText
)
View Source
const (
	CaBold = iota + 0
	CaColor
	CaFace
	CaItalic
	CaSize
	CaStrikeOut
	CaUnderline
	CaProtected
)
View Source
const (
	IaTop = iota + 0
	IaLeft
)
View Source
const (
	HsGradient = iota + 0
	HsImage
	HsThemed
)
View Source
const (
	IiaLeft = iota + 0
	IiaRight
	IiaTop
	IiaBottom
	IiaCenter
)

IaTop有冲突,所以增加一个i

View Source
const (
	AkTop = iota + 0
	AkLeft
	AkRight
	AkBottom
)
View Source
const (
	OdSelected = iota + 0
	OdGrayed
	OdDisabled
	OdChecked
	OdFocused
	OdDefault
	OdHotLight
	OdInactive
	OdNoAccel
	OdNoFocusRect
	OdReserved1
	OdReserved2
	OdComboBoxEdit
	OdBackgroundPainted // item background already painted
)
View Source
const (
	BkCustom = iota + 0
	BkOK
	BkCancel
	BkHelp
	BkYes
	BkNo
	BkClose
	BkAbort
	BkRetry
	BkIgnore
	BkAll
	BkNoToAll
	BkYesToAll
)
View Source
const (
	SbHorizontal = iota + 0
	SbVertical
)
View Source
const (
	SsRegular = iota + 0
	SsFlat
	SsHotTrack
)
View Source
const (
	StRectangle = iota + 0
	StSquare
	StRoundRect
	StRoundSquare
	StEllipse
	StCircle
	StSquaredDiamond
	StDiamond
	StTriangle
	StTriangleLeft
	StTriangleRight
	StTriangleDown
	StStar
	StStarDown
)
View Source
const (
	BsLowered = iota + 0
	BsRaised
)
View Source
const (
	BsBox = iota + 0
	BsFrame
	BsTopLine
	BsBottomLine
	BsLeftLine
	BsRightLine
	BsSpacer
)
View Source
const (
	GkText = iota + 0
	GkHorizontalBar
	GkVerticalBar
	GkPie
	GkNeedle
	GkHalfPie
)
View Source
const (
	DtControl = iota + 0
	DtItem
	DtSubItem
)
View Source
const (
	CdPrePaint = iota + 0
	CdPostPaint
	CdPreErase
	CdPostErase
)
View Source
const (
	CdsSelected = iota + 0
	CdsGrayed
	CdsDisabled
	CdsChecked
	CdsFocused
	CdsDefault
	CdsHot
	CdsMarked
	CdsIndeterminate
)
View Source
const (
	DrBounds = iota + 0
	DrIcon
	DrLabel
	DrSelectBounds
)
View Source
const (
	SdAllowCreate = iota + 0
	SdPerformCreate
	SdPrompt
)
View Source
const (
	FrDown = iota + 0
	FrFindNext
	FrHideMatchCase
	FrHideWholeWord
	FrHideUpDown
	FrMatchCase
	FrDisableMatchCase
	FrDisableUpDown
	FrDisableWholeWord
	FrReplace
	FrReplaceAll
	FrWholeWord
	FrShowHelp
	FrEntireScope
	FrHideEntireScope
	FrPromptOnReplace
	FrHidePromptOnReplace
	FrButtonsAtBottom
)
View Source
const (
	DmManual = iota + 0
	DmAutomatic
)
View Source
const (
	DsDragEnter = iota + 0
	DsDragLeave
	DsDragMove
)
View Source
const (
	DkDrag = iota + 0
	DkDock
)
View Source
const (
	EcNormal = iota + 0
	EcUpperCase
	EcLowerCase
)
View Source
const (
	EbLeft = iota + 0
	EbTop
	EbRight
	EbBottom
)
View Source
const (
	EsNone = iota + 0
	EsRaised
	EsLowered
)
View Source
const (
	GdsClassic = iota + 0
	GdsThemed
	GdsGradient
)
View Source
const (
	GoFixedVertLine = iota + 0
	GoFixedHorzLine
	GoVertLine
	GoHorzLine
	GoRangeSelect
	GoDrawFocusSelected
	GoRowSizing
	GoColSizing
	GoRowMoving
	GoColMoving
	GoEditing
	GoAutoAddRows
	GoTabs
	GoRowSelect
	GoAlwaysShowEditor
	GoThumbTracking
	// Additional Options
	GoColSpanning                 // Enable cellextent calcs
	GoRelaxedRowSelect            // User can see focused cell on goRowSelect
	GoDblClickAutoSize            // dblclicking columns borders (on hdrs) resize col.
	GoSmoothScroll                // Switch scrolling mode (pixel scroll is by default)
	GoFixedRowNumbering           // Ya
	GoScrollKeepVisible           // keeps focused cell visible while scrolling
	GoHeaderHotTracking           // Header cells change look when mouse is over them
	GoHeaderPushedLook            // Header cells looks pushed when clicked
	GoSelectionActive             // Setting grid.Selection moves also cell cursor
	GoFixedColSizing              // Allow to resize fixed columns
	GoDontScrollPartCell          // clicking partially visible cells will not scroll
	GoCellHints                   // show individual cell hints
	GoTruncCellHints              // show cell hints if cell text is too long
	GoCellEllipsis                // show "..." if cell text is too long
	GoAutoAddRowsSkipContentCheck //BB Also add a row (if AutoAddRows in Options) if last row is empty
	GoRowHighlight                // Highlight the current Row
)
View Source
const (
	GdSelected = iota + 0
	GdFocused
	GdFixed
	GdHot
	GdPushed
	GdRowHighlight
)
View Source
const (
	HsText = iota + 0
	HsOwnerDraw
)
View Source
const (
	LpAbove = iota + 0
	LpBelow
	LpLeft
	LpRight
)
View Source
const (
	FsLeftRightTopBottom = iota + 0
	FsRightLeftTopBottom
	FsLeftRightBottomTop
	FsRightLeftBottomTop
	FsTopBottomLeftRight
	FsBottomTopLeftRight
	FsTopBottomRightLeft
	FsBottomTopRightLeft
)
View Source
const (
	BmNone = iota + 0
	BmClick
	BmDblClick
)
View Source
const (
	MbNone = iota + 0
	MbBreak
	MbBarBreak
)
View Source
const (
	TsTrackBegin = iota + 0
	TsTrackMove
	TsTrackEnd
)
View Source
const (
	CsLButtonDown = iota + 0
	CsClicked
	CsPalette
	CsReadingState
	CsFocusing
	CsCreating // not used, exists for Delphi compatibility
	CsPaintCopy
	CsCustomPaint
	CsDestroyingHandle
	CsDocking
	CsVisibleSetInLoading
)
View Source
const (
	CsAcceptsControls            = iota + 0 // can have children in the designer
	CsCaptureMouse                          // auto capture mouse when clicked
	CsDesignInteractive                     // wants mouse events in design mode
	CsClickEvents                           // handles mouse events
	CsFramed                                // not implemented, has 3d frame
	CsSetCaption                            // if Name=Caption, changing the Name changes the Caption
	CsOpaque                                // the control paints its area completely
	CsDoubleClicks                          // understands mouse double clicks
	CsTripleClicks                          // understands mouse triple clicks
	CsQuadClicks                            // understands mouse quad clicks
	CsFixedWidth                            // cannot change its width
	CsFixedHeight                           // cannot change its height (for example combobox)
	CsNoDesignVisible                       // is invisible in the designer
	CsReplicatable                          // PaintTo works
	CsNoStdEvents                           // standard events such as mouse, key, and click events are ignored.
	CsDisplayDragImage                      // display images from dragimagelist during drag operation over control
	CsReflector                             // not implemented, the controls respond to size, focus and dlg messages - it can be used as ActiveX control under Windows
	CsActionClient                          // Action is set
	CsMenuEvents                            // not implemented
	CsNoFocus                               // control will not take focus when clicked with mouse.
	CsNeedsBorderPaint                      // not implemented
	CsParentBackground                      // tells WinXP to paint the theme background of parent on controls background
	CsDesignNoSmoothResize                  // when resizing control in the designer do not SetBounds while dragging
	CsDesignFixedBounds                     // can not be moved nor resized in designer
	CsHasDefaultAction                      // implements useful ExecuteDefaultAction
	CsHasCancelAction                       // implements useful ExecuteCancelAction
	CsNoDesignSelectable                    // can not be selected at design time
	CsOwnedChildrenNotSelectable            // child controls owned by this control are NOT selectable in the designer
	CsAutoSize0x0                           // if the preferred size is 0x0 then control is shrinked ot 0x0
	CsAutoSizeKeepChildLeft                 // when AutoSize=true do not move children horizontally
	CsAutoSizeKeepChildTop                  // when AutoSize=true do not move children vertically
	CsRequiresKeyboardInput                 // If the device has no physical keyboard then show the virtual keyboard when this control gets focus (therefore available only to TWinControl descendents)
)
View Source
const (
	MaDefault = iota + 0
	MaActivate
	MaActivateAndEat
	MaNoActivate
	MaNoActivateAndEat
)
View Source
const (
	None = iota + 0
	Indeterminate
	Normal
	Error
	Paused
)
View Source
const (
	BmDIB = iota + 0
	BmDDB
)
View Source
const (
	PsNoDefine = iota + 0
	PsReady
	PsPrinting
	PsStopped
)
View Source
const (
	PoPortrait = iota + 0
	PoLandscape
	PoReverseLandscape
	PoReversePortrait
)
View Source
const (
	PcCopies = iota + 0
	PcOrientation
	PcCollation
)
View Source
const (
	PtLocal = iota + 0
	PtNetWork
)
View Source
const (
	RsUninitialized = iota + 0
	RsLoading
	RsLoaded
	RsInterActive
	RsComplete
)
View Source
const (
	SeUnknown = iota + 0
	SeANSI
	SeUnicode
	SeUTF8
)
View Source
const (
	StDefault = iota + 0 // use default rules for showing taskbar item
	StAlways             // always show taskbar item for the form
	StNever              // never show taskbar item for the form
)
View Source
const (
	TcbOk = iota + 0
	TcbYes
	TcbNo
	TcbCancel
	TcbRetry
	TcbClose
)
View Source
const (
	TfEnableHyperlinks = iota + 0
	TfUseHiconMain
	TfUseHiconFooter
	TfAllowDialogCancellation
	TfUseCommandLinks
	TfUseCommandLinksNoIcon
	TfExpandFooterArea
	TfExpandedByDefault
	TfVerificationFlagChecked
	TfShowProgressBar
	TfShowMarqueeProgressBar
	TfCallbackTimer
	TfPositionRelativeToWindow
	TfRtlLayout
	TfNoDefaultRadioButton
	TfCanBeMinimized
)
View Source
const (
	TdiNone = iota + 0
	TdiWarning
	TdiError
	TdiInformation
	TdiShield
	TdiQuestion
)
View Source
const (
	CsExDropDown = iota + 0
	CsExSimple
	CsExDropDownList
)
View Source
const (
	CsExCaseSensitive = iota + 0
	CsExNoEditImage
	CsExNoEditImageIndent
	CsExNoSizeLimit
	CsExPathWordBreak
)
View Source
const (
	AcoAutoSuggest = iota + 0
	AcoAutoAppend
	AcoSearch
	AcoFilterPrefixes
	AcoUseTab
	AcoUpDownKeyDropsList
	AcoRtlReading
)
View Source
const (
	DmDesktop = iota + 0
	DmPrimary
	DmMainForm
	DmActiveForm
)
View Source
const (
	TmAuto = iota + 0
	TmFixed
)
View Source
const (
	DimNormal = iota + 0
	DimCenter
	DimStretch
)
View Source
const (
	AmDontCare = iota + 0 // default antialiasing
	AmOn                  // enabled
	AmOff                 // disabled
)
View Source
const (
	SdAscending = iota + 0
	SdDescending
)
View Source
const (
	TvestTheme     = iota + 0 // use themed sign
	TvestPlusMinus            // use +/- sign
	TvestArrow                // use blank arrow
	TvestArrowFill            // use filled arrow
)
View Source
const (
	TvoAllowMultiselect = iota + 0
	TvoAutoExpand
	TvoAutoInsertMark
	TvoAutoItemHeight
	TvoHideSelection
	TvoHotTrack
	TvoKeepCollapsedNodes
	TvoReadOnly
	TvoRightClickSelect
	TvoRowSelect
	TvoShowButtons
	TvoShowLines
	TvoShowRoot
	TvoShowSeparators
	TvoToolTips
	TvoNoDoubleClickExpand
	TvoThemedDraw
)
View Source
const (
	GsmAlways      = iota + 0 // always show
	GsmNever                  // never show
	GsmApplication            // depends on application settings
	GsmSystem                 // depends on system settings
)
View Source
const (
	NboShowCloseButtons = iota + 0
	NboMultiLine
	NboHidePageListPopup
	NboKeyboardTabSwitch
	NboShowAddTabButton
	NboDoChangeOnSetIndex
)
View Source
const (
	AsrTop = iota + 0
	AsrBottom
	AsrCenter
)
View Source
const (
	CcaFill = iota + 0
	CcaLeftTop
	CcaRightBottom
	CcaCenter
)
View Source
const (
	CrsAnchorAligning        = iota + 0 // (like Delphi)
	CrsScaleChilds                      // scale children equally, keep space between children fixed
	CrsHomogenousChildResize            // enlarge children equally (i.e. by the same amount of pixel)
	CrsHomogenousSpaceResize            // enlarge space between children equally

)
View Source
const (
	CclNone                       = iota + 0
	CclLeftToRightThenTopToBottom // if BiDiMode <> bdLeftToRight then it becomes RightToLeft
	CclTopToBottomThenLeftToRight
)
View Source
const (
	ClHorizontalThenVertical = iota + 0
	ClVerticalThenHorizontal
)
View Source
const (
	SiNone = iota + 0
	SiAscending
	SiDescending
)
View Source
const (
	CbsAuto = iota + 0
	CbsEllipsis
	CbsNone
	CbsPickList
	CbsCheckboxColumn
	CbsButton
	CbsButtonColumn
)
View Source
const (
	GzNormal = iota + 0
	GzFixedCols
	GzFixedRows
	GzFixedCells
	GzInvalid
)
View Source
const (
	SoAscending = iota + 0
	SoDescending
)
View Source
const (
	AaNone = iota + 0
	AaDown
	AaRight
	AaLeft
	AaRightDown
	AaLeftDown
	AaRightUp
	AaLeftUp
)
View Source
const (
	ChpAll = iota + 0
	ChpAllNoDefault
	ChpTruncOnly
)
View Source
const (
	MwCursor = iota + 0
	MwGrid
)
View Source
const (
	GoScrollToLastCol = iota + 0 // allow scrolling to last column (so that last column can be leftcol)
	GoScrollToLastRow            // allow scrolling to last row (so that last row can be toprow)
)
View Source
const (
	RsmSingle = iota + 0
	RsmMulti
)
View Source
const (
	TsLazarus = iota + 0
	TsStandard
	TsNative
)
View Source
const (
	PoNone = iota + 0
	PoHeaderClick
)
View Source
const (
	DsShowHeadings = iota + 0
	DsShowDayNames
	DsNoMonthChange
	DsShowWeekNumbers
	DsStartMonday
)
View Source
const (
	Tf12 = iota + 0 // 12 hours format, with am/pm string
	Tf24            // 24 hours format
)
View Source
const (
	TdHM    = iota + 0 // hour and minute
	TdHMS              // hour Minute and second
	TdHMSMs            // hour Minute Second and milisecond
)
View Source
const (
	AsClassicSmaller = iota + 0
	AsClassicLarger
	AsModernSmaller
	AsModernLarger
	AsYetAnotherShape
	AsTheme
)
View Source
const (
	DdoDMY = iota + 0
	DdoMDY
	DdoYMD
	DdoTryDefault
)
View Source
const (
	DtpDay = iota + 0
	DtpMonth
	DtpYear
	DtpHour
	DtpMinute
	DtpSecond
	DtpMiliSec
	DtpAMPM
)
View Source
const (
	DtpoDoChangeOnSetDateTime = iota + 0
	DtpoEnabledIfUnchecked
	DtpoAutoCheck
	DtpoFlatButton
)
View Source
const (
	LapDefault                              = iota + 0 // widgetset dependent
	LapFixedLayout                                     // A fixed absolute layout in all platforms
	LapAutoAdjustWithoutHorizontalScrolling            // Smartphone platforms use this one,
	// the x axis is stretched to fill the screen and
	// the y is scaled to fit the DPI
	LapAutoAdjustForDPI // For desktops using High DPI, scale x and y to fit the DPI
)
View Source
const (
	HtAbove = iota + 0
	HtBelow
	HtNowhere
	HtOnItem
	HtOnButton
	HtOnIcon
	HtOnIndent
	HtOnLabel
	HtOnRight
	HtOnStateIcon
	HtToLeft
	HtToRight
)
View Source
const (
	LisCut = iota + 0
	LisDropTarget
	LisFocused
	LisSelected
)
View Source
const (
	PcfText = iota + 0
	PcfBitmap
	PcfPixmap
	PcfIcon
	PcfPicture
	PcfMetaFilePict
	PcfObject
	PcfComponent
	PcfCustomData
)
View Source
const (
	LboDrawFocusRect = iota + 0 // draw focus rect in case of owner drawing
)
View Source
const (
	OfExNoPlacesBar = iota + 0
)
View Source
const (
	SbsNone = iota + 0
)

Variables

View Source
var (
	// Unicode Apple logo char
	AppleLogoChar = string([]byte{0xEF, 0xA3, 0xBF})
)

Functions

This section is empty.

Types

type ATOM

type ATOM = uint16

type Byte

type Byte = uint8

type COLORREF

type COLORREF = uint32

type Cardinal

type Cardinal = uint32

type Char

type Char = uint16

Unicode 主要用于keymap, 参见types/keys包

type DWORD

type DWORD = uint32

type DWORD_PTR

type DWORD_PTR = uintptr

type HBITMAP

type HBITMAP = uintptr

type HBRUSH

type HBRUSH = uintptr

type HCURSOR

type HCURSOR = HICON

type HDC

type HDC = uintptr

type HFONT

type HFONT = uintptr

type HGDIOBJ

type HGDIOBJ = uintptr

type HGLOBAL

type HGLOBAL = uintptr

type HICON

type HICON = uintptr

type HINST

type HINST = uintptr

type HKEY

type HKEY = uintptr

type HMENU

type HMENU = uintptr

type HMODULE

type HMODULE = uintptr

type HMONITOR

type HMONITOR = uintptr

type HPALETTE

type HPALETTE = uintptr

type HPEN

type HPEN = uintptr

type HRGN

type HRGN = uintptr

type HRSRC

type HRSRC = uintptr

type HResult

type HResult = uintptr

type HWND

type HWND = uintptr

type IObjectArray

type IObjectArray uintptr

伪造,实际为一个接口类型

type Integer

type Integer = int32

type LPARAM

type LPARAM = uintptr

type LPCWSTR

type LPCWSTR = uintptr

type LRESULT

type LRESULT = uintptr

type PFNLVCOMPARE

type PFNLVCOMPARE uintptr

type PFNTVCOMPARE

type PFNTVCOMPARE uintptr

type SIZE_T

type SIZE_T = uintptr

type Single

type Single = float32

type TActionListState

type TActionListState int32

ENUM:

type TAddMode

type TAddMode int32

ENUM:

type TAlign

type TAlign int32

ENUM:

type TAlignInfo

type TAlignInfo struct {
	AlignList    uintptr
	ControlIndex int32
	Align        TAlign
	Scratch      int32
}

type TAlignSet

type TAlignSet = TSet

SET:TAlign

type TAlignment

type TAlignment int32

ENUM:

type TAnchorKind

type TAnchorKind int32

ENUM:

type TAnchorSideReference

type TAnchorSideReference int32

ENUM:

type TAnchors

type TAnchors = TSet

SET:TAnchorKind

type TAntialiasingMode

type TAntialiasingMode int32

ENUM:

type TArrowShape

type TArrowShape int32

ENUM:

type TAtom

type TAtom = uint16

type TAttributeType

type TAttributeType int32

ENUM:

type TAutoAdvance

type TAutoAdvance int32

ENUM:

type TAutoCompleteOption

type TAutoCompleteOption int32

ENUM:

type TAutoCompleteOptions

type TAutoCompleteOptions = TSet

SET:TAutoCompleteOption

type TBalloonFlags

type TBalloonFlags int32

ENUM:

type TBevelCut

type TBevelCut int32

ENUM:

type TBevelEdge

type TBevelEdge int32

ENUM:

type TBevelEdges

type TBevelEdges = TSet

SET:TBevelEdge

type TBevelKind

type TBevelKind int32

ENUM:

type TBevelShape

type TBevelShape int32

ENUM:

type TBevelStyle

type TBevelStyle int32

TBevelStyle = (bsLowered, bsRaised);

type TBiDiMode

type TBiDiMode int32

ENUM:

type TBitBtnKind

type TBitBtnKind int32

ENUM:

type TBitmapHandleType

type TBitmapHandleType int32

ENUM:

type TBorderIcon

type TBorderIcon int32

ENUM:

type TBorderIcons

type TBorderIcons = TSet

SET:TBorderIcon

type TBorderStyle

type TBorderStyle int32

ENUM:

type TBrushStyle

type TBrushStyle int32

ENUM:

type TButtonLayout

type TButtonLayout int32

ENUM:

type TButtonState

type TButtonState int32

ENUM:

type TButtonStyle

type TButtonStyle int32

ENUM:

type TCTabControlOption

type TCTabControlOption int32

ENUM:

type TCTabControlOptions

type TCTabControlOptions = TSet

SET:TCTabControlOption

type TCalDayOfWeek

type TCalDayOfWeek int32

ENUM:

type TCanvasOrientation

type TCanvasOrientation int32

ENUM:

type TCanvasState

type TCanvasState = TSet

SET:TCanvasStates

type TCanvasStates

type TCanvasStates int32

ENUM:

type TCellHintPriority

type TCellHintPriority int32

ENUM:

type TCheckBoxState

type TCheckBoxState int32

ENUM:

type TChildControlResizeStyle

type TChildControlResizeStyle int32

ENUM:

type TClass

type TClass uintptr

type TClipboardFormat

type TClipboardFormat = uintptr

type TCloseAction

type TCloseAction int32

ENUM:

type TColor

type TColor uint32

常用值请见 types/colors 包

func (TColor) B

func (c TColor) B() byte

func (TColor) G

func (c TColor) G() byte

func (TColor) R

func (c TColor) R() byte

TColor

func (TColor) RGB

func (c TColor) RGB(r, g, b byte) TColor

type TColorBoxStyle

type TColorBoxStyle = TComboBoxStyle

type TColorDepth

type TColorDepth int32

ENUM:

type TColorDialogOption

type TColorDialogOption int32

ENUM:

type TColorDialogOptions

type TColorDialogOptions = TSet

SET:TColorDialogOption

type TColumnButtonStyle

type TColumnButtonStyle int32

ENUM:

type TColumnLayout

type TColumnLayout int32

ENUM:

type TComboBoxExStyle

type TComboBoxExStyle int32

ENUM:

type TComboBoxExStyleEx

type TComboBoxExStyleEx int32

ENUM:

type TComboBoxExStyles

type TComboBoxExStyles = TSet

SET:TComboBoxExStyleEx

type TComboBoxStyle

type TComboBoxStyle int32

ENUM:

type TConsistentAttribute

type TConsistentAttribute int32

ENUM:

type TConsistentAttributes

type TConsistentAttributes = TSet

SET:TConsistentAttribute

type TConstraintSize

type TConstraintSize int32

TConstraintSize = 0..MaxInt;

type TControlCellAlign

type TControlCellAlign int32

ENUM:

type TControlCellAligns

type TControlCellAligns = TSet

SET:TControlCellAlign

type TControlChildrenLayout

type TControlChildrenLayout int32

ENUM:

type TControlState

type TControlState = TSet

SET:TControlStateType

type TControlStateType

type TControlStateType int32

ENUM:

type TControlStyle

type TControlStyle = TSet

SET:TControlStyleType

type TControlStyleType

type TControlStyleType int32

ENUM:

type TCoolBandMaximize

type TCoolBandMaximize int32

ENUM:

type TCreateParams

type TCreateParams struct {
	Caption       LPCWSTR
	Style         uint32
	ExStyle       uint32
	X, Y          int32
	Width, Height int32
	WndParent     HWND
	Param         uintptr
	WindowClass   TWndClass
	WinClassName  [64]int8
}

Moved from Controls to avoid circles Since it is part of the interface now

type TCursor

type TCursor int16

TCursor = -32768..32767;

type TCursorInfo

type TCursorInfo struct {
	CbSize      uint32
	Flags       uint32
	HCursor     HCURSOR
	PtScreenPos TPoint
}

TCursorInfo

type TCustomData

type TCustomData = uintptr

type TCustomDrawStage

type TCustomDrawStage int32

ENUM:

type TCustomDrawState

type TCustomDrawState = TSet

SET:TCustomDrawStateFlag

type TCustomDrawStateFlag

type TCustomDrawStateFlag int32

ENUM:

type TCustomDrawTarget

type TCustomDrawTarget int32

ENUM:

type TDTCalAlignment

type TDTCalAlignment int32

ENUM:

type TDTDateFormat

type TDTDateFormat int32

ENUM:

type TDTDateMode

type TDTDateMode int32

ENUM:

type TDWordFiller

type TDWordFiller struct {
	Filler [4]uint8
}

type TDateDisplayOrder

type TDateDisplayOrder int32

ENUM:

type TDateTimeKind

type TDateTimeKind int32

ENUM:

type TDateTimePart

type TDateTimePart int32

ENUM:

type TDateTimeParts

type TDateTimeParts = TSet

SET:TDateTimePart

type TDateTimePickerOption

type TDateTimePickerOption int32

ENUM:

type TDateTimePickerOptions

type TDateTimePickerOptions = TSet

SET:TDateTimePickerOption

type TDefaultMonitor

type TDefaultMonitor int32

ENUM:

type TDisplayCode

type TDisplayCode int32

ENUM:

type TDisplaySetting

type TDisplaySetting int32

ENUM:

type TDragKind

type TDragKind int32

ENUM:

type TDragMode

type TDragMode int32

ENUM:

type TDragState

type TDragState int32

ENUM:

type TDrawImageMode

type TDrawImageMode int32

ENUM:

type TDrawingStyle

type TDrawingStyle int32

ENUM:

type TEdgeBorder

type TEdgeBorder int32

ENUM:

type TEdgeBorders

type TEdgeBorders = TSet

SET:TEdgeBorder

type TEdgeStyle

type TEdgeStyle int32

ENUM:

type TEditCharCase

type TEditCharCase int32

ENUM:

type TEllipsisPosition

type TEllipsisPosition int32

ENUM:

type TFNWndEnumProc

type TFNWndEnumProc = uintptr

type TFillMode

type TFillMode int32

ENUM:

type TFillStyle

type TFillStyle int32

ENUM:

type TFindOption

type TFindOption int32

ENUM:

type TFindOptions

type TFindOptions = TSet

SET:TFindOption

type TFlowStyle

type TFlowStyle int32

ENUM:

type TFontCharset

type TFontCharset = uint8

type TFontDialogOption

type TFontDialogOption int32

ENUM:

type TFontDialogOptions

type TFontDialogOptions = TSet

SET:TFontDialogOption

type TFontPitch

type TFontPitch int32

ENUM:

type TFontQuality

type TFontQuality int32

ENUM:

type TFontStyle

type TFontStyle int32

ENUM:

type TFontStyles

type TFontStyles = TSet

SET:TFontStyle

type TFormBorderStyle

type TFormBorderStyle TBorderStyle

type TFormStyle

type TFormStyle int32

ENUM:

type TGUID

type TGUID struct {
	D1 uint32
	D2 uint16
	D3 uint16
	D4 [8]uint8
}

func (TGUID) Empty

func (g TGUID) Empty() TGUID

func (TGUID) FromString

func (g TGUID) FromString(str string) (result TGUID)

func (TGUID) IsEqual

func (g TGUID) IsEqual(val TGUID) bool

func (TGUID) ToString

func (g TGUID) ToString() string

type TGaugeKind

type TGaugeKind int32

ENUM:

type TGlyphShowMode

type TGlyphShowMode int32

ENUM:

type TGradientDirection

type TGradientDirection int32

ENUM:

type TGridCoord

type TGridCoord struct {
	X int32
	Y int32
}

type TGridDrawState

type TGridDrawState = TSet

SET:TGridDrawStates

type TGridDrawStates

type TGridDrawStates int32

ENUM:

type TGridDrawingStyle

type TGridDrawingStyle int32

ENUM:

type TGridOption

type TGridOption int32

ENUM:

type TGridOption2

type TGridOption2 int32

ENUM:

type TGridOptions

type TGridOptions = TSet

SET:TGridOption

type TGridOptions2

type TGridOptions2 = TSet

SET:TGridOption2

type TGridRect

type TGridRect TRect

type TGridZone

type TGridZone int32

ENUM:

type TGridZoneSet

type TGridZoneSet = TSet

SET:TGridZone

type THeaderSectionStyle

type THeaderSectionStyle int32

ENUM:

type THeaderStyle

type THeaderStyle int32

ENUM:

type THelpEventData

type THelpEventData = uintptr

type THitTest

type THitTest int32

ENUM:

type THitTests

type THitTests = TSet

SET:THitTest

type TIconArrangement

type TIconArrangement int32

ENUM:

type TImageAlignment

type TImageAlignment int32

ENUM:

type TImageOrientation

type TImageOrientation int32

ENUM:

type TImageType

type TImageType int32

ENUM:

type TItemChange

type TItemChange int32

ENUM:

type TItemFind

type TItemFind int32

ENUM:

type TItemRequests

type TItemRequests int32

ENUM:

type TItemState

type TItemState int32

ENUM:

type TItemStates

type TItemStates = TSet

SET:TItemState

type TJPEGPerformance

type TJPEGPerformance int32

ENUM:

type TJPEGPixelFormat

type TJPEGPixelFormat = TPixelFormat

type TLabelPosition

type TLabelPosition int32

ENUM:

type TLayoutAdjustmentPolicy

type TLayoutAdjustmentPolicy int32

ENUM:

type TLeftRight

type TLeftRight int32

TLeftRight = TAlignment.taLeftJustify..TAlignment.taRightJustify;

type TLibResource

type TLibResource struct {
	Name string
	Ptr  uintptr
}

LibResource

type TLibType

type TLibType int32

VCL或者LCL,只是用于引入的

const (
	LtVCL TLibType = iota + 0
	LtLCL
)

type TLinkAlignment

type TLinkAlignment TAlignment

type TListArrangement

type TListArrangement int32

ENUM:

type TListBoxOption

type TListBoxOption int32

ENUM:

type TListBoxOptions

type TListBoxOptions = TSet

SET:TListBoxOption

type TListBoxStyle

type TListBoxStyle int32

ENUM:

type TListHotTrackStyle

type TListHotTrackStyle int32

ENUM:

type TListHotTrackStyles

type TListHotTrackStyles = TSet

SET:TListHotTrackStyle

type TListItemState

type TListItemState int32

ENUM:

type TListItemStates

type TListItemStates = TSet

SET:TListItemState

type TLoadResource

type TLoadResource int32

ENUM:

type TLoadResources

type TLoadResources = TSet

SET:TLoadResource

type TMenuBreak

type TMenuBreak int32

ENUM:

type TMessage

type TMessage struct {
	Msg Cardinal

	WParam WPARAM
	LParam LPARAM
	Result LRESULT
	// contains filtered or unexported fields
}

消息值参见 types/messages包

type TModalResult

type TModalResult = int32

type TMouseActivate

type TMouseActivate int32

ENUM:

type TMouseButton

type TMouseButton int32

ENUM:

type TMouseWheelOption

type TMouseWheelOption int32

ENUM:

type TMsg

type TMsg struct {
	Hwnd    HWND
	Message uint32
	WParam  uintptr
	LParam  uintptr
	Time    uint32
	Pt      TPoint
}

TMsg: Only Windows, tagMSG

type TMsgDlgBtn

type TMsgDlgBtn int32

ENUM:

type TMsgDlgButtons

type TMsgDlgButtons = TSet

SET:TMsgDlgBtn

type TMsgDlgType

type TMsgDlgType int32

ENUM:

type TMultiSelectStyle

type TMultiSelectStyle = TSet

SET:TMultiSelectStyles

type TMultiSelectStyles

type TMultiSelectStyles int32

ENUM:

type TNodeAttachMode

type TNodeAttachMode int32

ENUM:

type TNodeState

type TNodeState int32

ENUM:

type TNumGlyphs

type TNumGlyphs int32

TNumGlyphs = 1..4;

type TNumberingStyle

type TNumberingStyle int32

ENUM:

type TOpenOption

type TOpenOption int32

ENUM:

type TOpenOptionEx

type TOpenOptionEx int32

ENUM:

type TOpenOptions

type TOpenOptions = TSet

SET:TOpenOption

type TOpenOptionsEx

type TOpenOptionsEx = TSet

SET:TOpenOptionEx

type TOwnerDrawState

type TOwnerDrawState = TSet

SET:TOwnerDrawStateType

type TOwnerDrawStateType

type TOwnerDrawStateType int32

ENUM:

type TPageMeasureUnits

type TPageMeasureUnits int32

ENUM:

type TPageSetupDialogOption

type TPageSetupDialogOption int32

ENUM:

type TPageSetupDialogOptions

type TPageSetupDialogOptions = TSet

SET:TPageSetupDialogOption

type TPageType

type TPageType int32

ENUM:

type TPenMode

type TPenMode int32

ENUM:

type TPenStyle

type TPenStyle int32

ENUM:

type TPixelFormat

type TPixelFormat int32

ENUM:

type TPoint

type TPoint struct {
	X int32
	Y int32
}

func Point

func Point(x, y int32) TPoint

func (TPoint) IsZero

func (p TPoint) IsZero() bool

func (*TPoint) Offset

func (p *TPoint) Offset(dx, dy int32)

func (*TPoint) Scale

func (p *TPoint) Scale(val float64)

func (*TPoint) Scale2

func (p *TPoint) Scale2(val int)

type TPopupAlignment

type TPopupAlignment int32

ENUM:

type TPosition

type TPosition int32

ENUM:

type TPositionToolTip

type TPositionToolTip int32

ENUM:

type TPredefinedClipboardFormat

type TPredefinedClipboardFormat int32

ENUM:

type TPrefixOption

type TPrefixOption int32

ENUM:

type TPrintDialogOption

type TPrintDialogOption int32

ENUM:

type TPrintDialogOptions

type TPrintDialogOptions = TSet

SET:TPrintDialogOption

type TPrintRange

type TPrintRange int32

ENUM:

type TPrinterCapabilities

type TPrinterCapabilities = TSet

SET:TPrinterCapability

type TPrinterCapability

type TPrinterCapability int32

ENUM:

type TPrinterKind

type TPrinterKind int32

ENUM:

type TPrinterOrientation

type TPrinterOrientation int32

ENUM:

type TPrinterState

type TPrinterState int32

ENUM:

type TPrinterType

type TPrinterType int32

ENUM:

type TProgressBarOrientation

type TProgressBarOrientation int32

ENUM:

type TProgressBarState

type TProgressBarState int32

ENUM:

type TProgressBarStyle

type TProgressBarStyle int32

ENUM:

type TRangeSelectMode

type TRangeSelectMode int32

ENUM:

type TReadyState

type TReadyState int32

ENUM:

type TRect

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

func Rect

func Rect(left, top, right, bottom int32) TRect

func (TRect) CenterPoint

func (r TRect) CenterPoint() (ret TPoint)

func (TRect) Contains

func (r TRect) Contains(aR TRect) bool

func (*TRect) Empty

func (r *TRect) Empty()

func (TRect) Height

func (r TRect) Height() int32

func (*TRect) Inflate

func (r *TRect) Inflate(dx, dy int32)

func (TRect) IntersectsWith

func (r TRect) IntersectsWith(aR TRect) bool

func (TRect) IsEmpty

func (r TRect) IsEmpty() bool

func (TRect) PtInRect

func (r TRect) PtInRect(P TPoint) bool

func (*TRect) Scale

func (r *TRect) Scale(val float64)

func (*TRect) Scale2

func (r *TRect) Scale2(val int)

func (*TRect) SetHeight

func (r *TRect) SetHeight(val int32)

func (*TRect) SetSize

func (r *TRect) SetSize(w, h int32)

func (*TRect) SetWidth

func (r *TRect) SetWidth(val int32)

func (TRect) Size

func (r TRect) Size() TSize

func (TRect) Width

func (r TRect) Width() int32

type TResItem

type TResItem struct {
	Name  uintptr
	Value uintptr
}

type TResType

type TResType int32

ENUM:

type TScrollBarInc

type TScrollBarInc int16

TScrollBarInc = 1..32767;

type TScrollBarKind

type TScrollBarKind int32

ENUM:

type TScrollBarStyle

type TScrollBarStyle int32

ENUM:

type TScrollStyle

type TScrollStyle int32

ENUM:

type TSearchDirection

type TSearchDirection int32

ENUM:

type TSearchType

type TSearchType int32

ENUM:

type TSearchTypes

type TSearchTypes = TSet

SET:TSearchType

type TSectionTrackState

type TSectionTrackState int32

ENUM:

type TSeekOrigin

type TSeekOrigin int32

ENUM:

type TSelectDirOpt

type TSelectDirOpt int32

ENUM:

type TSelectDirOpts

type TSelectDirOpts = TSet

SET:TSelectDirOpt

type TSet

type TSet uint32

Pascal集合类型 set of xxx

func NewSet

func NewSet(opts ...uint8) TSet

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

func (TSet) Exclude

func (s TSet) Exclude(val ...uint8) TSet

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

func (TSet) In

func (s TSet) In(val uint32) bool

集合类型的判断,val表示位数,下标为0

func (TSet) Include

func (s TSet) Include(val ...uint8) TSet

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

type TShapeType

type TShapeType int32

ENUM:

type TShiftState

type TShiftState = TSet

SET:TShiftStateEnum

type TShiftStateEnum

type TShiftStateEnum int32

ENUM:

type TShortCut

type TShortCut uint16

type TShowInTaskbar

type TShowInTaskbar int32

ENUM:

type TSize

type TSize struct {
	Cx int32
	Cy int32
}

type TSmallPoint

type TSmallPoint struct {
	X int16
	Y int16
}

func (TSmallPoint) Empty

func (s TSmallPoint) Empty() TSmallPoint

TSmallPoint

func (TSmallPoint) IsEqual

func (s TSmallPoint) IsEqual(val TSmallPoint) bool

type TSortDirection

type TSortDirection int32

ENUM:

type TSortIndicator

type TSortIndicator int32

ENUM:

type TSortOrder

type TSortOrder int32

ENUM:

type TSortType

type TSortType int32

ENUM:

type TSpacingSize

type TSpacingSize int32

type TStaticBorderStyle

type TStaticBorderStyle int32

ENUM:

type TStatusPanelStyle

type TStatusPanelStyle int32

ENUM:

type TStringEncoding

type TStringEncoding int32

ENUM:

type TStringsOption

type TStringsOption int32

ENUM:

type TStringsOptions

type TStringsOptions = TSet

SET:TStringsOption

type TSysLinkType

type TSysLinkType int32

ENUM:

type TSysLocale

type TSysLocale struct {
	//Delphi compat fields
	DefaultLCID int32
	PriLangID   int32
	SubLangID   int32

	// win32 names
	FarEast    bool
	MiddleEast bool
}

type TTBGradientDrawingOption

type TTBGradientDrawingOption int32

ENUM:

type TTBGradientDrawingOptions

type TTBGradientDrawingOptions = TSet

SET:TTBGradientDrawingOption

type TTabOrder

type TTabOrder = int16

type TTabPosition

type TTabPosition int32

ENUM:

type TTabStyle

type TTabStyle int32

ENUM:

type TTaskBarProgressState

type TTaskBarProgressState int32

ENUM:

type TTaskDialogCommonButton

type TTaskDialogCommonButton int32

ENUM:

type TTaskDialogCommonButtons

type TTaskDialogCommonButtons = TSet

SET:TTaskDialogCommonButton

type TTaskDialogFlag

type TTaskDialogFlag int32

ENUM:

type TTaskDialogFlags

type TTaskDialogFlags = TSet

SET:TTaskDialogFlag

type TTaskDialogIcon

type TTaskDialogIcon int32

ENUM:

type TTextFormat

type TTextFormat = TSet

SET:TTextFormats

type TTextFormats

type TTextFormats int32

ENUM:

type TTextLayout

type TTextLayout int32

ENUM:

type TThreadID

type TThreadID = uintptr

type TTickMark

type TTickMark int32

ENUM:

type TTickStyle

type TTickStyle int32

ENUM:

type TTimeDisplay

type TTimeDisplay int32

ENUM:

type TTimeFormat

type TTimeFormat int32

ENUM:

type TTitleStyle

type TTitleStyle int32

ENUM:

type TToolButtonStyle

type TToolButtonStyle int32

ENUM:

type TTrackBarOrientation

type TTrackBarOrientation int32

ENUM:

type TTrackButton

type TTrackButton int32

ENUM:

type TTransparentMode

type TTransparentMode int32

ENUM:

type TTreeViewExpandSignType

type TTreeViewExpandSignType int32

ENUM:

type TTreeViewOption

type TTreeViewOption int32

ENUM:

type TTreeViewOptions

type TTreeViewOptions = TSet

SET:TTreeViewOption

type TUDBtnType

type TUDBtnType int32

ENUM:

type TUDOrientation

type TUDOrientation int32

ENUM:

type TVerticalAlignment

type TVerticalAlignment int32

ENUM:

type TViewStyle

type TViewStyle int32

ENUM:

type TWMKey

type TWMKey struct {
	Msg       uint32
	MsgFiller TDWordFiller
	CharCode  [2]uint16
	// CharCode: Word;
	// Unused: Word;
	CharCodeUnusedFiller TDWordFiller
	KeyData              uint32
	KeyDataFiller        TDWordFiller
	Result               uintptr
}

TWMKey

type TWindowState

type TWindowState int32

ENUM:

type TWndClass

type TWndClass struct {
	Style         uint32
	LpfnWndProc   uintptr
	CbClsExtra    int32
	CbWndExtra    int32
	HInstance     uintptr
	HIcon         HICON
	HCursor       HCURSOR
	HbrBackground HBRUSH
	LpszMenuName  LPCWSTR
	LpszClassName LPCWSTR
}

TWndClass

type TXID

type TXID = uint64

type UINT

type UINT = uint32

type WPARAM

type WPARAM = uintptr

type Word

type Word = uint16

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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