Skip to content

Commit d739bec

Browse files
committed
Adding TCaretRectangle wrapper
1 parent d892730 commit d739bec

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Source/fmx/WrapFmxShapes.pas

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
3949
implementation
4050

4151
uses
@@ -69,6 +79,7 @@ procedure TShapesRegistration.RegisterWrappers(
6979
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiShape);
7080
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiLine);
7181
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiRectangle);
82+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCaretRectangle);
7283
end;
7384

7485
{ TPyDelphiShape }
@@ -122,6 +133,23 @@ procedure TPyDelphiRectangle.SetDelphiObject(const Value: TRectangle);
122133
inherited DelphiObject := Value;
123134
end;
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+
125153
initialization
126154
RegisteredUnits.Add(TShapesRegistration.Create);
127155

0 commit comments

Comments
 (0)