-
Notifications
You must be signed in to change notification settings - Fork 0
/
pen.go
126 lines (95 loc) · 2.22 KB
/
pen.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
//----------------------------------------
// 代码由GenlibVcl工具自动生成。
// Copyright © ying32. All Rights Reserved.
//
//----------------------------------------
package vcl
import (
. "gitee.com/ying32/govcl/vcl/api"
. "gitee.com/ying32/govcl/vcl/types"
)
type TPen struct {
IObject
instance uintptr
}
func NewPen() *TPen {
p := new(TPen)
p.instance = Pen_Create()
return p
}
func PenFromInst(inst uintptr) *TPen {
p := new(TPen)
p.instance = inst
return p
}
func PenFromObj(obj IObject) *TPen {
p := new(TPen)
p.instance = CheckPtr(obj)
return p
}
func (p *TPen) Free() {
if p.instance != 0 {
Pen_Free(p.instance)
p.instance = 0
}
}
func (p *TPen) Instance() uintptr {
return p.instance
}
func (p *TPen) IsValid() bool {
return p.instance != 0
}
func (p *TPen) Assign(Source IObject) {
Pen_Assign(p.instance, CheckPtr(Source))
}
func (p *TPen) HandleAllocated() bool {
return Pen_HandleAllocated(p.instance)
}
func (p *TPen) GetNamePath() string {
return Pen_GetNamePath(p.instance)
}
func (p *TPen) ClassName() string {
return Pen_ClassName(p.instance)
}
func (p *TPen) Equals(Obj IObject) bool {
return Pen_Equals(p.instance, CheckPtr(Obj))
}
func (p *TPen) GetHashCode() int32 {
return Pen_GetHashCode(p.instance)
}
func (p *TPen) ToString() string {
return Pen_ToString(p.instance)
}
func (p *TPen) Handle() HPEN {
return Pen_GetHandle(p.instance)
}
func (p *TPen) SetHandle(value HPEN) {
Pen_SetHandle(p.instance, value)
}
func (p *TPen) Color() TColor {
return Pen_GetColor(p.instance)
}
func (p *TPen) SetColor(value TColor) {
Pen_SetColor(p.instance, value)
}
func (p *TPen) Mode() TPenMode {
return Pen_GetMode(p.instance)
}
func (p *TPen) SetMode(value TPenMode) {
Pen_SetMode(p.instance, value)
}
func (p *TPen) Style() TPenStyle {
return Pen_GetStyle(p.instance)
}
func (p *TPen) SetStyle(value TPenStyle) {
Pen_SetStyle(p.instance, value)
}
func (p *TPen) Width() int32 {
return Pen_GetWidth(p.instance)
}
func (p *TPen) SetWidth(value int32) {
Pen_SetWidth(p.instance, value)
}
func (p *TPen) SetOnChange(fn TNotifyEvent) {
Pen_SetOnChange(p.instance, fn)
}