/
customhint.go
210 lines (158 loc) · 4.65 KB
/
customhint.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
//----------------------------------------
// 代码由GenlibVcl工具自动生成。
// Copyright © ying32. All Rights Reserved.
//
//----------------------------------------
package vcl
import (
. "github.com/ying32/govcl/vcl/api"
. "github.com/ying32/govcl/vcl/types"
)
type TCustomHint struct {
IComponent
instance uintptr
}
func NewCustomHint(owner IComponent) *TCustomHint {
c := new(TCustomHint)
c.instance = CustomHint_Create(CheckPtr(owner))
return c
}
func CustomHintFromInst(inst uintptr) *TCustomHint {
c := new(TCustomHint)
c.instance = inst
return c
}
func CustomHintFromObj(obj IObject) *TCustomHint {
c := new(TCustomHint)
c.instance = CheckPtr(obj)
return c
}
func (c *TCustomHint) Free() {
if c.instance != 0 {
CustomHint_Free(c.instance)
c.instance = 0
}
}
func (c *TCustomHint) Instance() uintptr {
return c.instance
}
func (c *TCustomHint) IsValid() bool {
return c.instance != 0
}
func TCustomHintClass() TClass {
return CustomHint_StaticClassType()
}
func (c *TCustomHint) ShowHint() {
CustomHint_ShowHint(c.instance)
}
func (c *TCustomHint) HideHint() {
CustomHint_HideHint(c.instance)
}
func (c *TCustomHint) FindComponent(AName string) *TComponent {
return ComponentFromInst(CustomHint_FindComponent(c.instance, AName))
}
func (c *TCustomHint) GetNamePath() string {
return CustomHint_GetNamePath(c.instance)
}
func (c *TCustomHint) HasParent() bool {
return CustomHint_HasParent(c.instance)
}
func (c *TCustomHint) Assign(Source IObject) {
CustomHint_Assign(c.instance, CheckPtr(Source))
}
func (c *TCustomHint) DisposeOf() {
CustomHint_DisposeOf(c.instance)
}
func (c *TCustomHint) ClassType() TClass {
return CustomHint_ClassType(c.instance)
}
func (c *TCustomHint) ClassName() string {
return CustomHint_ClassName(c.instance)
}
func (c *TCustomHint) InstanceSize() int32 {
return CustomHint_InstanceSize(c.instance)
}
func (c *TCustomHint) InheritsFrom(AClass TClass) bool {
return CustomHint_InheritsFrom(c.instance, AClass)
}
func (c *TCustomHint) Equals(Obj IObject) bool {
return CustomHint_Equals(c.instance, CheckPtr(Obj))
}
func (c *TCustomHint) GetHashCode() int32 {
return CustomHint_GetHashCode(c.instance)
}
func (c *TCustomHint) ToString() string {
return CustomHint_ToString(c.instance)
}
func (c *TCustomHint) ShowingHint() bool {
return CustomHint_GetShowingHint(c.instance)
}
func (c *TCustomHint) Title() string {
return CustomHint_GetTitle(c.instance)
}
func (c *TCustomHint) SetTitle(value string) {
CustomHint_SetTitle(c.instance, value)
}
func (c *TCustomHint) Description() string {
return CustomHint_GetDescription(c.instance)
}
func (c *TCustomHint) SetDescription(value string) {
CustomHint_SetDescription(c.instance, value)
}
func (c *TCustomHint) ImageIndex() int32 {
return CustomHint_GetImageIndex(c.instance)
}
func (c *TCustomHint) SetImageIndex(value int32) {
CustomHint_SetImageIndex(c.instance, value)
}
func (c *TCustomHint) Images() *TImageList {
return ImageListFromInst(CustomHint_GetImages(c.instance))
}
func (c *TCustomHint) SetImages(value IComponent) {
CustomHint_SetImages(c.instance, CheckPtr(value))
}
func (c *TCustomHint) Style() TBalloonHintStyle {
return CustomHint_GetStyle(c.instance)
}
func (c *TCustomHint) SetStyle(value TBalloonHintStyle) {
CustomHint_SetStyle(c.instance, value)
}
func (c *TCustomHint) Delay() uint32 {
return CustomHint_GetDelay(c.instance)
}
func (c *TCustomHint) SetDelay(value uint32) {
CustomHint_SetDelay(c.instance, value)
}
func (c *TCustomHint) HideAfter() int32 {
return CustomHint_GetHideAfter(c.instance)
}
func (c *TCustomHint) SetHideAfter(value int32) {
CustomHint_SetHideAfter(c.instance, value)
}
func (c *TCustomHint) ComponentCount() int32 {
return CustomHint_GetComponentCount(c.instance)
}
func (c *TCustomHint) ComponentIndex() int32 {
return CustomHint_GetComponentIndex(c.instance)
}
func (c *TCustomHint) SetComponentIndex(value int32) {
CustomHint_SetComponentIndex(c.instance, value)
}
func (c *TCustomHint) Owner() *TComponent {
return ComponentFromInst(CustomHint_GetOwner(c.instance))
}
func (c *TCustomHint) Name() string {
return CustomHint_GetName(c.instance)
}
func (c *TCustomHint) SetName(value string) {
CustomHint_SetName(c.instance, value)
}
func (c *TCustomHint) Tag() int {
return CustomHint_GetTag(c.instance)
}
func (c *TCustomHint) SetTag(value int) {
CustomHint_SetTag(c.instance, value)
}
func (c *TCustomHint) Components(AIndex int32) *TComponent {
return ComponentFromInst(CustomHint_GetComponents(c.instance, AIndex))
}