Skip to content

Commit 18dff6c

Browse files
committed
Adding TCustomPath wrapper
1 parent c4975a3 commit 18dff6c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Source/fmx/WrapFmxShapes.pas

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ TPyDelphiArc = class(TPyDelphiEllipse)
101101
property DelphiObject: TArc read GetDelphiObject write SetDelphiObject;
102102
end;
103103

104+
TPyDelphiCustomPath = class(TPyDelphiShape)
105+
function GetDelphiObject: TCustomPath;
106+
procedure SetDelphiObject(const Value: TCustomPath);
107+
public
108+
class function DelphiObjectClass : TClass; override;
109+
// Properties
110+
property DelphiObject: TCustomPath read GetDelphiObject write SetDelphiObject;
111+
end;
112+
104113
implementation
105114

106115
uses
@@ -141,6 +150,7 @@ procedure TShapesRegistration.RegisterWrappers(
141150
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCircle);
142151
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPie);
143152
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiArc);
153+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomPath);
144154
end;
145155

146156
{ TPyDelphiShape }
@@ -314,6 +324,23 @@ procedure TPyDelphiArc.SetDelphiObject(const Value: TArc);
314324
inherited DelphiObject := Value;
315325
end;
316326

327+
{ TPyDelphiCustomPath }
328+
329+
class function TPyDelphiCustomPath.DelphiObjectClass: TClass;
330+
begin
331+
Result := TCustomPath
332+
end;
333+
334+
function TPyDelphiCustomPath.GetDelphiObject: TCustomPath;
335+
begin
336+
Result := TCustomPath(inherited DelphiObject);
337+
end;
338+
339+
procedure TPyDelphiCustomPath.SetDelphiObject(const Value: TCustomPath);
340+
begin
341+
inherited DelphiObject := Value;
342+
end;
343+
317344
initialization
318345
RegisteredUnits.Add(TShapesRegistration.Create);
319346

0 commit comments

Comments
 (0)