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 @@ -83,6 +83,15 @@ TPyDelphiCircle = class(TPyDelphiEllipse)
8383 property DelphiObject: TCircle read GetDelphiObject write SetDelphiObject;
8484 end ;
8585
86+ TPyDelphiPie = class (TPyDelphiEllipse)
87+ function GetDelphiObject : TPie;
88+ procedure SetDelphiObject (const Value : TPie);
89+ public
90+ class function DelphiObjectClass : TClass; override;
91+ // Properties
92+ property DelphiObject: TPie read GetDelphiObject write SetDelphiObject;
93+ end ;
94+
8695implementation
8796
8897uses
@@ -121,6 +130,7 @@ procedure TShapesRegistration.RegisterWrappers(
121130 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCalloutRectangle);
122131 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiEllipse);
123132 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCircle);
133+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPie);
124134end ;
125135
126136{ TPyDelphiShape }
@@ -260,6 +270,23 @@ procedure TPyDelphiCircle.SetDelphiObject(const Value: TCircle);
260270 inherited DelphiObject := Value ;
261271end ;
262272
273+ { TPyDelphiPie }
274+
275+ class function TPyDelphiPie.DelphiObjectClass : TClass;
276+ begin
277+ Result := TPie;
278+ end ;
279+
280+ function TPyDelphiPie.GetDelphiObject : TPie;
281+ begin
282+ Result := TPie(inherited DelphiObject);
283+ end ;
284+
285+ procedure TPyDelphiPie.SetDelphiObject (const Value : TPie);
286+ begin
287+ inherited DelphiObject := Value ;
288+ end ;
289+
263290initialization
264291 RegisteredUnits.Add(TShapesRegistration.Create);
265292
You can’t perform that action at this time.
0 commit comments