Skip to content

Commit 0a55dd4

Browse files
committed
Adding TSelectionPoint wrapper
1 parent 4cc9c65 commit 0a55dd4

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
@@ -155,6 +155,15 @@ TPyDelphiSelection = class(TPyDelphiControl)
155155
property DelphiObject: TSelection read GetDelphiObject write SetDelphiObject;
156156
end;
157157

158+
TPyDelphiSelectionPoint = class(TPyDelphiStyledControl)
159+
function GetDelphiObject: TSelectionPoint;
160+
procedure SetDelphiObject(const Value: TSelectionPoint);
161+
public
162+
class function DelphiObjectClass : TClass; override;
163+
// Properties
164+
property DelphiObject: TSelectionPoint read GetDelphiObject write SetDelphiObject;
165+
end;
166+
158167
implementation
159168

160169
uses
@@ -201,6 +210,7 @@ procedure TShapesRegistration.RegisterWrappers(
201210
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiImage);
202211
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPaintBox);
203212
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiSelection);
213+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiSelectionPoint);
204214
end;
205215

206216
{ TPyDelphiShape }
@@ -476,6 +486,23 @@ procedure TPyDelphiSelection.SetDelphiObject(const Value: TSelection);
476486
inherited DelphiObject := Value;
477487
end;
478488

489+
{ TPyDelphiSelectionPoint }
490+
491+
class function TPyDelphiSelectionPoint.DelphiObjectClass: TClass;
492+
begin
493+
Result := TSelectionPoint;
494+
end;
495+
496+
function TPyDelphiSelectionPoint.GetDelphiObject: TSelectionPoint;
497+
begin
498+
Result := TSelectionPoint(inherited DelphiObject);
499+
end;
500+
501+
procedure TPyDelphiSelectionPoint.SetDelphiObject(const Value: TSelectionPoint);
502+
begin
503+
inherited DelphiObject := Value;
504+
end;
505+
479506
initialization
480507
RegisteredUnits.Add(TShapesRegistration.Create);
481508

0 commit comments

Comments
 (0)