forked from ying32/govcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicontrol.go
124 lines (89 loc) · 2.06 KB
/
icontrol.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
//----------------------------------------
//
// Copyright © ying32. All Rights Reserved.
//
// Licensed under Apache License 2.0
//
//----------------------------------------
package vcl
import . "github.com/ying32/govcl/vcl/types"
type IControl interface {
IComponent
// ---------------------方法
Perform(uint32, uintptr, int) int
SendToBack()
Show()
Hide()
Refresh()
Repaint()
Invalidate()
Realign()
// ---------------------属性
Align() TAlign
SetAlign(TAlign)
Visible() bool
SetVisible(bool)
Enabled() bool
SetEnabled(bool)
Left() int32
SetLeft(int32)
Top() int32
SetTop(int32)
Width() int32
SetWidth(int32)
Height() int32
SetHeight(int32)
Hint() string
SetHint(string)
ShowHint() bool
SetShowHint(bool)
Parent() *TWinControl
SetParent(IWinControl)
SetBounds(int32, int32, int32, int32)
Caption() string
SetCaption(string)
Cursor() TCursor
SetCursor(TCursor)
Action() *TAction
SetAction(IComponent)
Anchors() TAnchors
SetAnchors(TAnchors)
BoundsRect() TRect
SetBoundsRect(TRect)
ClientHeight() int32
SetClientHeight(int32)
ClientWidth() int32
SetClientWidth(int32)
ClientOrigin() TPoint
ClientRect() TRect
SetTextBuf(string)
PopupMenu() *TPopupMenu
SetPopupMenu(IComponent)
Font() *TFont
SetFont(*TFont)
AnchorToNeighbour(TAnchorKind, int32, IControl)
AnchorParallel(TAnchorKind, int32, IControl)
AnchorHorizontalCenterTo(IControl)
AnchorVerticalCenterTo(IControl)
AnchorSame(TAnchorKind, IControl)
AnchorAsAlign(TAlign, int32)
AnchorClient(int32)
AnchorSide(TAnchorKind) *TAnchorSide
AnchorSideLeft() *TAnchorSide
AnchorSideTop() *TAnchorSide
AnchorSideRight() *TAnchorSide
AnchorSideBottom() *TAnchorSide
BorderSpacing() *TControlBorderSpacing
Floating() bool
SetFloating(bool)
Color() TColor
SetColor(TColor)
ControlStyle() TControlStyle
SetControlStyle(TControlStyle)
ControlState() TControlState
SetControlState(TControlState)
ScreenToClient(Point TPoint) TPoint
ParentToClient(Point TPoint, AParent IWinControl) TPoint
// ---------------------事件
//SetOnClick(TNotifyEvent)
}