Skip to content

Commit c4975a3

Browse files
committed
Adding TArc wrapper
1 parent f8991fd commit c4975a3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Source/fmx/WrapFmxShapes.pas

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ TPyDelphiPie = class(TPyDelphiEllipse)
9292
property DelphiObject: TPie read GetDelphiObject write SetDelphiObject;
9393
end;
9494

95+
TPyDelphiArc = class(TPyDelphiEllipse)
96+
function GetDelphiObject: TArc;
97+
procedure SetDelphiObject(const Value: TArc);
98+
public
99+
class function DelphiObjectClass : TClass; override;
100+
// Properties
101+
property DelphiObject: TArc read GetDelphiObject write SetDelphiObject;
102+
end;
103+
95104
implementation
96105

97106
uses
@@ -131,6 +140,7 @@ procedure TShapesRegistration.RegisterWrappers(
131140
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiEllipse);
132141
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCircle);
133142
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPie);
143+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiArc);
134144
end;
135145

136146
{ TPyDelphiShape }
@@ -287,6 +297,23 @@ procedure TPyDelphiPie.SetDelphiObject(const Value: TPie);
287297
inherited DelphiObject := Value;
288298
end;
289299

300+
{ TPyDelphiArc }
301+
302+
class function TPyDelphiArc.DelphiObjectClass: TClass;
303+
begin
304+
Result := TArc
305+
end;
306+
307+
function TPyDelphiArc.GetDelphiObject: TArc;
308+
begin
309+
Result := TArc(inherited DelphiObject);
310+
end;
311+
312+
procedure TPyDelphiArc.SetDelphiObject(const Value: TArc);
313+
begin
314+
inherited DelphiObject := Value;
315+
end;
316+
290317
initialization
291318
RegisteredUnits.Add(TShapesRegistration.Create);
292319

0 commit comments

Comments
 (0)