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 @@ -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+
7786implementation
7887
7988uses
@@ -111,6 +120,7 @@ procedure TShapesRegistration.RegisterWrappers(
111120 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiRoundRect);
112121 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCalloutRectangle);
113122 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiEllipse);
123+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCircle);
114124end ;
115125
116126{ TPyDelphiShape }
@@ -233,6 +243,23 @@ procedure TPyDelphiEllipse.SetDelphiObject(const Value: TEllipse);
233243 inherited DelphiObject := Value ;
234244end ;
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+
236263initialization
237264 RegisteredUnits.Add(TShapesRegistration.Create);
238265
You can’t perform that action at this time.
0 commit comments