Skip to content

Commit e24cb88

Browse files
committed
Adding TCalloutRectangle wrapper
1 parent c0417d9 commit e24cb88

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
@@ -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+
5968
implementation
6069

6170
uses
@@ -91,6 +100,7 @@ procedure TShapesRegistration.RegisterWrappers(
91100
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiRectangle);
92101
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCaretRectangle);
93102
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiRoundRect);
103+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCalloutRectangle);
94104
end;
95105

96106
{ TPyDelphiShape }
@@ -178,6 +188,24 @@ procedure TPyDelphiRoundRect.SetDelphiObject(const Value: TRoundRect);
178188
inherited DelphiObject := Value;
179189
end;
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+
181209
initialization
182210
RegisteredUnits.Add(TShapesRegistration.Create);
183211

0 commit comments

Comments
 (0)