File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff 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+
104113implementation
105114
106115uses
@@ -141,6 +150,7 @@ procedure TShapesRegistration.RegisterWrappers(
141150 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCircle);
142151 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPie);
143152 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiArc);
153+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomPath);
144154end ;
145155
146156{ TPyDelphiShape }
@@ -314,6 +324,23 @@ procedure TPyDelphiArc.SetDelphiObject(const Value: TArc);
314324 inherited DelphiObject := Value ;
315325end ;
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+
317344initialization
318345 RegisteredUnits.Add(TShapesRegistration.Create);
319346
You can’t perform that action at this time.
0 commit comments