@@ -56,6 +56,15 @@ TPyDelphiRoundRect = class(TPyDelphiShape)
5656 property DelphiObject: TRoundRect read GetDelphiObject write SetDelphiObject;
5757 end ;
5858
59+ TPyDelphiCalloutRectangle = class (TPyDelphiRectangle)
60+ function GetDelphiObject : TCalloutRectangle;
61+ procedure SetDelphiObject (const Value : TCalloutRectangle);
62+ public
63+ class function DelphiObjectClass : TClass; override;
64+ // Properties
65+ property DelphiObject: TCalloutRectangle read GetDelphiObject write SetDelphiObject;
66+ end ;
67+
5968implementation
6069
6170uses
@@ -91,6 +100,7 @@ procedure TShapesRegistration.RegisterWrappers(
91100 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiRectangle);
92101 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCaretRectangle);
93102 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiRoundRect);
103+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCalloutRectangle);
94104end ;
95105
96106{ TPyDelphiShape }
@@ -178,6 +188,24 @@ procedure TPyDelphiRoundRect.SetDelphiObject(const Value: TRoundRect);
178188 inherited DelphiObject := Value ;
179189end ;
180190
191+ { TPyDelphiCalloutRectangle }
192+
193+ class function TPyDelphiCalloutRectangle.DelphiObjectClass : TClass;
194+ begin
195+ Result := TCalloutRectangle;
196+ end ;
197+
198+ function TPyDelphiCalloutRectangle.GetDelphiObject : TCalloutRectangle;
199+ begin
200+ Result := TCalloutRectangle(inherited DelphiObject);
201+ end ;
202+
203+ procedure TPyDelphiCalloutRectangle.SetDelphiObject (
204+ const Value : TCalloutRectangle);
205+ begin
206+ inherited DelphiObject := Value ;
207+ end ;
208+
181209initialization
182210 RegisteredUnits.Add(TShapesRegistration.Create);
183211
0 commit comments