File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff 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+
95104implementation
96105
97106uses
@@ -131,6 +140,7 @@ procedure TShapesRegistration.RegisterWrappers(
131140 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiEllipse);
132141 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCircle);
133142 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPie);
143+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiArc);
134144end ;
135145
136146{ TPyDelphiShape }
@@ -287,6 +297,23 @@ procedure TPyDelphiPie.SetDelphiObject(const Value: TPie);
287297 inherited DelphiObject := Value ;
288298end ;
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+
290317initialization
291318 RegisteredUnits.Add(TShapesRegistration.Create);
292319
You can’t perform that action at this time.
0 commit comments