@@ -36,6 +36,16 @@ TPyDelphiRectangle = class(TPyDelphiShape)
3636 property DelphiObject: TRectangle read GetDelphiObject write SetDelphiObject;
3737 end ;
3838
39+ TPyDelphiCaretRectangle = class (TPyDelphiRectangle)
40+ private
41+ function GetDelphiObject : TCaretRectangle;
42+ procedure SetDelphiObject (const Value : TCaretRectangle);
43+ public
44+ class function DelphiObjectClass : TClass; override;
45+ // Properties
46+ property DelphiObject: TCaretRectangle read GetDelphiObject write SetDelphiObject;
47+ end ;
48+
3949implementation
4050
4151uses
@@ -69,6 +79,7 @@ procedure TShapesRegistration.RegisterWrappers(
6979 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiShape);
7080 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiLine);
7181 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiRectangle);
82+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCaretRectangle);
7283end ;
7384
7485{ TPyDelphiShape }
@@ -122,6 +133,23 @@ procedure TPyDelphiRectangle.SetDelphiObject(const Value: TRectangle);
122133 inherited DelphiObject := Value ;
123134end ;
124135
136+ { TPyDelphiCaretRectangle }
137+
138+ class function TPyDelphiCaretRectangle.DelphiObjectClass : TClass;
139+ begin
140+ Result := TCaretRectangle;
141+ end ;
142+
143+ function TPyDelphiCaretRectangle.GetDelphiObject : TCaretRectangle;
144+ begin
145+ Result := TCaretRectangle(inherited DelphiObject);
146+ end ;
147+
148+ procedure TPyDelphiCaretRectangle.SetDelphiObject (const Value : TCaretRectangle);
149+ begin
150+ inherited DelphiObject := Value ;
151+ end ;
152+
125153initialization
126154 RegisteredUnits.Add(TShapesRegistration.Create);
127155
0 commit comments