-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTextAttributes.inc
142 lines (123 loc) · 5.01 KB
/
TextAttributes.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
procedure TextAttributes_Assign(AObj: TTextAttributes; Source: TPersistent); cdecl;
begin
AObj.Create;
//AObj.Assign(Source);
end;
//function TextAttributes_GetNamePath(AObj: TTextAttributes): PWideChar; cdecl;
//begin
// Result := PWideChar(AObj.GetNamePath);
//end;
function TextAttributes_ClassName(AObj: TTextAttributes): PWideChar; cdecl;
begin
Result := ShortstrToPWideChar(AObj.ClassName);
end;
function TextAttributes_Equals(AObj: TTextAttributes; Obj: TObject): LongBool; cdecl;
begin
Result := AObj.Equals(Obj);
end;
function TextAttributes_GetHashCode(AObj: TTextAttributes): Integer; cdecl;
begin
Result := AObj.GetHashCode;
end;
function TextAttributes_ToString(AObj: TTextAttributes): PWideChar; cdecl;
begin
Result := PWideChar(AObj.ToString);
end;
//function TextAttributes_GetCharset(AObj: TTextAttributes): TFontCharset; cdecl;
//begin
// Result := AObj.Charset;
//end;
//
//procedure TextAttributes_SetCharset(AObj: TTextAttributes; AValue: TFontCharset); cdecl;
//begin
// AObj.Charset := AValue;
//end;
function TextAttributes_GetColor(AObj: TTextAttributes): TColor; cdecl;
begin
Result := AObj.Color;
end;
procedure TextAttributes_SetColor(AObj: TTextAttributes; AValue: TColor); cdecl;
begin
AObj.Color := AValue;
end;
//function TextAttributes_GetConsistentAttributes(AObj: TTextAttributes): TConsistentAttributes; cdecl;
//begin
// Result := AObj.ConsistentAttributes;
//end;
//
//function TextAttributes_GetName(AObj: TTextAttributes): PWideChar; cdecl;
//begin
// Result := PWideChar(AObj.Name);
//end;
procedure TextAttributes_SetName(AObj: TTextAttributes; AValue: PWideChar); cdecl;
begin
AObj.Name := AValue;
end;
//function TextAttributes_GetPitch(AObj: TTextAttributes): TFontPitch; cdecl;
//begin
// Result := AObj.Pitch;
//end;
//
//procedure TextAttributes_SetPitch(AObj: TTextAttributes; AValue: TFontPitch); cdecl;
//begin
// AObj.Pitch := AValue;
//end;
//
//function TextAttributes_GetProtected(AObj: TTextAttributes): LongBool; cdecl;
//begin
// Result := AObj.Protected;
//end;
//
//procedure TextAttributes_SetProtected(AObj: TTextAttributes; AValue: LongBool); cdecl;
//begin
// AObj.Protected := AValue;
//end;
function TextAttributes_GetSize(AObj: TTextAttributes): Integer; cdecl;
begin
Result := AObj.Size;
end;
procedure TextAttributes_SetSize(AObj: TTextAttributes; AValue: Integer); cdecl;
begin
AObj.Size := AValue;
end;
function TextAttributes_GetStyle(AObj: TTextAttributes): TFontStyles; cdecl;
begin
Result := AObj.Style;
end;
procedure TextAttributes_SetStyle(AObj: TTextAttributes; AValue: TFontStyles); cdecl;
begin
AObj.Style := AValue;
end;
//function TextAttributes_GetHeight(AObj: TTextAttributes): Integer; cdecl;
//begin
// Result := AObj.Height;
//end;
//
//procedure TextAttributes_SetHeight(AObj: TTextAttributes; AValue: Integer); cdecl;
//begin
// AObj.Height := AValue;
//end;
exports
TextAttributes_Assign {$IFNDEF MSWINDOWS}name '_TextAttributes_Assign'{$ENDIF},
//TextAttributes_GetNamePath {$IFNDEF MSWINDOWS}name '_TextAttributes_GetNamePath'{$ENDIF},
TextAttributes_ClassName {$IFNDEF MSWINDOWS}name '_TextAttributes_ClassName'{$ENDIF},
TextAttributes_Equals {$IFNDEF MSWINDOWS}name '_TextAttributes_Equals'{$ENDIF},
TextAttributes_GetHashCode {$IFNDEF MSWINDOWS}name '_TextAttributes_GetHashCode'{$ENDIF},
TextAttributes_ToString {$IFNDEF MSWINDOWS}name '_TextAttributes_ToString'{$ENDIF},
//TextAttributes_GetCharset {$IFNDEF MSWINDOWS}name '_TextAttributes_GetCharset'{$ENDIF},
//TextAttributes_SetCharset {$IFNDEF MSWINDOWS}name '_TextAttributes_SetCharset'{$ENDIF},
TextAttributes_GetColor {$IFNDEF MSWINDOWS}name '_TextAttributes_GetColor'{$ENDIF},
TextAttributes_SetColor {$IFNDEF MSWINDOWS}name '_TextAttributes_SetColor'{$ENDIF},
//TextAttributes_GetConsistentAttributes {$IFNDEF MSWINDOWS}name '_TextAttributes_GetConsistentAttributes'{$ENDIF},
//TextAttributes_GetName {$IFNDEF MSWINDOWS}name '_TextAttributes_GetName'{$ENDIF},
TextAttributes_SetName {$IFNDEF MSWINDOWS}name '_TextAttributes_SetName'{$ENDIF},
//TextAttributes_GetPitch {$IFNDEF MSWINDOWS}name '_TextAttributes_GetPitch'{$ENDIF},
//TextAttributes_SetPitch {$IFNDEF MSWINDOWS}name '_TextAttributes_SetPitch'{$ENDIF},
//TextAttributes_GetProtected {$IFNDEF MSWINDOWS}name '_TextAttributes_GetProtected'{$ENDIF},
//TextAttributes_SetProtected {$IFNDEF MSWINDOWS}name '_TextAttributes_SetProtected'{$ENDIF},
TextAttributes_GetSize {$IFNDEF MSWINDOWS}name '_TextAttributes_GetSize'{$ENDIF},
TextAttributes_SetSize {$IFNDEF MSWINDOWS}name '_TextAttributes_SetSize'{$ENDIF},
TextAttributes_GetStyle {$IFNDEF MSWINDOWS}name '_TextAttributes_GetStyle'{$ENDIF},
TextAttributes_SetStyle {$IFNDEF MSWINDOWS}name '_TextAttributes_SetStyle'{$ENDIF};
//TextAttributes_GetHeight {$IFNDEF MSWINDOWS}name '_TextAttributes_GetHeight'{$ENDIF},
//TextAttributes_SetHeight {$IFNDEF MSWINDOWS}name '_TextAttributes_SetHeight'{$ENDIF};