-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path_Margins.inc
173 lines (143 loc) · 5.23 KB
/
_Margins.inc
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
//----------------------------------------
// ´úÂëÓÉGenlibVcl¹¤¾ß×Ô¶¯Éú³É¡£
// Copyright ? ying32. All Rights Reserved.
//
//----------------------------------------
function Margins_Create(AOwner: TControl): TMargins; cdecl;
begin
Result := TMargins.Create(AOwner);
end;
procedure Margins_Free(AObj: TMargins); cdecl;
begin
AObj.Free;
end;
procedure Margins_SetBounds(AObj: TMargins; ALeft: Integer; ATop: Integer; ARight: Integer; ABottom: Integer); cdecl;
begin
AObj.SetBounds(ALeft, ATop, ARight, ABottom);
end;
procedure Margins_Assign(AObj: TMargins; Source: TPersistent); cdecl;
begin
AObj.Assign(Source);
end;
function Margins_GetNamePath(AObj: TMargins): PWideChar; cdecl;
begin
Result := PWideChar(AObj.GetNamePath);
end;
function Margins_ClassName(AObj: TMargins): PWideChar; cdecl;
begin
Result := PWideChar(AObj.ClassName);
end;
function Margins_Equals(AObj: TMargins; Obj: TObject): LongBool; cdecl;
begin
Result := AObj.Equals(Obj);
end;
function Margins_GetHashCode(AObj: TMargins): Integer; cdecl;
begin
Result := AObj.GetHashCode;
end;
function Margins_ToString(AObj: TMargins): PWideChar; cdecl;
begin
Result := PWideChar(AObj.ToString);
end;
function Margins_GetControlLeft(AObj: TMargins): Integer; cdecl;
begin
Result := AObj.ControlLeft;
end;
function Margins_GetControlTop(AObj: TMargins): Integer; cdecl;
begin
Result := AObj.ControlTop;
end;
function Margins_GetControlWidth(AObj: TMargins): Integer; cdecl;
begin
Result := AObj.ControlWidth;
end;
function Margins_GetControlHeight(AObj: TMargins): Integer; cdecl;
begin
Result := AObj.ControlHeight;
end;
function Margins_GetExplicitLeft(AObj: TMargins): Integer; cdecl;
begin
Result := AObj.ExplicitLeft;
end;
function Margins_GetExplicitTop(AObj: TMargins): Integer; cdecl;
begin
Result := AObj.ExplicitTop;
end;
function Margins_GetExplicitWidth(AObj: TMargins): Integer; cdecl;
begin
Result := AObj.ExplicitWidth;
end;
function Margins_GetExplicitHeight(AObj: TMargins): Integer; cdecl;
begin
Result := AObj.ExplicitHeight;
end;
procedure Margins_SetOnChange(AObj: TMargins; AEventId: NativeUInt); stdcall
begin
if AEventId = 0 then
begin
AObj.OnChange := nil;
TEventClass.Remove(AObj, geChange);
Exit;
end;
AObj.OnChange := TEventClass.OnChange;
TEventClass.Add(AObj, geChange, AEventId);
end;
function Margins_GetLeft(AObj: TMargins): TMarginSize; cdecl;
begin
Result := AObj.Left;
end;
procedure Margins_SetLeft(AObj: TMargins; AValue: TMarginSize); cdecl;
begin
AObj.Left := AValue;
end;
function Margins_GetTop(AObj: TMargins): TMarginSize; cdecl;
begin
Result := AObj.Top;
end;
procedure Margins_SetTop(AObj: TMargins; AValue: TMarginSize); cdecl;
begin
AObj.Top := AValue;
end;
function Margins_GetRight(AObj: TMargins): TMarginSize; cdecl;
begin
Result := AObj.Right;
end;
procedure Margins_SetRight(AObj: TMargins; AValue: TMarginSize); cdecl;
begin
AObj.Right := AValue;
end;
function Margins_GetBottom(AObj: TMargins): TMarginSize; cdecl;
begin
Result := AObj.Bottom;
end;
procedure Margins_SetBottom(AObj: TMargins; AValue: TMarginSize); cdecl;
begin
AObj.Bottom := AValue;
end;
exports
Margins_Create {$IFNDEF MSWINDOWS}name '_Margins_Create'{$ENDIF},
Margins_Free {$IFNDEF MSWINDOWS}name '_Margins_Free'{$ENDIF},
Margins_SetBounds {$IFNDEF MSWINDOWS}name '_Margins_SetBounds'{$ENDIF},
Margins_Assign {$IFNDEF MSWINDOWS}name '_Margins_Assign'{$ENDIF},
Margins_GetNamePath {$IFNDEF MSWINDOWS}name '_Margins_GetNamePath'{$ENDIF},
Margins_ClassName {$IFNDEF MSWINDOWS}name '_Margins_ClassName'{$ENDIF},
Margins_Equals {$IFNDEF MSWINDOWS}name '_Margins_Equals'{$ENDIF},
Margins_GetHashCode {$IFNDEF MSWINDOWS}name '_Margins_GetHashCode'{$ENDIF},
Margins_ToString {$IFNDEF MSWINDOWS}name '_Margins_ToString'{$ENDIF},
Margins_GetControlLeft {$IFNDEF MSWINDOWS}name '_Margins_GetControlLeft'{$ENDIF},
Margins_GetControlTop {$IFNDEF MSWINDOWS}name '_Margins_GetControlTop'{$ENDIF},
Margins_GetControlWidth {$IFNDEF MSWINDOWS}name '_Margins_GetControlWidth'{$ENDIF},
Margins_GetControlHeight {$IFNDEF MSWINDOWS}name '_Margins_GetControlHeight'{$ENDIF},
Margins_GetExplicitLeft {$IFNDEF MSWINDOWS}name '_Margins_GetExplicitLeft'{$ENDIF},
Margins_GetExplicitTop {$IFNDEF MSWINDOWS}name '_Margins_GetExplicitTop'{$ENDIF},
Margins_GetExplicitWidth {$IFNDEF MSWINDOWS}name '_Margins_GetExplicitWidth'{$ENDIF},
Margins_GetExplicitHeight {$IFNDEF MSWINDOWS}name '_Margins_GetExplicitHeight'{$ENDIF},
Margins_SetOnChange {$IFNDEF MSWINDOWS}name '_Margins_SetOnChange'{$ENDIF},
Margins_GetLeft {$IFNDEF MSWINDOWS}name '_Margins_GetLeft'{$ENDIF},
Margins_SetLeft {$IFNDEF MSWINDOWS}name '_Margins_SetLeft'{$ENDIF},
Margins_GetTop {$IFNDEF MSWINDOWS}name '_Margins_GetTop'{$ENDIF},
Margins_SetTop {$IFNDEF MSWINDOWS}name '_Margins_SetTop'{$ENDIF},
Margins_GetRight {$IFNDEF MSWINDOWS}name '_Margins_GetRight'{$ENDIF},
Margins_SetRight {$IFNDEF MSWINDOWS}name '_Margins_SetRight'{$ENDIF},
Margins_GetBottom {$IFNDEF MSWINDOWS}name '_Margins_GetBottom'{$ENDIF},
Margins_SetBottom {$IFNDEF MSWINDOWS}name '_Margins_SetBottom'{$ENDIF};