Skip to content

Commit f8991fd

Browse files
committed
Adding TPie wrapper
1 parent d2a3cab commit f8991fd

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
@@ -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+
8695
implementation
8796

8897
uses
@@ -121,6 +130,7 @@ procedure TShapesRegistration.RegisterWrappers(
121130
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCalloutRectangle);
122131
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiEllipse);
123132
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCircle);
133+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPie);
124134
end;
125135

126136
{ TPyDelphiShape }
@@ -260,6 +270,23 @@ procedure TPyDelphiCircle.SetDelphiObject(const Value: TCircle);
260270
inherited DelphiObject := Value;
261271
end;
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+
263290
initialization
264291
RegisteredUnits.Add(TShapesRegistration.Create);
265292

0 commit comments

Comments
 (0)