Skip to content

Commit d2a3cab

Browse files
committed
Adding TCircle wrapper
1 parent f3e842a commit d2a3cab

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
@@ -74,6 +74,15 @@ TPyDelphiEllipse = class(TPyDelphiShape)
7474
property DelphiObject: TEllipse read GetDelphiObject write SetDelphiObject;
7575
end;
7676

77+
TPyDelphiCircle = class(TPyDelphiEllipse)
78+
function GetDelphiObject: TCircle;
79+
procedure SetDelphiObject(const Value: TCircle);
80+
public
81+
class function DelphiObjectClass : TClass; override;
82+
// Properties
83+
property DelphiObject: TCircle read GetDelphiObject write SetDelphiObject;
84+
end;
85+
7786
implementation
7887

7988
uses
@@ -111,6 +120,7 @@ procedure TShapesRegistration.RegisterWrappers(
111120
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiRoundRect);
112121
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCalloutRectangle);
113122
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiEllipse);
123+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCircle);
114124
end;
115125

116126
{ TPyDelphiShape }
@@ -233,6 +243,23 @@ procedure TPyDelphiEllipse.SetDelphiObject(const Value: TEllipse);
233243
inherited DelphiObject := Value;
234244
end;
235245

246+
{ TPyDelphiCircle }
247+
248+
class function TPyDelphiCircle.DelphiObjectClass: TClass;
249+
begin
250+
Result := TCircle;
251+
end;
252+
253+
function TPyDelphiCircle.GetDelphiObject: TCircle;
254+
begin
255+
Result := TCircle(inherited DelphiObject);
256+
end;
257+
258+
procedure TPyDelphiCircle.SetDelphiObject(const Value: TCircle);
259+
begin
260+
inherited DelphiObject := Value;
261+
end;
262+
236263
initialization
237264
RegisteredUnits.Add(TShapesRegistration.Create);
238265

0 commit comments

Comments
 (0)