-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathListColumn.inc
142 lines (117 loc) · 4.47 KB
/
ListColumn.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
//----------------------------------------
// ´úÂëÓÉGenlibVcl¹¤¾ß×Ô¶¯Éú³É¡£
// Copyright ? ying32. All Rights Reserved.
//
//----------------------------------------
function ListColumn_Create(AOwner: TCollection): TListColumn; cdecl;
begin
Result := TListColumn.Create(AOwner);
end;
procedure ListColumn_Free(AObj: TListColumn); cdecl;
begin
AObj.Free;
end;
procedure ListColumn_Assign(AObj: TListColumn; Source: TPersistent); cdecl;
begin
AObj.Assign(Source);
end;
function ListColumn_GetNamePath(AObj: TListColumn): PWideChar; cdecl;
begin
Result := PWideChar(AObj.GetNamePath);
end;
function ListColumn_ClassName(AObj: TListColumn): PWideChar; cdecl;
begin
Result := ShortstrToPWideChar(AObj.ClassName);
end;
function ListColumn_Equals(AObj: TListColumn; Obj: TObject): LongBool; cdecl;
begin
Result := AObj.Equals(Obj);
end;
function ListColumn_GetHashCode(AObj: TListColumn): Integer; cdecl;
begin
Result := AObj.GetHashCode;
end;
function ListColumn_ToString(AObj: TListColumn): PWideChar; cdecl;
begin
Result := PWideChar(AObj.ToString);
end;
function ListColumn_GetAlignment(AObj: TListColumn): TAlignment; cdecl;
begin
Result := AObj.Alignment;
end;
procedure ListColumn_SetAlignment(AObj: TListColumn; AValue: TAlignment); cdecl;
begin
AObj.Alignment := AValue;
end;
function ListColumn_GetAutoSize(AObj: TListColumn): LongBool; cdecl;
begin
Result := AObj.AutoSize;
end;
procedure ListColumn_SetAutoSize(AObj: TListColumn; AValue: LongBool); cdecl;
begin
AObj.AutoSize := AValue;
end;
function ListColumn_GetCaption(AObj: TListColumn): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Caption);
end;
procedure ListColumn_SetCaption(AObj: TListColumn; AValue: PWideChar); cdecl;
begin
AObj.Caption := AValue;
end;
//function ListColumn_GetImageIndex(AObj: TListColumn): TImageIndex; cdecl;
//begin
// Result := AObj.ImageIndex;
//end;
//
//procedure ListColumn_SetImageIndex(AObj: TListColumn; AValue: TImageIndex); cdecl;
//begin
// AObj.ImageIndex := AValue;
//end;
function ListColumn_GetTag(AObj: TListColumn): Integer; cdecl;
begin
Result := AObj.Tag;
end;
procedure ListColumn_SetTag(AObj: TListColumn; AValue: Integer); cdecl;
begin
AObj.Tag := AValue;
end;
function ListColumn_GetWidth(AObj: TListColumn): TWidth; cdecl;
begin
Result := AObj.Width;
end;
procedure ListColumn_SetWidth(AObj: TListColumn; AValue: TWidth); cdecl;
begin
AObj.Width := AValue;
end;
function ListColumn_GetIndex(AObj: TListColumn): Integer; cdecl;
begin
Result := AObj.Index;
end;
procedure ListColumn_SetIndex(AObj: TListColumn; AValue: Integer); cdecl;
begin
AObj.Index := AValue;
end;
exports
ListColumn_Create {$IFNDEF MSWINDOWS}name '_ListColumn_Create'{$ENDIF},
ListColumn_Free {$IFNDEF MSWINDOWS}name '_ListColumn_Free'{$ENDIF},
ListColumn_Assign {$IFNDEF MSWINDOWS}name '_ListColumn_Assign'{$ENDIF},
ListColumn_GetNamePath {$IFNDEF MSWINDOWS}name '_ListColumn_GetNamePath'{$ENDIF},
ListColumn_ClassName {$IFNDEF MSWINDOWS}name '_ListColumn_ClassName'{$ENDIF},
ListColumn_Equals {$IFNDEF MSWINDOWS}name '_ListColumn_Equals'{$ENDIF},
ListColumn_GetHashCode {$IFNDEF MSWINDOWS}name '_ListColumn_GetHashCode'{$ENDIF},
ListColumn_ToString {$IFNDEF MSWINDOWS}name '_ListColumn_ToString'{$ENDIF},
ListColumn_GetAlignment {$IFNDEF MSWINDOWS}name '_ListColumn_GetAlignment'{$ENDIF},
ListColumn_SetAlignment {$IFNDEF MSWINDOWS}name '_ListColumn_SetAlignment'{$ENDIF},
ListColumn_GetAutoSize {$IFNDEF MSWINDOWS}name '_ListColumn_GetAutoSize'{$ENDIF},
ListColumn_SetAutoSize {$IFNDEF MSWINDOWS}name '_ListColumn_SetAutoSize'{$ENDIF},
ListColumn_GetCaption {$IFNDEF MSWINDOWS}name '_ListColumn_GetCaption'{$ENDIF},
ListColumn_SetCaption {$IFNDEF MSWINDOWS}name '_ListColumn_SetCaption'{$ENDIF},
//ListColumn_GetImageIndex {$IFNDEF MSWINDOWS}name '_ListColumn_GetImageIndex'{$ENDIF},
//ListColumn_SetImageIndex {$IFNDEF MSWINDOWS}name '_ListColumn_SetImageIndex'{$ENDIF},
ListColumn_GetTag {$IFNDEF MSWINDOWS}name '_ListColumn_GetTag'{$ENDIF},
ListColumn_SetTag {$IFNDEF MSWINDOWS}name '_ListColumn_SetTag'{$ENDIF},
ListColumn_GetWidth {$IFNDEF MSWINDOWS}name '_ListColumn_GetWidth'{$ENDIF},
ListColumn_SetWidth {$IFNDEF MSWINDOWS}name '_ListColumn_SetWidth'{$ENDIF},
ListColumn_GetIndex {$IFNDEF MSWINDOWS}name '_ListColumn_GetIndex'{$ENDIF},
ListColumn_SetIndex {$IFNDEF MSWINDOWS}name '_ListColumn_SetIndex'{$ENDIF};